py2docfx 0.1.9.dev1897607__py3-none-any.whl → 0.1.9.dev1917798__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- py2docfx/convert_prepare/environment.py +25 -6
- py2docfx/convert_prepare/tests/test_generate_document.py +4 -4
- py2docfx/convert_prepare/tests/test_get_source.py +6 -6
- py2docfx/convert_prepare/tests/test_params.py +1 -1
- py2docfx/convert_prepare/tests/test_sphinx_caller.py +3 -3
- py2docfx/venv/basevenv/Lib/site-packages/_distutils_hack/__init__.py +2 -3
- py2docfx/venv/basevenv/Lib/site-packages/packaging/__init__.py +2 -2
- py2docfx/venv/basevenv/Lib/site-packages/packaging/_elffile.py +4 -4
- py2docfx/venv/basevenv/Lib/site-packages/packaging/_manylinux.py +1 -0
- py2docfx/venv/basevenv/Lib/site-packages/packaging/licenses/__init__.py +145 -0
- py2docfx/venv/basevenv/Lib/site-packages/packaging/licenses/_spdx.py +759 -0
- py2docfx/venv/basevenv/Lib/site-packages/packaging/markers.py +15 -9
- py2docfx/venv/basevenv/Lib/site-packages/packaging/metadata.py +83 -24
- py2docfx/venv/basevenv/Lib/site-packages/packaging/specifiers.py +19 -8
- py2docfx/venv/basevenv/Lib/site-packages/packaging/tags.py +78 -29
- py2docfx/venv/basevenv/Lib/site-packages/packaging/utils.py +33 -44
- py2docfx/venv/basevenv/Lib/site-packages/packaging/version.py +26 -7
- py2docfx/venv/basevenv/Lib/site-packages/pkg_resources/__init__.py +27 -32
- py2docfx/venv/basevenv/Lib/site-packages/pkg_resources/tests/test_pkg_resources.py +4 -4
- py2docfx/venv/basevenv/Lib/site-packages/pkg_resources/tests/test_resources.py +7 -7
- py2docfx/venv/basevenv/Lib/site-packages/pkg_resources/tests/test_working_set.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/__init__.py +7 -9
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compat/py38.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/dir_util.py +3 -8
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/tests/test_dir_util.py +22 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_importlib.py +1 -4
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_path.py +5 -8
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_reqs.py +2 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_shutil.py +53 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/packaging/__init__.py +2 -2
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/packaging/_elffile.py +4 -4
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/packaging/_manylinux.py +1 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/packaging/licenses/__init__.py +145 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/packaging/licenses/_spdx.py +759 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/packaging/markers.py +15 -9
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/packaging/metadata.py +83 -24
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/packaging/specifiers.py +19 -8
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/packaging/tags.py +78 -29
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/packaging/utils.py +33 -44
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/packaging/version.py +26 -7
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/archive_util.py +6 -4
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/build_meta.py +23 -17
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/__init__.py +9 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/_requirestxt.py +4 -4
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/alias.py +3 -4
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/bdist_egg.py +27 -13
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/bdist_rpm.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/bdist_wheel.py +18 -45
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/build.py +3 -3
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/build_clib.py +2 -9
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/build_ext.py +13 -12
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/build_py.py +17 -16
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/develop.py +4 -4
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/dist_info.py +3 -7
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/easy_install.py +55 -78
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/editable_wheel.py +19 -21
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/egg_info.py +29 -30
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/install.py +31 -13
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/install_egg_info.py +2 -2
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/install_lib.py +10 -7
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/install_scripts.py +2 -2
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/rotate.py +6 -6
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/sdist.py +9 -8
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/setopt.py +2 -2
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/config/_apply_pyprojecttoml.py +19 -14
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/config/expand.py +22 -16
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/config/pyprojecttoml.py +25 -10
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/config/setupcfg.py +39 -47
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/depends.py +26 -7
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/discovery.py +21 -14
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/dist.py +48 -45
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/errors.py +21 -26
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/extension.py +18 -6
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/glob.py +35 -15
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/installer.py +6 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/launch.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/logging.py +2 -2
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/modified.py +16 -6
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/monkey.py +2 -2
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/msvc.py +25 -14
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/namespaces.py +2 -2
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/package_index.py +42 -43
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/sandbox.py +19 -12
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/config/downloads/__init__.py +5 -3
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/config/test_apply_pyprojecttoml.py +7 -6
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/config/test_expand.py +3 -3
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/config/test_pyprojecttoml.py +9 -2
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/config/test_pyprojecttoml_dynamic_deps.py +21 -11
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/config/test_setupcfg.py +12 -16
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/integration/test_pip_install_sdist.py +10 -11
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_bdist_egg.py +7 -3
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_bdist_wheel.py +10 -33
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_build_ext.py +2 -2
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_build_meta.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_build_py.py +6 -6
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_config_discovery.py +4 -4
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_core_metadata.py +3 -4
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_dist.py +11 -13
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_dist_info.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_distutils_adoption.py +44 -5
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_easy_install.py +32 -26
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_editable_install.py +10 -6
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_egg_info.py +15 -15
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_glob.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_logging.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_manifest.py +2 -8
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_packageindex.py +6 -17
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_setuptools.py +4 -3
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_shutil_wrapper.py +23 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_wheel.py +29 -20
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_windows_wrappers.py +3 -3
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/warnings.py +5 -2
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/wheel.py +4 -4
- py2docfx/venv/basevenv/Lib/site-packages/wheel/__init__.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/wheel/_bdist_wheel.py +9 -0
- py2docfx/venv/basevenv/Lib/site-packages/wheel/bdist_wheel.py +17 -2
- py2docfx/venv/basevenv/Lib/site-packages/wheel/cli/convert.py +280 -220
- py2docfx/venv/basevenv/Lib/site-packages/wheel/util.py +0 -9
- py2docfx/venv/venv1/Lib/site-packages/_distutils_hack/__init__.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/azure/core/_enum_meta.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/core/_pipeline_client.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/azure/core/_pipeline_client_async.py +5 -3
- py2docfx/venv/venv1/Lib/site-packages/azure/core/_version.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/core/credentials.py +6 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/core/exceptions.py +13 -5
- py2docfx/venv/venv1/Lib/site-packages/azure/core/messaging.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/azure/core/paging.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/__init__.py +16 -5
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/_base.py +15 -4
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/_base_async.py +20 -10
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/_tools.py +3 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/policies/_authentication.py +55 -19
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/policies/_authentication_async.py +46 -15
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/policies/_custom_hook.py +8 -3
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/policies/_distributed_tracing.py +9 -3
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/policies/_redirect.py +9 -2
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/policies/_redirect_async.py +4 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/policies/_retry.py +27 -8
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/policies/_retry_async.py +6 -3
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/policies/_sensitive_header_cleanup_policy.py +4 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/policies/_universal.py +6 -10
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/policies/_utils.py +101 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/transport/__init__.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/transport/_aiohttp.py +9 -2
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/transport/_base.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/transport/_base_async.py +7 -5
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/transport/_requests_asyncio.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/transport/_requests_basic.py +11 -3
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/transport/_requests_trio.py +11 -3
- py2docfx/venv/venv1/Lib/site-packages/azure/core/polling/_async_poller.py +5 -2
- py2docfx/venv/venv1/Lib/site-packages/azure/core/polling/_poller.py +4 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/core/polling/async_base_polling.py +3 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/core/polling/base_polling.py +47 -16
- py2docfx/venv/venv1/Lib/site-packages/azure/core/rest/_helpers.py +3 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/core/rest/_http_response_impl.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/core/rest/_requests_basic.py +3 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/core/serialization.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/core/settings.py +15 -3
- py2docfx/venv/venv1/Lib/site-packages/azure/core/tracing/_abstract_span.py +15 -5
- py2docfx/venv/venv1/Lib/site-packages/azure/core/tracing/common.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/core/tracing/decorator.py +12 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/core/tracing/decorator_async.py +24 -4
- py2docfx/venv/venv1/Lib/site-packages/azure/core/tracing/ext/opencensus_span/__init__.py +119 -110
- py2docfx/venv/venv1/Lib/site-packages/azure/core/tracing/ext/opencensus_span/_version.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/core/utils/_pipeline_transport_rest_shared.py +3 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/core/utils/_pipeline_transport_rest_shared_async.py +10 -1
- py2docfx/venv/venv1/Lib/site-packages/google/api/client_pb2.py +41 -39
- py2docfx/venv/venv1/Lib/site-packages/google/api/error_reason_pb2.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/google/api/httpbody_pb2.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/google/api/metric_pb2.py +17 -11
- py2docfx/venv/venv1/Lib/site-packages/google/api_core/client_options.py +17 -13
- py2docfx/venv/venv1/Lib/site-packages/google/api_core/protobuf_helpers.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/google/api_core/version.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/google/auth/_default.py +4 -0
- py2docfx/venv/venv1/Lib/site-packages/google/auth/compute_engine/_metadata.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/google/auth/iam.py +25 -8
- py2docfx/venv/venv1/Lib/site-packages/google/auth/impersonated_credentials.py +34 -16
- py2docfx/venv/venv1/Lib/site-packages/google/auth/transport/_requests_base.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/google/auth/transport/requests.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/google/auth/version.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/google/oauth2/_client.py +10 -2
- py2docfx/venv/venv1/Lib/site-packages/google/oauth2/service_account.py +1 -0
- py2docfx/venv/venv1/Lib/site-packages/pkg_resources/__init__.py +27 -32
- py2docfx/venv/venv1/Lib/site-packages/pkg_resources/tests/test_pkg_resources.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/pkg_resources/tests/test_resources.py +7 -7
- py2docfx/venv/venv1/Lib/site-packages/pkg_resources/tests/test_working_set.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/proto/enums.py +3 -1
- py2docfx/venv/venv1/Lib/site-packages/proto/marshal/collections/repeated.py +7 -2
- py2docfx/venv/venv1/Lib/site-packages/proto/marshal/compat.py +18 -21
- py2docfx/venv/venv1/Lib/site-packages/proto/marshal/rules/message.py +7 -3
- py2docfx/venv/venv1/Lib/site-packages/proto/message.py +6 -35
- py2docfx/venv/venv1/Lib/site-packages/proto/version.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/__init__.py +7 -9
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compat/py38.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/dir_util.py +3 -8
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/tests/test_dir_util.py +22 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_importlib.py +1 -4
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_path.py +5 -8
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_reqs.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_shutil.py +53 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/packaging/__init__.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/packaging/_elffile.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/packaging/_manylinux.py +1 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/packaging/licenses/__init__.py +145 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/packaging/licenses/_spdx.py +759 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/packaging/markers.py +15 -9
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/packaging/metadata.py +83 -24
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/packaging/specifiers.py +19 -8
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/packaging/tags.py +78 -29
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/packaging/utils.py +33 -44
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/packaging/version.py +26 -7
- py2docfx/venv/venv1/Lib/site-packages/setuptools/archive_util.py +6 -4
- py2docfx/venv/venv1/Lib/site-packages/setuptools/build_meta.py +23 -17
- py2docfx/venv/venv1/Lib/site-packages/setuptools/command/__init__.py +9 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/command/_requirestxt.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/setuptools/command/alias.py +3 -4
- py2docfx/venv/venv1/Lib/site-packages/setuptools/command/bdist_egg.py +27 -13
- py2docfx/venv/venv1/Lib/site-packages/setuptools/command/bdist_rpm.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/command/bdist_wheel.py +18 -45
- py2docfx/venv/venv1/Lib/site-packages/setuptools/command/build.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/setuptools/command/build_clib.py +2 -9
- py2docfx/venv/venv1/Lib/site-packages/setuptools/command/build_ext.py +13 -12
- py2docfx/venv/venv1/Lib/site-packages/setuptools/command/build_py.py +17 -16
- py2docfx/venv/venv1/Lib/site-packages/setuptools/command/develop.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/setuptools/command/dist_info.py +3 -7
- py2docfx/venv/venv1/Lib/site-packages/setuptools/command/easy_install.py +55 -78
- py2docfx/venv/venv1/Lib/site-packages/setuptools/command/editable_wheel.py +19 -21
- py2docfx/venv/venv1/Lib/site-packages/setuptools/command/egg_info.py +29 -30
- py2docfx/venv/venv1/Lib/site-packages/setuptools/command/install.py +31 -13
- py2docfx/venv/venv1/Lib/site-packages/setuptools/command/install_egg_info.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/setuptools/command/install_lib.py +10 -7
- py2docfx/venv/venv1/Lib/site-packages/setuptools/command/install_scripts.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/setuptools/command/rotate.py +6 -6
- py2docfx/venv/venv1/Lib/site-packages/setuptools/command/sdist.py +9 -8
- py2docfx/venv/venv1/Lib/site-packages/setuptools/command/setopt.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/setuptools/config/_apply_pyprojecttoml.py +19 -14
- py2docfx/venv/venv1/Lib/site-packages/setuptools/config/expand.py +22 -16
- py2docfx/venv/venv1/Lib/site-packages/setuptools/config/pyprojecttoml.py +25 -10
- py2docfx/venv/venv1/Lib/site-packages/setuptools/config/setupcfg.py +39 -47
- py2docfx/venv/venv1/Lib/site-packages/setuptools/depends.py +26 -7
- py2docfx/venv/venv1/Lib/site-packages/setuptools/discovery.py +21 -14
- py2docfx/venv/venv1/Lib/site-packages/setuptools/dist.py +48 -45
- py2docfx/venv/venv1/Lib/site-packages/setuptools/errors.py +21 -26
- py2docfx/venv/venv1/Lib/site-packages/setuptools/extension.py +18 -6
- py2docfx/venv/venv1/Lib/site-packages/setuptools/glob.py +35 -15
- py2docfx/venv/venv1/Lib/site-packages/setuptools/installer.py +6 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/launch.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/logging.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/setuptools/modified.py +16 -6
- py2docfx/venv/venv1/Lib/site-packages/setuptools/monkey.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/setuptools/msvc.py +25 -14
- py2docfx/venv/venv1/Lib/site-packages/setuptools/namespaces.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/setuptools/package_index.py +42 -43
- py2docfx/venv/venv1/Lib/site-packages/setuptools/sandbox.py +19 -12
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/config/downloads/__init__.py +5 -3
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/config/test_apply_pyprojecttoml.py +7 -6
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/config/test_expand.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/config/test_pyprojecttoml.py +9 -2
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/config/test_pyprojecttoml_dynamic_deps.py +21 -11
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/config/test_setupcfg.py +12 -16
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/integration/test_pip_install_sdist.py +10 -11
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_bdist_egg.py +7 -3
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_bdist_wheel.py +10 -33
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_build_ext.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_build_meta.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_build_py.py +6 -6
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_config_discovery.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_core_metadata.py +3 -4
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_dist.py +11 -13
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_dist_info.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_distutils_adoption.py +44 -5
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_easy_install.py +32 -26
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_editable_install.py +10 -6
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_egg_info.py +15 -15
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_glob.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_logging.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_manifest.py +2 -8
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_packageindex.py +6 -17
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_setuptools.py +4 -3
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_shutil_wrapper.py +23 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_wheel.py +29 -20
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_windows_wrappers.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/setuptools/warnings.py +5 -2
- py2docfx/venv/venv1/Lib/site-packages/setuptools/wheel.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/wheel/__init__.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/wheel/_bdist_wheel.py +9 -0
- py2docfx/venv/venv1/Lib/site-packages/wheel/bdist_wheel.py +17 -2
- py2docfx/venv/venv1/Lib/site-packages/wheel/cli/convert.py +280 -220
- py2docfx/venv/venv1/Lib/site-packages/wheel/util.py +0 -9
- {py2docfx-0.1.9.dev1897607.dist-info → py2docfx-0.1.9.dev1917798.dist-info}/METADATA +1 -1
- {py2docfx-0.1.9.dev1897607.dist-info → py2docfx-0.1.9.dev1917798.dist-info}/RECORD +293 -353
- {py2docfx-0.1.9.dev1897607.dist-info → py2docfx-0.1.9.dev1917798.dist-info}/WHEEL +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/importlib_resources/__init__.py +0 -36
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/importlib_resources/_adapters.py +0 -168
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/importlib_resources/_common.py +0 -210
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/importlib_resources/_itertools.py +0 -38
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/importlib_resources/abc.py +0 -171
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/importlib_resources/compat/__init__.py +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/importlib_resources/compat/py38.py +0 -11
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/importlib_resources/compat/py39.py +0 -10
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/importlib_resources/functional.py +0 -81
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/importlib_resources/future/__init__.py +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/importlib_resources/future/adapters.py +0 -95
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/importlib_resources/readers.py +0 -194
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/importlib_resources/simple.py +0 -106
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/__init__.py +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/_path.py +0 -56
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/compat/__init__.py +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/compat/py312.py +0 -18
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/compat/py39.py +0 -10
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/data01/__init__.py +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/data01/subdirectory/__init__.py +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/data02/__init__.py +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/data02/one/__init__.py +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/data02/two/__init__.py +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/test_compatibilty_files.py +0 -104
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/test_contents.py +0 -43
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/test_custom.py +0 -47
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/test_files.py +0 -117
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/test_functional.py +0 -242
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/test_open.py +0 -89
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/test_path.py +0 -65
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/test_read.py +0 -97
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/test_reader.py +0 -145
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/test_resource.py +0 -241
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/util.py +0 -164
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/zip.py +0 -32
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/importlib_resources/__init__.py +0 -36
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/importlib_resources/_adapters.py +0 -168
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/importlib_resources/_common.py +0 -210
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/importlib_resources/_itertools.py +0 -38
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/importlib_resources/abc.py +0 -171
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/importlib_resources/compat/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/importlib_resources/compat/py38.py +0 -11
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/importlib_resources/compat/py39.py +0 -10
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/importlib_resources/functional.py +0 -81
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/importlib_resources/future/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/importlib_resources/future/adapters.py +0 -95
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/importlib_resources/readers.py +0 -194
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/importlib_resources/simple.py +0 -106
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/_path.py +0 -56
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/compat/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/compat/py312.py +0 -18
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/compat/py39.py +0 -10
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/data01/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/data01/subdirectory/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/data02/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/data02/one/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/data02/two/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/test_compatibilty_files.py +0 -104
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/test_contents.py +0 -43
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/test_custom.py +0 -47
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/test_files.py +0 -117
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/test_functional.py +0 -242
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/test_open.py +0 -89
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/test_path.py +0 -65
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/test_read.py +0 -97
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/test_reader.py +0 -145
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/test_resource.py +0 -241
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/util.py +0 -164
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/importlib_resources/tests/zip.py +0 -32
- {py2docfx-0.1.9.dev1897607.dist-info → py2docfx-0.1.9.dev1917798.dist-info}/top_level.txt +0 -0
@@ -228,7 +228,9 @@ class HttpRequestBackcompatMixin:
|
|
228
228
|
super(HttpRequestBackcompatMixin, self).__setattr__(attr, value)
|
229
229
|
|
230
230
|
@property
|
231
|
-
def _multipart_mixed_info(
|
231
|
+
def _multipart_mixed_info(
|
232
|
+
self,
|
233
|
+
) -> Optional[Tuple[Sequence[Any], Sequence[Any], str, Dict[str, Any]]]:
|
232
234
|
"""DEPRECATED: Information used to make multipart mixed requests.
|
233
235
|
This is deprecated and will be removed in a later release.
|
234
236
|
|
@@ -24,7 +24,9 @@
|
|
24
24
|
#
|
25
25
|
# --------------------------------------------------------------------------
|
26
26
|
import collections.abc as collections
|
27
|
-
from requests.structures import
|
27
|
+
from requests.structures import ( # pylint: disable=networking-import-outside-azure-core-transport
|
28
|
+
CaseInsensitiveDict,
|
29
|
+
)
|
28
30
|
|
29
31
|
from ._http_response_impl import (
|
30
32
|
_HttpResponseBaseImpl,
|
@@ -115,7 +115,7 @@ def _datetime_as_isostr(dt: Union[datetime, date, time, timedelta]) -> str:
|
|
115
115
|
class AzureJSONEncoder(JSONEncoder):
|
116
116
|
"""A JSON encoder that's capable of serializing datetime objects and bytes."""
|
117
117
|
|
118
|
-
def default(self, o: Any) -> Any:
|
118
|
+
def default(self, o: Any) -> Any:
|
119
119
|
if isinstance(o, (bytes, bytearray)):
|
120
120
|
return base64.b64encode(o).decode()
|
121
121
|
try:
|
@@ -31,7 +31,19 @@ from enum import Enum
|
|
31
31
|
import logging
|
32
32
|
import os
|
33
33
|
import sys
|
34
|
-
from typing import
|
34
|
+
from typing import (
|
35
|
+
Type,
|
36
|
+
Optional,
|
37
|
+
Callable,
|
38
|
+
Union,
|
39
|
+
Dict,
|
40
|
+
Any,
|
41
|
+
TypeVar,
|
42
|
+
Tuple,
|
43
|
+
Generic,
|
44
|
+
Mapping,
|
45
|
+
List,
|
46
|
+
)
|
35
47
|
from azure.core.tracing import AbstractSpan
|
36
48
|
from ._azure_clouds import AzureClouds
|
37
49
|
|
@@ -144,7 +156,7 @@ def _get_opencensus_span() -> Optional[Type[AbstractSpan]]:
|
|
144
156
|
:returns: OpenCensusSpan type or None
|
145
157
|
"""
|
146
158
|
try:
|
147
|
-
from azure.core.tracing.ext.opencensus_span import (
|
159
|
+
from azure.core.tracing.ext.opencensus_span import (
|
148
160
|
OpenCensusSpan,
|
149
161
|
)
|
150
162
|
|
@@ -160,7 +172,7 @@ def _get_opentelemetry_span() -> Optional[Type[AbstractSpan]]:
|
|
160
172
|
:returns: OpenTelemetrySpan type or None
|
161
173
|
"""
|
162
174
|
try:
|
163
|
-
from azure.core.tracing.ext.opentelemetry_span import (
|
175
|
+
from azure.core.tracing.ext.opentelemetry_span import (
|
164
176
|
OpenTelemetrySpan,
|
165
177
|
)
|
166
178
|
|
@@ -7,7 +7,17 @@ from __future__ import annotations
|
|
7
7
|
from enum import Enum
|
8
8
|
from urllib.parse import urlparse
|
9
9
|
|
10
|
-
from typing import
|
10
|
+
from typing import (
|
11
|
+
Any,
|
12
|
+
Sequence,
|
13
|
+
Optional,
|
14
|
+
Union,
|
15
|
+
Callable,
|
16
|
+
Dict,
|
17
|
+
Type,
|
18
|
+
Generic,
|
19
|
+
TypeVar,
|
20
|
+
)
|
11
21
|
from types import TracebackType
|
12
22
|
from typing_extensions import Protocol, ContextManager, runtime_checkable
|
13
23
|
from azure.core.pipeline.transport import HttpRequest, HttpResponse, AsyncHttpResponse
|
@@ -56,9 +66,7 @@ class AbstractSpan(Protocol, Generic[SpanType]):
|
|
56
66
|
:type name: str
|
57
67
|
"""
|
58
68
|
|
59
|
-
def __init__(
|
60
|
-
self, span: Optional[SpanType] = None, name: Optional[str] = None, **kwargs: Any
|
61
|
-
) -> None:
|
69
|
+
def __init__(self, span: Optional[SpanType] = None, name: Optional[str] = None, **kwargs: Any) -> None:
|
62
70
|
pass
|
63
71
|
|
64
72
|
def span(self, name: str = "child_span", **kwargs: Any) -> AbstractSpan[SpanType]:
|
@@ -263,7 +271,9 @@ class HttpSpanMixin:
|
|
263
271
|
_ERROR_TYPE = "error.type"
|
264
272
|
|
265
273
|
def set_http_attributes(
|
266
|
-
self: AbstractSpan,
|
274
|
+
self: AbstractSpan,
|
275
|
+
request: HttpRequestType,
|
276
|
+
response: Optional[HttpResponseType] = None,
|
267
277
|
) -> None:
|
268
278
|
"""
|
269
279
|
Add correct attributes for a http client span.
|
@@ -54,7 +54,7 @@ def get_function_and_class_name(func: Callable, *args: object) -> str:
|
|
54
54
|
return func.__qualname__
|
55
55
|
except AttributeError:
|
56
56
|
if args:
|
57
|
-
return "{}.{}".format(args[0].__class__.__name__, func.__name__)
|
57
|
+
return "{}.{}".format(args[0].__class__.__name__, func.__name__)
|
58
58
|
return func.__name__
|
59
59
|
|
60
60
|
|
@@ -68,6 +68,14 @@ def distributed_trace(
|
|
68
68
|
|
69
69
|
Span will use the func name or "name_of_span".
|
70
70
|
|
71
|
+
Note:
|
72
|
+
|
73
|
+
This decorator SHOULD NOT be used by application developers. It's
|
74
|
+
intended to be called by Azure client libraries only.
|
75
|
+
|
76
|
+
Application developers should use OpenTelemetry or other tracing libraries to
|
77
|
+
instrument their applications.
|
78
|
+
|
71
79
|
:param callable __func: A function to decorate
|
72
80
|
:keyword name_of_span: The span name to replace func name if necessary
|
73
81
|
:paramtype name_of_span: str
|
@@ -89,6 +97,9 @@ def distributed_trace(
|
|
89
97
|
merge_span = kwargs.pop("merge_span", False)
|
90
98
|
passed_in_parent = kwargs.pop("parent_span", None)
|
91
99
|
|
100
|
+
# Assume this will be popped in DistributedTracingPolicy.
|
101
|
+
func_tracing_attributes = kwargs.pop("tracing_attributes", tracing_attributes)
|
102
|
+
|
92
103
|
span_impl_type = settings.tracing_implementation()
|
93
104
|
if span_impl_type is None:
|
94
105
|
return func(*args, **kwargs)
|
@@ -100,7 +111,7 @@ def distributed_trace(
|
|
100
111
|
with change_context(passed_in_parent):
|
101
112
|
name = name_of_span or get_function_and_class_name(func, *args)
|
102
113
|
with span_impl_type(name=name, kind=kind) as span:
|
103
|
-
for key, value in
|
114
|
+
for key, value in func_tracing_attributes.items():
|
104
115
|
span.add_attribute(key, value)
|
105
116
|
return func(*args, **kwargs)
|
106
117
|
|
@@ -27,7 +27,16 @@
|
|
27
27
|
|
28
28
|
import functools
|
29
29
|
|
30
|
-
from typing import
|
30
|
+
from typing import (
|
31
|
+
Awaitable,
|
32
|
+
Callable,
|
33
|
+
Any,
|
34
|
+
TypeVar,
|
35
|
+
overload,
|
36
|
+
Optional,
|
37
|
+
Mapping,
|
38
|
+
TYPE_CHECKING,
|
39
|
+
)
|
31
40
|
from typing_extensions import ParamSpec
|
32
41
|
from .common import change_context, get_function_and_class_name
|
33
42
|
from . import SpanKind as _SpanKind
|
@@ -56,8 +65,8 @@ def distributed_trace_async(
|
|
56
65
|
pass
|
57
66
|
|
58
67
|
|
59
|
-
def distributed_trace_async(
|
60
|
-
__func: Optional[Callable[P, Awaitable[T]]] = None,
|
68
|
+
def distributed_trace_async( # pylint: disable=unused-argument
|
69
|
+
__func: Optional[Callable[P, Awaitable[T]]] = None,
|
61
70
|
*,
|
62
71
|
name_of_span: Optional[str] = None,
|
63
72
|
kind: Optional["SpanKind"] = None,
|
@@ -68,6 +77,14 @@ def distributed_trace_async(
|
|
68
77
|
|
69
78
|
Span will use the func name or "name_of_span".
|
70
79
|
|
80
|
+
Note:
|
81
|
+
|
82
|
+
This decorator SHOULD NOT be used by application developers. It's
|
83
|
+
intended to be called by Azure client libraries only.
|
84
|
+
|
85
|
+
Application developers should use OpenTelemetry or other tracing libraries to
|
86
|
+
instrument their applications.
|
87
|
+
|
71
88
|
:param callable __func: A function to decorate
|
72
89
|
:keyword name_of_span: The span name to replace func name if necessary
|
73
90
|
:paramtype name_of_span: str
|
@@ -89,6 +106,9 @@ def distributed_trace_async(
|
|
89
106
|
merge_span = kwargs.pop("merge_span", False)
|
90
107
|
passed_in_parent = kwargs.pop("parent_span", None)
|
91
108
|
|
109
|
+
# Assume this will be popped in DistributedTracingPolicy.
|
110
|
+
func_tracing_attributes = kwargs.get("tracing_attributes", tracing_attributes)
|
111
|
+
|
92
112
|
span_impl_type = settings.tracing_implementation()
|
93
113
|
if span_impl_type is None:
|
94
114
|
return await func(*args, **kwargs)
|
@@ -100,7 +120,7 @@ def distributed_trace_async(
|
|
100
120
|
with change_context(passed_in_parent):
|
101
121
|
name = name_of_span or get_function_and_class_name(func, *args)
|
102
122
|
with span_impl_type(name=name, kind=kind) as span:
|
103
|
-
for key, value in
|
123
|
+
for key, value in func_tracing_attributes.items():
|
104
124
|
span.add_attribute(key, value)
|
105
125
|
return await func(*args, **kwargs)
|
106
126
|
|
@@ -4,6 +4,7 @@
|
|
4
4
|
# ------------------------------------
|
5
5
|
"""Implements azure.core.tracing.AbstractSpan to wrap opencensus spans."""
|
6
6
|
import warnings
|
7
|
+
from typing import Dict, Optional, Union, Callable, Sequence, Any, Generator
|
7
8
|
|
8
9
|
from opencensus.trace import Span, execution_context
|
9
10
|
from opencensus.trace.tracer import Tracer
|
@@ -12,32 +13,22 @@ from opencensus.trace.link import Link
|
|
12
13
|
from opencensus.trace.propagation import trace_context_http_header_format
|
13
14
|
from opencensus.trace import config_integration as _config_integration
|
14
15
|
|
15
|
-
from azure.core.tracing import SpanKind, HttpSpanMixin # pylint: disable=no-name-in-module
|
16
|
+
from azure.core.tracing import SpanKind, HttpSpanMixin # type: ignore[attr-defined] # pylint: disable=no-name-in-module
|
16
17
|
|
17
18
|
from ._version import VERSION
|
18
19
|
|
19
|
-
try:
|
20
|
-
from typing import TYPE_CHECKING
|
21
|
-
except ImportError:
|
22
|
-
TYPE_CHECKING = False
|
23
|
-
|
24
|
-
if TYPE_CHECKING:
|
25
|
-
from typing import Dict, Optional, Union, Callable, Sequence, Any
|
26
|
-
|
27
|
-
from azure.core.pipeline.transport import HttpRequest, HttpResponse
|
28
|
-
|
29
|
-
AttributeValue = Union[
|
30
|
-
str,
|
31
|
-
bool,
|
32
|
-
int,
|
33
|
-
float,
|
34
|
-
Sequence[str],
|
35
|
-
Sequence[bool],
|
36
|
-
Sequence[int],
|
37
|
-
Sequence[float],
|
38
|
-
]
|
39
|
-
Attributes = Optional[Dict[str, AttributeValue]]
|
40
20
|
|
21
|
+
AttributeValue = Union[
|
22
|
+
str,
|
23
|
+
bool,
|
24
|
+
int,
|
25
|
+
float,
|
26
|
+
Sequence[str],
|
27
|
+
Sequence[bool],
|
28
|
+
Sequence[int],
|
29
|
+
Sequence[float],
|
30
|
+
]
|
31
|
+
Attributes = Dict[str, AttributeValue]
|
41
32
|
|
42
33
|
__version__ = VERSION
|
43
34
|
|
@@ -47,14 +38,13 @@ _config_integration.trace_integrations(["threading"])
|
|
47
38
|
class OpenCensusSpan(HttpSpanMixin, object):
|
48
39
|
"""Wraps a given OpenCensus Span so that it implements azure.core.tracing.AbstractSpan"""
|
49
40
|
|
50
|
-
def __init__(self, span=None, name="span", **kwargs):
|
51
|
-
# type: (Optional[Span], Optional[str], Any) -> None
|
41
|
+
def __init__(self, span: Optional[Span] = None, name: Optional[str] = "span", **kwargs: Any) -> None:
|
52
42
|
"""
|
53
43
|
If a span is not passed in, creates a new tracer. If the instrumentation key for Azure Exporter is given, will
|
54
44
|
configure the azure exporter else will just create a new tracer.
|
55
45
|
|
56
46
|
:param span: The OpenCensus span to wrap
|
57
|
-
:type span:
|
47
|
+
:type span: ~opencensus.trace.Span
|
58
48
|
:param name: The name of the OpenCensus span to create if a new span is needed
|
59
49
|
:type name: str
|
60
50
|
:keyword SpanKind kind: The span kind of this span.
|
@@ -63,21 +53,31 @@ class OpenCensusSpan(HttpSpanMixin, object):
|
|
63
53
|
"""
|
64
54
|
tracer = self.get_current_tracer()
|
65
55
|
value = kwargs.pop("kind", None)
|
66
|
-
kind = (
|
56
|
+
kind: Optional[SpanKind] = (
|
67
57
|
OpenCensusSpanKind.CLIENT
|
68
58
|
if value == SpanKind.CLIENT
|
69
|
-
else
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
59
|
+
else (
|
60
|
+
OpenCensusSpanKind.CLIENT
|
61
|
+
if value == SpanKind.PRODUCER
|
62
|
+
else (
|
63
|
+
OpenCensusSpanKind.SERVER # No producer in opencensus
|
64
|
+
if value == SpanKind.SERVER
|
65
|
+
else (
|
66
|
+
OpenCensusSpanKind.CLIENT
|
67
|
+
if value == SpanKind.CONSUMER
|
68
|
+
else (
|
69
|
+
OpenCensusSpanKind.UNSPECIFIED # No consumer in opencensus
|
70
|
+
if value == SpanKind.INTERNAL
|
71
|
+
else (
|
72
|
+
OpenCensusSpanKind.UNSPECIFIED # No internal in opencensus
|
73
|
+
if value == SpanKind.UNSPECIFIED
|
74
|
+
else None
|
75
|
+
)
|
76
|
+
)
|
77
|
+
)
|
78
|
+
)
|
79
|
+
)
|
80
|
+
)
|
81
81
|
if value and kind is None:
|
82
82
|
raise ValueError("Kind {} is not supported in OpenCensus".format(value))
|
83
83
|
|
@@ -99,41 +99,26 @@ class OpenCensusSpan(HttpSpanMixin, object):
|
|
99
99
|
self._span_instance.links = links
|
100
100
|
|
101
101
|
@property
|
102
|
-
def span_instance(self):
|
103
|
-
|
104
|
-
|
105
|
-
:
|
102
|
+
def span_instance(self) -> Span:
|
103
|
+
"""The OpenCensus span that is being wrapped.
|
104
|
+
|
105
|
+
:rtype: ~opencensus.trace.Span
|
106
106
|
"""
|
107
107
|
return self._span_instance
|
108
108
|
|
109
|
-
def span(self, name="span", **kwargs):
|
110
|
-
|
111
|
-
|
112
|
-
Create a child span for the current span and append it to the child spans list in the span instance.
|
109
|
+
def span(self, name: Optional[str] = "span", **kwargs: Any) -> "OpenCensusSpan":
|
110
|
+
"""Create a child span for the current span and append it to the child spans list in the span instance.
|
111
|
+
|
113
112
|
:param name: Name of the child span
|
114
113
|
:type name: str
|
115
114
|
:keyword SpanKind kind: The span kind of this span.
|
116
115
|
:keyword links: The list of links to be added to the span.
|
117
116
|
:paramtype links: list[~azure.core.tracing.Link]
|
118
117
|
:return: The OpenCensusSpan that is wrapping the child span instance
|
118
|
+
:rtype: OpenCensusSpan
|
119
119
|
"""
|
120
120
|
return self.__class__(name=name, **kwargs)
|
121
121
|
|
122
|
-
@property
|
123
|
-
def kind(self):
|
124
|
-
# type: () -> Optional[SpanKind]
|
125
|
-
"""Get the span kind of this span."""
|
126
|
-
value = self.span_instance.span_kind
|
127
|
-
return (
|
128
|
-
SpanKind.CLIENT
|
129
|
-
if value == OpenCensusSpanKind.CLIENT
|
130
|
-
else SpanKind.SERVER
|
131
|
-
if value == OpenCensusSpanKind.SERVER
|
132
|
-
else SpanKind.UNSPECIFIED
|
133
|
-
if value == OpenCensusSpanKind.UNSPECIFIED
|
134
|
-
else None
|
135
|
-
)
|
136
|
-
|
137
122
|
_KIND_MAPPING = {
|
138
123
|
SpanKind.CLIENT: OpenCensusSpanKind.CLIENT,
|
139
124
|
SpanKind.PRODUCER: OpenCensusSpanKind.CLIENT, # No producer in opencensus
|
@@ -143,42 +128,60 @@ class OpenCensusSpan(HttpSpanMixin, object):
|
|
143
128
|
SpanKind.UNSPECIFIED: OpenCensusSpanKind.UNSPECIFIED,
|
144
129
|
}
|
145
130
|
|
131
|
+
@property
|
132
|
+
def kind(self) -> Optional[SpanKind]:
|
133
|
+
"""Get the span kind of this span.
|
134
|
+
|
135
|
+
:rtype: ~azure.core.tracing.SpanKind or None
|
136
|
+
"""
|
137
|
+
value = self.span_instance.span_kind
|
138
|
+
return (
|
139
|
+
SpanKind.CLIENT
|
140
|
+
if value == OpenCensusSpanKind.CLIENT
|
141
|
+
else (
|
142
|
+
SpanKind.SERVER
|
143
|
+
if value == OpenCensusSpanKind.SERVER
|
144
|
+
else SpanKind.UNSPECIFIED if value == OpenCensusSpanKind.UNSPECIFIED else None
|
145
|
+
)
|
146
|
+
)
|
147
|
+
|
146
148
|
@kind.setter
|
147
|
-
def kind(self, value):
|
148
|
-
|
149
|
-
|
149
|
+
def kind(self, value: SpanKind) -> None:
|
150
|
+
"""Set the span kind of this span.
|
151
|
+
|
152
|
+
:param value: The span kind of this span.
|
153
|
+
:type value: ~azure.core.tracing.SpanKind
|
154
|
+
"""
|
150
155
|
kind = self._KIND_MAPPING.get(value)
|
151
156
|
if kind is None:
|
152
157
|
raise ValueError("Kind {} is not supported in OpenCensus".format(value))
|
153
158
|
self.span_instance.span_kind = kind
|
154
159
|
|
155
160
|
def __enter__(self):
|
156
|
-
|
161
|
+
# Start a span.
|
157
162
|
self.span_instance.__enter__()
|
158
163
|
return self
|
159
164
|
|
160
165
|
def __exit__(self, exception_type, exception_value, traceback):
|
161
|
-
|
166
|
+
# Finish a span.
|
162
167
|
self.span_instance.__exit__(exception_type, exception_value, traceback)
|
163
168
|
|
164
|
-
def start(self):
|
165
|
-
# type: () -> None
|
169
|
+
def start(self) -> None:
|
166
170
|
"""Set the start time for a span."""
|
167
171
|
self.__enter__()
|
168
172
|
|
169
|
-
def finish(self):
|
170
|
-
# type: () -> None
|
173
|
+
def finish(self) -> None:
|
171
174
|
"""Set the end time for a span."""
|
172
175
|
self.__exit__(None, None, None)
|
173
176
|
|
174
|
-
def to_header(self):
|
175
|
-
|
176
|
-
|
177
|
-
Returns a dictionary with the header labels and values.
|
177
|
+
def to_header(self) -> Dict[str, str]:
|
178
|
+
"""Returns a dictionary with the header labels and values.
|
179
|
+
|
178
180
|
:return: A key value pair dictionary
|
181
|
+
:rtype: dict
|
179
182
|
"""
|
180
183
|
tracer_from_context = self.get_current_tracer()
|
181
|
-
temp_headers
|
184
|
+
temp_headers: Dict[str, str] = {}
|
182
185
|
if tracer_from_context is not None:
|
183
186
|
ctx = tracer_from_context.span_context
|
184
187
|
try:
|
@@ -187,10 +190,8 @@ class OpenCensusSpan(HttpSpanMixin, object):
|
|
187
190
|
pass
|
188
191
|
return temp_headers
|
189
192
|
|
190
|
-
def add_attribute(self, key, value):
|
191
|
-
|
192
|
-
"""
|
193
|
-
Add attribute (key value pair) to the current span.
|
193
|
+
def add_attribute(self, key: str, value: Union[str, int]) -> None:
|
194
|
+
"""Add attribute (key value pair) to the current span.
|
194
195
|
|
195
196
|
:param key: The key of the key value pair
|
196
197
|
:type key: str
|
@@ -215,61 +216,67 @@ class OpenCensusSpan(HttpSpanMixin, object):
|
|
215
216
|
return self.to_header()["traceparent"]
|
216
217
|
|
217
218
|
@classmethod
|
218
|
-
def link(cls, traceparent, attributes=None):
|
219
|
-
|
220
|
-
"""
|
221
|
-
Links the context to the current tracer.
|
219
|
+
def link(cls, traceparent: str, attributes: Optional[Attributes] = None) -> None:
|
220
|
+
"""Links the context to the current tracer.
|
222
221
|
|
223
222
|
:param traceparent: A complete traceparent
|
224
223
|
:type traceparent: str
|
224
|
+
:param attributes: Attributes to be added to the link
|
225
|
+
:type attributes: dict or None
|
225
226
|
"""
|
226
227
|
cls.link_from_headers({"traceparent": traceparent}, attributes)
|
227
228
|
|
228
229
|
@classmethod
|
229
|
-
def link_from_headers(cls, headers, attributes=None):
|
230
|
-
|
231
|
-
"""
|
232
|
-
Given a dictionary, extracts the context and links the context to the current tracer.
|
230
|
+
def link_from_headers(cls, headers: Dict[str, str], attributes: Optional[Attributes] = None) -> None:
|
231
|
+
"""Given a dictionary, extracts the context and links the context to the current tracer.
|
233
232
|
|
234
233
|
:param headers: A key value pair dictionary
|
235
234
|
:type headers: dict
|
235
|
+
:param attributes: Attributes to be added to the link
|
236
|
+
:type attributes: dict or None
|
236
237
|
"""
|
237
238
|
ctx = trace_context_http_header_format.TraceContextPropagator().from_headers(headers)
|
238
239
|
current_span = cls.get_current_span()
|
239
240
|
current_span.add_link(Link(trace_id=ctx.trace_id, span_id=ctx.span_id, attributes=attributes))
|
240
241
|
|
241
242
|
@classmethod
|
242
|
-
def get_current_span(cls):
|
243
|
-
|
244
|
-
|
245
|
-
|
243
|
+
def get_current_span(cls) -> Span:
|
244
|
+
"""Get the current span from the execution context.
|
245
|
+
|
246
|
+
:return: The current span
|
247
|
+
:rtype: ~opencensus.trace.Span
|
246
248
|
"""
|
247
249
|
return execution_context.get_current_span()
|
248
250
|
|
249
251
|
@classmethod
|
250
|
-
def get_current_tracer(cls):
|
251
|
-
|
252
|
-
|
253
|
-
|
252
|
+
def get_current_tracer(cls) -> Tracer:
|
253
|
+
"""Get the current tracer from the execution context.
|
254
|
+
|
255
|
+
:return: The current tracer
|
256
|
+
:rtype: ~opencensus.trace.tracer.Tracer
|
254
257
|
"""
|
255
258
|
return execution_context.get_opencensus_tracer()
|
256
259
|
|
257
260
|
@classmethod
|
258
|
-
def set_current_span(cls, span):
|
259
|
-
# type: (Span) -> None
|
261
|
+
def set_current_span(cls, span: Span) -> None:
|
260
262
|
"""
|
261
263
|
Set the given span as the current span in the execution context.
|
262
264
|
|
263
265
|
:param span: The span to set the current span as
|
264
|
-
:type span:
|
266
|
+
:type span: ~opencensus.trace.Span
|
265
267
|
"""
|
266
268
|
warnings.warn("set_current_span is deprecated, use change_context instead", DeprecationWarning)
|
267
269
|
return execution_context.set_current_span(span)
|
268
270
|
|
269
271
|
@classmethod
|
270
|
-
def change_context(cls, span):
|
271
|
-
|
272
|
-
|
272
|
+
def change_context(cls, span: Span) -> Generator:
|
273
|
+
"""Change the context for the life of this context manager.
|
274
|
+
|
275
|
+
:param span: The span to set the current span as
|
276
|
+
:type span: ~opencensus.trace.Span
|
277
|
+
:return: A generator that will change the context for the life of the context manager
|
278
|
+
:rtype: Generator
|
279
|
+
"""
|
273
280
|
original_span = cls.get_current_span()
|
274
281
|
try:
|
275
282
|
execution_context.set_current_span(span)
|
@@ -278,26 +285,28 @@ class OpenCensusSpan(HttpSpanMixin, object):
|
|
278
285
|
execution_context.set_current_span(original_span)
|
279
286
|
|
280
287
|
@classmethod
|
281
|
-
def set_current_tracer(cls, tracer):
|
282
|
-
|
283
|
-
|
284
|
-
Set the given tracer as the current tracer in the execution context.
|
288
|
+
def set_current_tracer(cls, tracer: Tracer) -> None:
|
289
|
+
"""Set the given tracer as the current tracer in the execution context.
|
290
|
+
|
285
291
|
:param tracer: The tracer to set the current tracer as
|
286
|
-
:type tracer:
|
292
|
+
:type tracer: ~opencensus.trace.tracer.Tracer
|
287
293
|
"""
|
288
294
|
return execution_context.set_opencensus_tracer(tracer)
|
289
295
|
|
290
296
|
@classmethod
|
291
|
-
def with_current_context(cls, func):
|
292
|
-
# type: (Callable) -> Callable
|
297
|
+
def with_current_context(cls, func: Callable) -> Callable:
|
293
298
|
"""Passes the current spans to the new context the function will be run in.
|
294
299
|
|
295
300
|
:param func: The function that will be run in the new context
|
301
|
+
:type func: callable
|
296
302
|
:return: The target the pass in instead of the function
|
303
|
+
:rtype: callable
|
297
304
|
"""
|
298
305
|
try:
|
299
306
|
import opencensus.ext.threading # pylint: disable=unused-import
|
300
|
-
except ImportError:
|
301
|
-
raise ValueError(
|
307
|
+
except ImportError as ex:
|
308
|
+
raise ValueError(
|
309
|
+
"In order to trace threads with Opencensus, please install opencensus-ext-threading"
|
310
|
+
) from ex
|
302
311
|
# Noop, once opencensus-ext-threading is installed threads get context for free.
|
303
312
|
return func
|
@@ -335,7 +335,9 @@ def _parts_helper(
|
|
335
335
|
return responses
|
336
336
|
|
337
337
|
|
338
|
-
def _format_data_helper(
|
338
|
+
def _format_data_helper(
|
339
|
+
data: "FileType",
|
340
|
+
) -> Union[Tuple[Optional[str], str], Tuple[Optional[str], "FileContent", str]]:
|
339
341
|
"""Helper for _format_data.
|
340
342
|
|
341
343
|
Format field data according to whether it is a stream or
|
py2docfx/venv/venv1/Lib/site-packages/azure/core/utils/_pipeline_transport_rest_shared_async.py
CHANGED
@@ -5,7 +5,16 @@
|
|
5
5
|
# license information.
|
6
6
|
# --------------------------------------------------------------------------
|
7
7
|
import asyncio
|
8
|
-
from typing import
|
8
|
+
from typing import (
|
9
|
+
TYPE_CHECKING,
|
10
|
+
List,
|
11
|
+
Generic,
|
12
|
+
TypeVar,
|
13
|
+
Type,
|
14
|
+
Optional,
|
15
|
+
AsyncIterator,
|
16
|
+
Iterator,
|
17
|
+
)
|
9
18
|
from ..pipeline import PipelineContext, PipelineRequest, PipelineResponse
|
10
19
|
from ..pipeline._tools_async import await_result as _await_result
|
11
20
|
|