py2docfx 0.1.16.dev2052678__py3-none-any.whl → 0.1.16.dev2064350__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 +3 -1
- py2docfx/convert_prepare/get_source.py +6 -1
- py2docfx/convert_prepare/package_info.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/babel/py.typed +1 -0
- py2docfx/venv/basevenv/Lib/site-packages/markupsafe/_speedups.pyi +1 -0
- py2docfx/venv/basevenv/Lib/site-packages/markupsafe/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/packaging/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/pip/_vendor/cachecontrol/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/pip/_vendor/certifi/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/pip/_vendor/chardet/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/pip/_vendor/distro/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/pip/_vendor/idna/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/pip/_vendor/packaging/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/pip/_vendor/platformdirs/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/pip/_vendor/pyparsing/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/pip/_vendor/resolvelib/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/pip/_vendor/rich/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/pip/_vendor/tenacity/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/pip/_vendor/tomli/py.typed +1 -0
- py2docfx/venv/basevenv/Lib/site-packages/pip/_vendor/truststore/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/pip/py.typed +4 -0
- py2docfx/venv/basevenv/Lib/site-packages/pkg_resources/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/importlib_metadata/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/inflect/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/jaraco/collections/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/jaraco/functools/__init__.pyi +125 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/jaraco/functools/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/more_itertools/__init__.pyi +2 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/more_itertools/more.pyi +709 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/more_itertools/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/more_itertools/recipes.pyi +136 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/packaging/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/platformdirs/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/tomli/py.typed +1 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/typeguard/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/sphinx/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/sphinxcontrib/applehelp/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/sphinxcontrib/htmlhelp/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/sphinxcontrib/qthelp/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/sphinxcontrib/serializinghtml/py.typed +0 -0
- py2docfx/venv/basevenv/Lib/site-packages/urllib3/_version.py +9 -4
- py2docfx/venv/basevenv/Lib/site-packages/urllib3/contrib/emscripten/response.py +8 -16
- py2docfx/venv/basevenv/Lib/site-packages/urllib3/contrib/pyopenssl.py +10 -0
- py2docfx/venv/basevenv/Lib/site-packages/urllib3/exceptions.py +12 -4
- py2docfx/venv/basevenv/Lib/site-packages/urllib3/http2/connection.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/urllib3/py.typed +2 -0
- py2docfx/venv/basevenv/Lib/site-packages/urllib3/util/ssl_.py +21 -1
- py2docfx/venv/basevenv/Lib/site-packages/urllib3/util/ssl_match_hostname.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/wheel/__init__.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/wheel/__main__.py +7 -5
- py2docfx/venv/basevenv/Lib/site-packages/wheel/{cli → _commands}/__init__.py +3 -5
- py2docfx/venv/basevenv/Lib/site-packages/wheel/{cli → _commands}/convert.py +14 -9
- py2docfx/venv/basevenv/Lib/site-packages/wheel/{cli → _commands}/pack.py +1 -2
- py2docfx/venv/basevenv/Lib/site-packages/wheel/{cli → _commands}/tags.py +4 -3
- py2docfx/venv/basevenv/Lib/site-packages/wheel/_metadata.py +184 -0
- py2docfx/venv/basevenv/Lib/site-packages/wheel/bdist_wheel.py +12 -23
- py2docfx/venv/basevenv/Lib/site-packages/wheel/macosx_libfile.py +4 -0
- py2docfx/venv/basevenv/Lib/site-packages/wheel/metadata.py +17 -183
- py2docfx/venv/basevenv/Lib/site-packages/wheel/wheelfile.py +30 -16
- py2docfx/venv/venv1/Lib/site-packages/azure/core/_version.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/core/credentials.py +5 -4
- py2docfx/venv/venv1/Lib/site-packages/azure/core/instrumentation.py +67 -0
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/_base.py +3 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/_tools.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/policies/_authentication.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/policies/_authentication_async.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/policies/_distributed_tracing.py +152 -29
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/policies/_redirect.py +3 -2
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/policies/_redirect_async.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/policies/_retry.py +3 -10
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/policies/_retry_async.py +3 -8
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/policies/_universal.py +2 -0
- py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/transport/_aiohttp.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/core/polling/base_polling.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/azure/core/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/azure/core/rest/_http_response_impl_async.py +3 -0
- py2docfx/venv/venv1/Lib/site-packages/azure/core/rest/_rest_py3.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/azure/core/settings.py +27 -21
- py2docfx/venv/venv1/Lib/site-packages/azure/core/tracing/__init__.py +3 -7
- py2docfx/venv/venv1/Lib/site-packages/azure/core/tracing/_abstract_span.py +2 -35
- py2docfx/venv/venv1/Lib/site-packages/azure/core/tracing/_models.py +71 -0
- py2docfx/venv/venv1/Lib/site-packages/azure/core/tracing/common.py +12 -4
- py2docfx/venv/venv1/Lib/site-packages/azure/core/tracing/decorator.py +66 -13
- py2docfx/venv/venv1/Lib/site-packages/azure/core/tracing/decorator_async.py +62 -23
- py2docfx/venv/venv1/Lib/site-packages/azure/core/tracing/ext/opencensus_span/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/azure/core/tracing/opentelemetry.py +244 -0
- py2docfx/venv/venv1/Lib/site-packages/azure/core/utils/_connection_string_parser.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/azure/core/utils/_messaging_shared.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/core/utils/_pipeline_transport_rest_shared.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/core/utils/_utils.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/identity/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/certifi/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/charset_normalizer/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/__init__.pyi +28 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/_openssl.pyi +8 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/asn1.pyi +7 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/exceptions.pyi +17 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/ocsp.pyi +117 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/__init__.pyi +72 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/aead.pyi +103 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/ciphers.pyi +38 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/cmac.pyi +18 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/dh.pyi +51 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/dsa.pyi +41 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/ec.pyi +52 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/ed25519.pyi +12 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/ed448.pyi +12 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/hashes.pyi +19 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/hmac.pyi +21 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/kdf.pyi +43 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/keys.pyi +33 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/poly1305.pyi +13 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/rsa.pyi +55 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/x25519.pyi +12 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/x448.pyi +12 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/pkcs12.pyi +46 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/pkcs7.pyi +49 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/test_support.pyi +22 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/x509.pyi +246 -0
- py2docfx/venv/venv1/Lib/site-packages/cryptography/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/annotations_pb2.pyi +24 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/auth_pb2.pyi +120 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/backend_pb2.pyi +102 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/billing_pb2.pyi +50 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/client_pb2.pyi +405 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/config_change_pb2.pyi +65 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/consumer_pb2.pyi +62 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/context_pb2.pyi +60 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/control_pb2.pyi +43 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/distribution_pb2.pyi +144 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/documentation_pb2.pyi +86 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/endpoint_pb2.pyi +41 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/error_reason_pb2.pyi +90 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/field_behavior_pb2.pyi +45 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/field_info_pb2.pyi +60 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/http_pb2.pyi +94 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/httpbody_pb2.pyi +41 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/label_pb2.pyi +47 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/launch_stage_pb2.pyi +40 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/log_pb2.pyi +47 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/logging_pb2.pyi +57 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/metric_pb2.pyi +186 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/monitored_resource_pb2.pyi +104 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/monitoring_pb2.pyi +57 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/policy_pb2.pyi +57 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/quota_pb2.pyi +116 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/resource_pb2.pyi +93 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/routing_pb2.pyi +49 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/service_pb2.pyi +170 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/source_info_pb2.pyi +34 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/system_parameter_pb2.pyi +60 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/usage_pb2.pyi +55 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api/visibility_pb2.pyi +56 -0
- py2docfx/venv/venv1/Lib/site-packages/google/api_core/py.typed +2 -0
- py2docfx/venv/venv1/Lib/site-packages/google/auth/py.typed +2 -0
- py2docfx/venv/venv1/Lib/site-packages/google/cloud/extended_operations_pb2.pyi +45 -0
- py2docfx/venv/venv1/Lib/site-packages/google/cloud/location/locations_pb2.pyi +96 -0
- py2docfx/venv/venv1/Lib/site-packages/google/gapic/metadata/gapic_metadata_pb2.pyi +118 -0
- py2docfx/venv/venv1/Lib/site-packages/google/logging/type/http_request_pb2.pyi +91 -0
- py2docfx/venv/venv1/Lib/site-packages/google/logging/type/log_severity_pb2.pyi +42 -0
- py2docfx/venv/venv1/Lib/site-packages/google/longrunning/operations_proto_pb2.pyi +126 -0
- py2docfx/venv/venv1/Lib/site-packages/google/oauth2/py.typed +2 -0
- py2docfx/venv/venv1/Lib/site-packages/google/rpc/code_pb2.pyi +58 -0
- py2docfx/venv/venv1/Lib/site-packages/google/rpc/context/attribute_context_pb2.pyi +309 -0
- py2docfx/venv/venv1/Lib/site-packages/google/rpc/context/audit_context_pb2.pyi +51 -0
- py2docfx/venv/venv1/Lib/site-packages/google/rpc/error_details_pb2.pyi +207 -0
- py2docfx/venv/venv1/Lib/site-packages/google/rpc/http_pb2.pyi +71 -0
- py2docfx/venv/venv1/Lib/site-packages/google/rpc/status_pb2.pyi +41 -0
- py2docfx/venv/venv1/Lib/site-packages/google/type/calendar_period_pb2.pyi +40 -0
- py2docfx/venv/venv1/Lib/site-packages/google/type/color_pb2.pyi +42 -0
- py2docfx/venv/venv1/Lib/site-packages/google/type/date_pb2.pyi +36 -0
- py2docfx/venv/venv1/Lib/site-packages/google/type/datetime_pb2.pyi +77 -0
- py2docfx/venv/venv1/Lib/site-packages/google/type/dayofweek_pb2.pyi +40 -0
- py2docfx/venv/venv1/Lib/site-packages/google/type/decimal_pb2.pyi +27 -0
- py2docfx/venv/venv1/Lib/site-packages/google/type/expr_pb2.pyi +39 -0
- py2docfx/venv/venv1/Lib/site-packages/google/type/fraction_pb2.pyi +31 -0
- py2docfx/venv/venv1/Lib/site-packages/google/type/interval_pb2.pyi +36 -0
- py2docfx/venv/venv1/Lib/site-packages/google/type/latlng_pb2.pyi +31 -0
- py2docfx/venv/venv1/Lib/site-packages/google/type/localized_text_pb2.pyi +31 -0
- py2docfx/venv/venv1/Lib/site-packages/google/type/money_pb2.pyi +36 -0
- py2docfx/venv/venv1/Lib/site-packages/google/type/month_pb2.pyi +50 -0
- py2docfx/venv/venv1/Lib/site-packages/google/type/phone_number_pb2.pyi +48 -0
- py2docfx/venv/venv1/Lib/site-packages/google/type/postal_address_pb2.pyi +74 -0
- py2docfx/venv/venv1/Lib/site-packages/google/type/quaternion_pb2.pyi +39 -0
- py2docfx/venv/venv1/Lib/site-packages/google/type/timeofday_pb2.pyi +39 -0
- py2docfx/venv/venv1/Lib/site-packages/idna/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/jwt/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/packaging/__init__.py +15 -0
- py2docfx/venv/venv1/Lib/site-packages/{wheel/vendored/packaging → packaging}/_elffile.py +9 -7
- py2docfx/venv/{basevenv/Lib/site-packages/wheel/vendored → venv1/Lib/site-packages}/packaging/_manylinux.py +12 -9
- py2docfx/venv/{basevenv/Lib/site-packages/wheel/vendored → venv1/Lib/site-packages}/packaging/_musllinux.py +5 -3
- py2docfx/venv/venv1/Lib/site-packages/{wheel/vendored/packaging → packaging}/_parser.py +11 -13
- py2docfx/venv/{basevenv/Lib/site-packages/wheel/vendored → venv1/Lib/site-packages}/packaging/_tokenizer.py +10 -8
- py2docfx/venv/venv1/Lib/site-packages/packaging/licenses/__init__.py +145 -0
- py2docfx/venv/venv1/Lib/site-packages/packaging/licenses/_spdx.py +759 -0
- py2docfx/venv/venv1/Lib/site-packages/{wheel/vendored/packaging → packaging}/markers.py +103 -25
- py2docfx/venv/venv1/Lib/site-packages/packaging/metadata.py +863 -0
- py2docfx/venv/venv1/Lib/site-packages/packaging/py.typed +0 -0
- py2docfx/venv/{basevenv/Lib/site-packages/wheel/vendored → venv1/Lib/site-packages}/packaging/requirements.py +5 -4
- py2docfx/venv/{basevenv/Lib/site-packages/wheel/vendored → venv1/Lib/site-packages}/packaging/specifiers.py +40 -31
- py2docfx/venv/venv1/Lib/site-packages/{wheel/vendored/packaging → packaging}/tags.py +96 -50
- py2docfx/venv/{basevenv/Lib/site-packages/wheel/vendored → venv1/Lib/site-packages}/packaging/utils.py +39 -48
- py2docfx/venv/{basevenv/Lib/site-packages/wheel/vendored → venv1/Lib/site-packages}/packaging/version.py +53 -32
- py2docfx/venv/venv1/Lib/site-packages/pip/_vendor/cachecontrol/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pip/_vendor/certifi/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pip/_vendor/chardet/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pip/_vendor/distro/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pip/_vendor/idna/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pip/_vendor/packaging/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pip/_vendor/platformdirs/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pip/_vendor/pyparsing/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pip/_vendor/resolvelib/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pip/_vendor/rich/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pip/_vendor/tenacity/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pip/_vendor/tomli/py.typed +1 -0
- py2docfx/venv/venv1/Lib/site-packages/pip/_vendor/truststore/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pip/py.typed +4 -0
- py2docfx/venv/venv1/Lib/site-packages/pkg_resources/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/rsa/py.typed +1 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/importlib_metadata/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/inflect/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/jaraco/collections/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/jaraco/functools/__init__.pyi +125 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/jaraco/functools/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/more_itertools/__init__.pyi +2 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/more_itertools/more.pyi +709 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/more_itertools/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/more_itertools/recipes.pyi +136 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/packaging/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/platformdirs/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/tomli/py.typed +1 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/typeguard/py.typed +0 -0
- py2docfx/venv/venv1/Lib/site-packages/typing_extensions.py +30 -12
- py2docfx/venv/venv1/Lib/site-packages/urllib3/_version.py +9 -4
- py2docfx/venv/venv1/Lib/site-packages/urllib3/contrib/emscripten/response.py +8 -16
- py2docfx/venv/venv1/Lib/site-packages/urllib3/contrib/pyopenssl.py +10 -0
- py2docfx/venv/venv1/Lib/site-packages/urllib3/exceptions.py +12 -4
- py2docfx/venv/venv1/Lib/site-packages/urllib3/http2/connection.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/urllib3/py.typed +2 -0
- py2docfx/venv/venv1/Lib/site-packages/urllib3/util/ssl_.py +21 -1
- py2docfx/venv/venv1/Lib/site-packages/urllib3/util/ssl_match_hostname.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/wheel/__init__.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/wheel/__main__.py +7 -5
- py2docfx/venv/venv1/Lib/site-packages/wheel/{cli → _commands}/__init__.py +3 -5
- py2docfx/venv/venv1/Lib/site-packages/wheel/{cli → _commands}/convert.py +14 -9
- py2docfx/venv/venv1/Lib/site-packages/wheel/{cli → _commands}/pack.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/wheel/{cli → _commands}/tags.py +4 -3
- py2docfx/venv/venv1/Lib/site-packages/wheel/_metadata.py +184 -0
- py2docfx/venv/venv1/Lib/site-packages/wheel/bdist_wheel.py +12 -23
- py2docfx/venv/venv1/Lib/site-packages/wheel/macosx_libfile.py +4 -0
- py2docfx/venv/venv1/Lib/site-packages/wheel/metadata.py +17 -183
- py2docfx/venv/venv1/Lib/site-packages/wheel/wheelfile.py +30 -16
- {py2docfx-0.1.16.dev2052678.dist-info → py2docfx-0.1.16.dev2064350.dist-info}/METADATA +2 -3
- {py2docfx-0.1.16.dev2052678.dist-info → py2docfx-0.1.16.dev2064350.dist-info}/RECORD +263 -104
- {py2docfx-0.1.16.dev2052678.dist-info → py2docfx-0.1.16.dev2064350.dist-info}/WHEEL +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/wheel/_bdist_wheel.py +0 -613
- py2docfx/venv/basevenv/Lib/site-packages/wheel/_setuptools_logging.py +0 -26
- py2docfx/venv/basevenv/Lib/site-packages/wheel/util.py +0 -17
- py2docfx/venv/basevenv/Lib/site-packages/wheel/vendored/packaging/_elffile.py +0 -108
- py2docfx/venv/basevenv/Lib/site-packages/wheel/vendored/packaging/_parser.py +0 -356
- py2docfx/venv/basevenv/Lib/site-packages/wheel/vendored/packaging/markers.py +0 -253
- py2docfx/venv/basevenv/Lib/site-packages/wheel/vendored/packaging/tags.py +0 -571
- py2docfx/venv/venv1/Lib/site-packages/wheel/_bdist_wheel.py +0 -613
- py2docfx/venv/venv1/Lib/site-packages/wheel/_setuptools_logging.py +0 -26
- py2docfx/venv/venv1/Lib/site-packages/wheel/util.py +0 -17
- py2docfx/venv/venv1/Lib/site-packages/wheel/vendored/packaging/_manylinux.py +0 -260
- py2docfx/venv/venv1/Lib/site-packages/wheel/vendored/packaging/_musllinux.py +0 -83
- py2docfx/venv/venv1/Lib/site-packages/wheel/vendored/packaging/_structures.py +0 -61
- py2docfx/venv/venv1/Lib/site-packages/wheel/vendored/packaging/_tokenizer.py +0 -192
- py2docfx/venv/venv1/Lib/site-packages/wheel/vendored/packaging/requirements.py +0 -90
- py2docfx/venv/venv1/Lib/site-packages/wheel/vendored/packaging/specifiers.py +0 -1011
- py2docfx/venv/venv1/Lib/site-packages/wheel/vendored/packaging/utils.py +0 -172
- py2docfx/venv/venv1/Lib/site-packages/wheel/vendored/packaging/version.py +0 -561
- /py2docfx/venv/basevenv/Lib/site-packages/{wheel/vendored/__init__.py → certifi/py.typed} +0 -0
- /py2docfx/venv/basevenv/Lib/site-packages/{wheel/vendored/packaging/__init__.py → charset_normalizer/py.typed} +0 -0
- /py2docfx/venv/{venv1/Lib/site-packages/wheel/vendored/__init__.py → basevenv/Lib/site-packages/idna/py.typed} +0 -0
- /py2docfx/venv/{venv1/Lib/site-packages/wheel/vendored/packaging/__init__.py → basevenv/Lib/site-packages/jinja2/py.typed} +0 -0
- /py2docfx/venv/basevenv/Lib/site-packages/wheel/{cli → _commands}/unpack.py +0 -0
- /py2docfx/venv/{basevenv/Lib/site-packages/wheel/vendored → venv1/Lib/site-packages}/packaging/_structures.py +0 -0
- /py2docfx/venv/venv1/Lib/site-packages/wheel/{cli → _commands}/unpack.py +0 -0
- {py2docfx-0.1.16.dev2052678.dist-info → py2docfx-0.1.16.dev2064350.dist-info}/top_level.txt +0 -0
@@ -1,260 +0,0 @@
|
|
1
|
-
import collections
|
2
|
-
import contextlib
|
3
|
-
import functools
|
4
|
-
import os
|
5
|
-
import re
|
6
|
-
import sys
|
7
|
-
import warnings
|
8
|
-
from typing import Dict, Generator, Iterator, NamedTuple, Optional, Sequence, Tuple
|
9
|
-
|
10
|
-
from ._elffile import EIClass, EIData, ELFFile, EMachine
|
11
|
-
|
12
|
-
EF_ARM_ABIMASK = 0xFF000000
|
13
|
-
EF_ARM_ABI_VER5 = 0x05000000
|
14
|
-
EF_ARM_ABI_FLOAT_HARD = 0x00000400
|
15
|
-
|
16
|
-
|
17
|
-
# `os.PathLike` not a generic type until Python 3.9, so sticking with `str`
|
18
|
-
# as the type for `path` until then.
|
19
|
-
@contextlib.contextmanager
|
20
|
-
def _parse_elf(path: str) -> Generator[Optional[ELFFile], None, None]:
|
21
|
-
try:
|
22
|
-
with open(path, "rb") as f:
|
23
|
-
yield ELFFile(f)
|
24
|
-
except (OSError, TypeError, ValueError):
|
25
|
-
yield None
|
26
|
-
|
27
|
-
|
28
|
-
def _is_linux_armhf(executable: str) -> bool:
|
29
|
-
# hard-float ABI can be detected from the ELF header of the running
|
30
|
-
# process
|
31
|
-
# https://static.docs.arm.com/ihi0044/g/aaelf32.pdf
|
32
|
-
with _parse_elf(executable) as f:
|
33
|
-
return (
|
34
|
-
f is not None
|
35
|
-
and f.capacity == EIClass.C32
|
36
|
-
and f.encoding == EIData.Lsb
|
37
|
-
and f.machine == EMachine.Arm
|
38
|
-
and f.flags & EF_ARM_ABIMASK == EF_ARM_ABI_VER5
|
39
|
-
and f.flags & EF_ARM_ABI_FLOAT_HARD == EF_ARM_ABI_FLOAT_HARD
|
40
|
-
)
|
41
|
-
|
42
|
-
|
43
|
-
def _is_linux_i686(executable: str) -> bool:
|
44
|
-
with _parse_elf(executable) as f:
|
45
|
-
return (
|
46
|
-
f is not None
|
47
|
-
and f.capacity == EIClass.C32
|
48
|
-
and f.encoding == EIData.Lsb
|
49
|
-
and f.machine == EMachine.I386
|
50
|
-
)
|
51
|
-
|
52
|
-
|
53
|
-
def _have_compatible_abi(executable: str, archs: Sequence[str]) -> bool:
|
54
|
-
if "armv7l" in archs:
|
55
|
-
return _is_linux_armhf(executable)
|
56
|
-
if "i686" in archs:
|
57
|
-
return _is_linux_i686(executable)
|
58
|
-
allowed_archs = {
|
59
|
-
"x86_64",
|
60
|
-
"aarch64",
|
61
|
-
"ppc64",
|
62
|
-
"ppc64le",
|
63
|
-
"s390x",
|
64
|
-
"loongarch64",
|
65
|
-
"riscv64",
|
66
|
-
}
|
67
|
-
return any(arch in allowed_archs for arch in archs)
|
68
|
-
|
69
|
-
|
70
|
-
# If glibc ever changes its major version, we need to know what the last
|
71
|
-
# minor version was, so we can build the complete list of all versions.
|
72
|
-
# For now, guess what the highest minor version might be, assume it will
|
73
|
-
# be 50 for testing. Once this actually happens, update the dictionary
|
74
|
-
# with the actual value.
|
75
|
-
_LAST_GLIBC_MINOR: Dict[int, int] = collections.defaultdict(lambda: 50)
|
76
|
-
|
77
|
-
|
78
|
-
class _GLibCVersion(NamedTuple):
|
79
|
-
major: int
|
80
|
-
minor: int
|
81
|
-
|
82
|
-
|
83
|
-
def _glibc_version_string_confstr() -> Optional[str]:
|
84
|
-
"""
|
85
|
-
Primary implementation of glibc_version_string using os.confstr.
|
86
|
-
"""
|
87
|
-
# os.confstr is quite a bit faster than ctypes.DLL. It's also less likely
|
88
|
-
# to be broken or missing. This strategy is used in the standard library
|
89
|
-
# platform module.
|
90
|
-
# https://github.com/python/cpython/blob/fcf1d003bf4f0100c/Lib/platform.py#L175-L183
|
91
|
-
try:
|
92
|
-
# Should be a string like "glibc 2.17".
|
93
|
-
version_string: Optional[str] = os.confstr("CS_GNU_LIBC_VERSION")
|
94
|
-
assert version_string is not None
|
95
|
-
_, version = version_string.rsplit()
|
96
|
-
except (AssertionError, AttributeError, OSError, ValueError):
|
97
|
-
# os.confstr() or CS_GNU_LIBC_VERSION not available (or a bad value)...
|
98
|
-
return None
|
99
|
-
return version
|
100
|
-
|
101
|
-
|
102
|
-
def _glibc_version_string_ctypes() -> Optional[str]:
|
103
|
-
"""
|
104
|
-
Fallback implementation of glibc_version_string using ctypes.
|
105
|
-
"""
|
106
|
-
try:
|
107
|
-
import ctypes
|
108
|
-
except ImportError:
|
109
|
-
return None
|
110
|
-
|
111
|
-
# ctypes.CDLL(None) internally calls dlopen(NULL), and as the dlopen
|
112
|
-
# manpage says, "If filename is NULL, then the returned handle is for the
|
113
|
-
# main program". This way we can let the linker do the work to figure out
|
114
|
-
# which libc our process is actually using.
|
115
|
-
#
|
116
|
-
# We must also handle the special case where the executable is not a
|
117
|
-
# dynamically linked executable. This can occur when using musl libc,
|
118
|
-
# for example. In this situation, dlopen() will error, leading to an
|
119
|
-
# OSError. Interestingly, at least in the case of musl, there is no
|
120
|
-
# errno set on the OSError. The single string argument used to construct
|
121
|
-
# OSError comes from libc itself and is therefore not portable to
|
122
|
-
# hard code here. In any case, failure to call dlopen() means we
|
123
|
-
# can proceed, so we bail on our attempt.
|
124
|
-
try:
|
125
|
-
process_namespace = ctypes.CDLL(None)
|
126
|
-
except OSError:
|
127
|
-
return None
|
128
|
-
|
129
|
-
try:
|
130
|
-
gnu_get_libc_version = process_namespace.gnu_get_libc_version
|
131
|
-
except AttributeError:
|
132
|
-
# Symbol doesn't exist -> therefore, we are not linked to
|
133
|
-
# glibc.
|
134
|
-
return None
|
135
|
-
|
136
|
-
# Call gnu_get_libc_version, which returns a string like "2.5"
|
137
|
-
gnu_get_libc_version.restype = ctypes.c_char_p
|
138
|
-
version_str: str = gnu_get_libc_version()
|
139
|
-
# py2 / py3 compatibility:
|
140
|
-
if not isinstance(version_str, str):
|
141
|
-
version_str = version_str.decode("ascii")
|
142
|
-
|
143
|
-
return version_str
|
144
|
-
|
145
|
-
|
146
|
-
def _glibc_version_string() -> Optional[str]:
|
147
|
-
"""Returns glibc version string, or None if not using glibc."""
|
148
|
-
return _glibc_version_string_confstr() or _glibc_version_string_ctypes()
|
149
|
-
|
150
|
-
|
151
|
-
def _parse_glibc_version(version_str: str) -> Tuple[int, int]:
|
152
|
-
"""Parse glibc version.
|
153
|
-
|
154
|
-
We use a regexp instead of str.split because we want to discard any
|
155
|
-
random junk that might come after the minor version -- this might happen
|
156
|
-
in patched/forked versions of glibc (e.g. Linaro's version of glibc
|
157
|
-
uses version strings like "2.20-2014.11"). See gh-3588.
|
158
|
-
"""
|
159
|
-
m = re.match(r"(?P<major>[0-9]+)\.(?P<minor>[0-9]+)", version_str)
|
160
|
-
if not m:
|
161
|
-
warnings.warn(
|
162
|
-
f"Expected glibc version with 2 components major.minor,"
|
163
|
-
f" got: {version_str}",
|
164
|
-
RuntimeWarning,
|
165
|
-
)
|
166
|
-
return -1, -1
|
167
|
-
return int(m.group("major")), int(m.group("minor"))
|
168
|
-
|
169
|
-
|
170
|
-
@functools.lru_cache
|
171
|
-
def _get_glibc_version() -> Tuple[int, int]:
|
172
|
-
version_str = _glibc_version_string()
|
173
|
-
if version_str is None:
|
174
|
-
return (-1, -1)
|
175
|
-
return _parse_glibc_version(version_str)
|
176
|
-
|
177
|
-
|
178
|
-
# From PEP 513, PEP 600
|
179
|
-
def _is_compatible(arch: str, version: _GLibCVersion) -> bool:
|
180
|
-
sys_glibc = _get_glibc_version()
|
181
|
-
if sys_glibc < version:
|
182
|
-
return False
|
183
|
-
# Check for presence of _manylinux module.
|
184
|
-
try:
|
185
|
-
import _manylinux
|
186
|
-
except ImportError:
|
187
|
-
return True
|
188
|
-
if hasattr(_manylinux, "manylinux_compatible"):
|
189
|
-
result = _manylinux.manylinux_compatible(version[0], version[1], arch)
|
190
|
-
if result is not None:
|
191
|
-
return bool(result)
|
192
|
-
return True
|
193
|
-
if version == _GLibCVersion(2, 5):
|
194
|
-
if hasattr(_manylinux, "manylinux1_compatible"):
|
195
|
-
return bool(_manylinux.manylinux1_compatible)
|
196
|
-
if version == _GLibCVersion(2, 12):
|
197
|
-
if hasattr(_manylinux, "manylinux2010_compatible"):
|
198
|
-
return bool(_manylinux.manylinux2010_compatible)
|
199
|
-
if version == _GLibCVersion(2, 17):
|
200
|
-
if hasattr(_manylinux, "manylinux2014_compatible"):
|
201
|
-
return bool(_manylinux.manylinux2014_compatible)
|
202
|
-
return True
|
203
|
-
|
204
|
-
|
205
|
-
_LEGACY_MANYLINUX_MAP = {
|
206
|
-
# CentOS 7 w/ glibc 2.17 (PEP 599)
|
207
|
-
(2, 17): "manylinux2014",
|
208
|
-
# CentOS 6 w/ glibc 2.12 (PEP 571)
|
209
|
-
(2, 12): "manylinux2010",
|
210
|
-
# CentOS 5 w/ glibc 2.5 (PEP 513)
|
211
|
-
(2, 5): "manylinux1",
|
212
|
-
}
|
213
|
-
|
214
|
-
|
215
|
-
def platform_tags(archs: Sequence[str]) -> Iterator[str]:
|
216
|
-
"""Generate manylinux tags compatible to the current platform.
|
217
|
-
|
218
|
-
:param archs: Sequence of compatible architectures.
|
219
|
-
The first one shall be the closest to the actual architecture and be the part of
|
220
|
-
platform tag after the ``linux_`` prefix, e.g. ``x86_64``.
|
221
|
-
The ``linux_`` prefix is assumed as a prerequisite for the current platform to
|
222
|
-
be manylinux-compatible.
|
223
|
-
|
224
|
-
:returns: An iterator of compatible manylinux tags.
|
225
|
-
"""
|
226
|
-
if not _have_compatible_abi(sys.executable, archs):
|
227
|
-
return
|
228
|
-
# Oldest glibc to be supported regardless of architecture is (2, 17).
|
229
|
-
too_old_glibc2 = _GLibCVersion(2, 16)
|
230
|
-
if set(archs) & {"x86_64", "i686"}:
|
231
|
-
# On x86/i686 also oldest glibc to be supported is (2, 5).
|
232
|
-
too_old_glibc2 = _GLibCVersion(2, 4)
|
233
|
-
current_glibc = _GLibCVersion(*_get_glibc_version())
|
234
|
-
glibc_max_list = [current_glibc]
|
235
|
-
# We can assume compatibility across glibc major versions.
|
236
|
-
# https://sourceware.org/bugzilla/show_bug.cgi?id=24636
|
237
|
-
#
|
238
|
-
# Build a list of maximum glibc versions so that we can
|
239
|
-
# output the canonical list of all glibc from current_glibc
|
240
|
-
# down to too_old_glibc2, including all intermediary versions.
|
241
|
-
for glibc_major in range(current_glibc.major - 1, 1, -1):
|
242
|
-
glibc_minor = _LAST_GLIBC_MINOR[glibc_major]
|
243
|
-
glibc_max_list.append(_GLibCVersion(glibc_major, glibc_minor))
|
244
|
-
for arch in archs:
|
245
|
-
for glibc_max in glibc_max_list:
|
246
|
-
if glibc_max.major == too_old_glibc2.major:
|
247
|
-
min_minor = too_old_glibc2.minor
|
248
|
-
else:
|
249
|
-
# For other glibc major versions oldest supported is (x, 0).
|
250
|
-
min_minor = -1
|
251
|
-
for glibc_minor in range(glibc_max.minor, min_minor, -1):
|
252
|
-
glibc_version = _GLibCVersion(glibc_max.major, glibc_minor)
|
253
|
-
tag = "manylinux_{}_{}".format(*glibc_version)
|
254
|
-
if _is_compatible(arch, glibc_version):
|
255
|
-
yield f"{tag}_{arch}"
|
256
|
-
# Handle the legacy manylinux1, manylinux2010, manylinux2014 tags.
|
257
|
-
if glibc_version in _LEGACY_MANYLINUX_MAP:
|
258
|
-
legacy_tag = _LEGACY_MANYLINUX_MAP[glibc_version]
|
259
|
-
if _is_compatible(arch, glibc_version):
|
260
|
-
yield f"{legacy_tag}_{arch}"
|
@@ -1,83 +0,0 @@
|
|
1
|
-
"""PEP 656 support.
|
2
|
-
|
3
|
-
This module implements logic to detect if the currently running Python is
|
4
|
-
linked against musl, and what musl version is used.
|
5
|
-
"""
|
6
|
-
|
7
|
-
import functools
|
8
|
-
import re
|
9
|
-
import subprocess
|
10
|
-
import sys
|
11
|
-
from typing import Iterator, NamedTuple, Optional, Sequence
|
12
|
-
|
13
|
-
from ._elffile import ELFFile
|
14
|
-
|
15
|
-
|
16
|
-
class _MuslVersion(NamedTuple):
|
17
|
-
major: int
|
18
|
-
minor: int
|
19
|
-
|
20
|
-
|
21
|
-
def _parse_musl_version(output: str) -> Optional[_MuslVersion]:
|
22
|
-
lines = [n for n in (n.strip() for n in output.splitlines()) if n]
|
23
|
-
if len(lines) < 2 or lines[0][:4] != "musl":
|
24
|
-
return None
|
25
|
-
m = re.match(r"Version (\d+)\.(\d+)", lines[1])
|
26
|
-
if not m:
|
27
|
-
return None
|
28
|
-
return _MuslVersion(major=int(m.group(1)), minor=int(m.group(2)))
|
29
|
-
|
30
|
-
|
31
|
-
@functools.lru_cache
|
32
|
-
def _get_musl_version(executable: str) -> Optional[_MuslVersion]:
|
33
|
-
"""Detect currently-running musl runtime version.
|
34
|
-
|
35
|
-
This is done by checking the specified executable's dynamic linking
|
36
|
-
information, and invoking the loader to parse its output for a version
|
37
|
-
string. If the loader is musl, the output would be something like::
|
38
|
-
|
39
|
-
musl libc (x86_64)
|
40
|
-
Version 1.2.2
|
41
|
-
Dynamic Program Loader
|
42
|
-
"""
|
43
|
-
try:
|
44
|
-
with open(executable, "rb") as f:
|
45
|
-
ld = ELFFile(f).interpreter
|
46
|
-
except (OSError, TypeError, ValueError):
|
47
|
-
return None
|
48
|
-
if ld is None or "musl" not in ld:
|
49
|
-
return None
|
50
|
-
proc = subprocess.run([ld], stderr=subprocess.PIPE, text=True)
|
51
|
-
return _parse_musl_version(proc.stderr)
|
52
|
-
|
53
|
-
|
54
|
-
def platform_tags(archs: Sequence[str]) -> Iterator[str]:
|
55
|
-
"""Generate musllinux tags compatible to the current platform.
|
56
|
-
|
57
|
-
:param archs: Sequence of compatible architectures.
|
58
|
-
The first one shall be the closest to the actual architecture and be the part of
|
59
|
-
platform tag after the ``linux_`` prefix, e.g. ``x86_64``.
|
60
|
-
The ``linux_`` prefix is assumed as a prerequisite for the current platform to
|
61
|
-
be musllinux-compatible.
|
62
|
-
|
63
|
-
:returns: An iterator of compatible musllinux tags.
|
64
|
-
"""
|
65
|
-
sys_musl = _get_musl_version(sys.executable)
|
66
|
-
if sys_musl is None: # Python not dynamically linked against musl.
|
67
|
-
return
|
68
|
-
for arch in archs:
|
69
|
-
for minor in range(sys_musl.minor, -1, -1):
|
70
|
-
yield f"musllinux_{sys_musl.major}_{minor}_{arch}"
|
71
|
-
|
72
|
-
|
73
|
-
if __name__ == "__main__": # pragma: no cover
|
74
|
-
import sysconfig
|
75
|
-
|
76
|
-
plat = sysconfig.get_platform()
|
77
|
-
assert plat.startswith("linux-"), "not linux"
|
78
|
-
|
79
|
-
print("plat:", plat)
|
80
|
-
print("musl:", _get_musl_version(sys.executable))
|
81
|
-
print("tags:", end=" ")
|
82
|
-
for t in platform_tags(re.sub(r"[.-]", "_", plat.split("-", 1)[-1])):
|
83
|
-
print(t, end="\n ")
|
@@ -1,61 +0,0 @@
|
|
1
|
-
# This file is dual licensed under the terms of the Apache License, Version
|
2
|
-
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
3
|
-
# for complete details.
|
4
|
-
|
5
|
-
|
6
|
-
class InfinityType:
|
7
|
-
def __repr__(self) -> str:
|
8
|
-
return "Infinity"
|
9
|
-
|
10
|
-
def __hash__(self) -> int:
|
11
|
-
return hash(repr(self))
|
12
|
-
|
13
|
-
def __lt__(self, other: object) -> bool:
|
14
|
-
return False
|
15
|
-
|
16
|
-
def __le__(self, other: object) -> bool:
|
17
|
-
return False
|
18
|
-
|
19
|
-
def __eq__(self, other: object) -> bool:
|
20
|
-
return isinstance(other, self.__class__)
|
21
|
-
|
22
|
-
def __gt__(self, other: object) -> bool:
|
23
|
-
return True
|
24
|
-
|
25
|
-
def __ge__(self, other: object) -> bool:
|
26
|
-
return True
|
27
|
-
|
28
|
-
def __neg__(self: object) -> "NegativeInfinityType":
|
29
|
-
return NegativeInfinity
|
30
|
-
|
31
|
-
|
32
|
-
Infinity = InfinityType()
|
33
|
-
|
34
|
-
|
35
|
-
class NegativeInfinityType:
|
36
|
-
def __repr__(self) -> str:
|
37
|
-
return "-Infinity"
|
38
|
-
|
39
|
-
def __hash__(self) -> int:
|
40
|
-
return hash(repr(self))
|
41
|
-
|
42
|
-
def __lt__(self, other: object) -> bool:
|
43
|
-
return True
|
44
|
-
|
45
|
-
def __le__(self, other: object) -> bool:
|
46
|
-
return True
|
47
|
-
|
48
|
-
def __eq__(self, other: object) -> bool:
|
49
|
-
return isinstance(other, self.__class__)
|
50
|
-
|
51
|
-
def __gt__(self, other: object) -> bool:
|
52
|
-
return False
|
53
|
-
|
54
|
-
def __ge__(self, other: object) -> bool:
|
55
|
-
return False
|
56
|
-
|
57
|
-
def __neg__(self: object) -> InfinityType:
|
58
|
-
return Infinity
|
59
|
-
|
60
|
-
|
61
|
-
NegativeInfinity = NegativeInfinityType()
|
@@ -1,192 +0,0 @@
|
|
1
|
-
import contextlib
|
2
|
-
import re
|
3
|
-
from dataclasses import dataclass
|
4
|
-
from typing import Dict, Iterator, NoReturn, Optional, Tuple, Union
|
5
|
-
|
6
|
-
from .specifiers import Specifier
|
7
|
-
|
8
|
-
|
9
|
-
@dataclass
|
10
|
-
class Token:
|
11
|
-
name: str
|
12
|
-
text: str
|
13
|
-
position: int
|
14
|
-
|
15
|
-
|
16
|
-
class ParserSyntaxError(Exception):
|
17
|
-
"""The provided source text could not be parsed correctly."""
|
18
|
-
|
19
|
-
def __init__(
|
20
|
-
self,
|
21
|
-
message: str,
|
22
|
-
*,
|
23
|
-
source: str,
|
24
|
-
span: Tuple[int, int],
|
25
|
-
) -> None:
|
26
|
-
self.span = span
|
27
|
-
self.message = message
|
28
|
-
self.source = source
|
29
|
-
|
30
|
-
super().__init__()
|
31
|
-
|
32
|
-
def __str__(self) -> str:
|
33
|
-
marker = " " * self.span[0] + "~" * (self.span[1] - self.span[0]) + "^"
|
34
|
-
return "\n ".join([self.message, self.source, marker])
|
35
|
-
|
36
|
-
|
37
|
-
DEFAULT_RULES: "Dict[str, Union[str, re.Pattern[str]]]" = {
|
38
|
-
"LEFT_PARENTHESIS": r"\(",
|
39
|
-
"RIGHT_PARENTHESIS": r"\)",
|
40
|
-
"LEFT_BRACKET": r"\[",
|
41
|
-
"RIGHT_BRACKET": r"\]",
|
42
|
-
"SEMICOLON": r";",
|
43
|
-
"COMMA": r",",
|
44
|
-
"QUOTED_STRING": re.compile(
|
45
|
-
r"""
|
46
|
-
(
|
47
|
-
('[^']*')
|
48
|
-
|
|
49
|
-
("[^"]*")
|
50
|
-
)
|
51
|
-
""",
|
52
|
-
re.VERBOSE,
|
53
|
-
),
|
54
|
-
"OP": r"(===|==|~=|!=|<=|>=|<|>)",
|
55
|
-
"BOOLOP": r"\b(or|and)\b",
|
56
|
-
"IN": r"\bin\b",
|
57
|
-
"NOT": r"\bnot\b",
|
58
|
-
"VARIABLE": re.compile(
|
59
|
-
r"""
|
60
|
-
\b(
|
61
|
-
python_version
|
62
|
-
|python_full_version
|
63
|
-
|os[._]name
|
64
|
-
|sys[._]platform
|
65
|
-
|platform_(release|system)
|
66
|
-
|platform[._](version|machine|python_implementation)
|
67
|
-
|python_implementation
|
68
|
-
|implementation_(name|version)
|
69
|
-
|extra
|
70
|
-
)\b
|
71
|
-
""",
|
72
|
-
re.VERBOSE,
|
73
|
-
),
|
74
|
-
"SPECIFIER": re.compile(
|
75
|
-
Specifier._operator_regex_str + Specifier._version_regex_str,
|
76
|
-
re.VERBOSE | re.IGNORECASE,
|
77
|
-
),
|
78
|
-
"AT": r"\@",
|
79
|
-
"URL": r"[^ \t]+",
|
80
|
-
"IDENTIFIER": r"\b[a-zA-Z0-9][a-zA-Z0-9._-]*\b",
|
81
|
-
"VERSION_PREFIX_TRAIL": r"\.\*",
|
82
|
-
"VERSION_LOCAL_LABEL_TRAIL": r"\+[a-z0-9]+(?:[-_\.][a-z0-9]+)*",
|
83
|
-
"WS": r"[ \t]+",
|
84
|
-
"END": r"$",
|
85
|
-
}
|
86
|
-
|
87
|
-
|
88
|
-
class Tokenizer:
|
89
|
-
"""Context-sensitive token parsing.
|
90
|
-
|
91
|
-
Provides methods to examine the input stream to check whether the next token
|
92
|
-
matches.
|
93
|
-
"""
|
94
|
-
|
95
|
-
def __init__(
|
96
|
-
self,
|
97
|
-
source: str,
|
98
|
-
*,
|
99
|
-
rules: "Dict[str, Union[str, re.Pattern[str]]]",
|
100
|
-
) -> None:
|
101
|
-
self.source = source
|
102
|
-
self.rules: Dict[str, re.Pattern[str]] = {
|
103
|
-
name: re.compile(pattern) for name, pattern in rules.items()
|
104
|
-
}
|
105
|
-
self.next_token: Optional[Token] = None
|
106
|
-
self.position = 0
|
107
|
-
|
108
|
-
def consume(self, name: str) -> None:
|
109
|
-
"""Move beyond provided token name, if at current position."""
|
110
|
-
if self.check(name):
|
111
|
-
self.read()
|
112
|
-
|
113
|
-
def check(self, name: str, *, peek: bool = False) -> bool:
|
114
|
-
"""Check whether the next token has the provided name.
|
115
|
-
|
116
|
-
By default, if the check succeeds, the token *must* be read before
|
117
|
-
another check. If `peek` is set to `True`, the token is not loaded and
|
118
|
-
would need to be checked again.
|
119
|
-
"""
|
120
|
-
assert (
|
121
|
-
self.next_token is None
|
122
|
-
), f"Cannot check for {name!r}, already have {self.next_token!r}"
|
123
|
-
assert name in self.rules, f"Unknown token name: {name!r}"
|
124
|
-
|
125
|
-
expression = self.rules[name]
|
126
|
-
|
127
|
-
match = expression.match(self.source, self.position)
|
128
|
-
if match is None:
|
129
|
-
return False
|
130
|
-
if not peek:
|
131
|
-
self.next_token = Token(name, match[0], self.position)
|
132
|
-
return True
|
133
|
-
|
134
|
-
def expect(self, name: str, *, expected: str) -> Token:
|
135
|
-
"""Expect a certain token name next, failing with a syntax error otherwise.
|
136
|
-
|
137
|
-
The token is *not* read.
|
138
|
-
"""
|
139
|
-
if not self.check(name):
|
140
|
-
raise self.raise_syntax_error(f"Expected {expected}")
|
141
|
-
return self.read()
|
142
|
-
|
143
|
-
def read(self) -> Token:
|
144
|
-
"""Consume the next token and return it."""
|
145
|
-
token = self.next_token
|
146
|
-
assert token is not None
|
147
|
-
|
148
|
-
self.position += len(token.text)
|
149
|
-
self.next_token = None
|
150
|
-
|
151
|
-
return token
|
152
|
-
|
153
|
-
def raise_syntax_error(
|
154
|
-
self,
|
155
|
-
message: str,
|
156
|
-
*,
|
157
|
-
span_start: Optional[int] = None,
|
158
|
-
span_end: Optional[int] = None,
|
159
|
-
) -> NoReturn:
|
160
|
-
"""Raise ParserSyntaxError at the given position."""
|
161
|
-
span = (
|
162
|
-
self.position if span_start is None else span_start,
|
163
|
-
self.position if span_end is None else span_end,
|
164
|
-
)
|
165
|
-
raise ParserSyntaxError(
|
166
|
-
message,
|
167
|
-
source=self.source,
|
168
|
-
span=span,
|
169
|
-
)
|
170
|
-
|
171
|
-
@contextlib.contextmanager
|
172
|
-
def enclosing_tokens(
|
173
|
-
self, open_token: str, close_token: str, *, around: str
|
174
|
-
) -> Iterator[None]:
|
175
|
-
if self.check(open_token):
|
176
|
-
open_position = self.position
|
177
|
-
self.read()
|
178
|
-
else:
|
179
|
-
open_position = None
|
180
|
-
|
181
|
-
yield
|
182
|
-
|
183
|
-
if open_position is None:
|
184
|
-
return
|
185
|
-
|
186
|
-
if not self.check(close_token):
|
187
|
-
self.raise_syntax_error(
|
188
|
-
f"Expected matching {close_token} for {open_token}, after {around}",
|
189
|
-
span_start=open_position,
|
190
|
-
)
|
191
|
-
|
192
|
-
self.read()
|
@@ -1,90 +0,0 @@
|
|
1
|
-
# This file is dual licensed under the terms of the Apache License, Version
|
2
|
-
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
3
|
-
# for complete details.
|
4
|
-
|
5
|
-
from typing import Any, Iterator, Optional, Set
|
6
|
-
|
7
|
-
from ._parser import parse_requirement as _parse_requirement
|
8
|
-
from ._tokenizer import ParserSyntaxError
|
9
|
-
from .markers import Marker, _normalize_extra_values
|
10
|
-
from .specifiers import SpecifierSet
|
11
|
-
from .utils import canonicalize_name
|
12
|
-
|
13
|
-
|
14
|
-
class InvalidRequirement(ValueError):
|
15
|
-
"""
|
16
|
-
An invalid requirement was found, users should refer to PEP 508.
|
17
|
-
"""
|
18
|
-
|
19
|
-
|
20
|
-
class Requirement:
|
21
|
-
"""Parse a requirement.
|
22
|
-
|
23
|
-
Parse a given requirement string into its parts, such as name, specifier,
|
24
|
-
URL, and extras. Raises InvalidRequirement on a badly-formed requirement
|
25
|
-
string.
|
26
|
-
"""
|
27
|
-
|
28
|
-
# TODO: Can we test whether something is contained within a requirement?
|
29
|
-
# If so how do we do that? Do we need to test against the _name_ of
|
30
|
-
# the thing as well as the version? What about the markers?
|
31
|
-
# TODO: Can we normalize the name and extra name?
|
32
|
-
|
33
|
-
def __init__(self, requirement_string: str) -> None:
|
34
|
-
try:
|
35
|
-
parsed = _parse_requirement(requirement_string)
|
36
|
-
except ParserSyntaxError as e:
|
37
|
-
raise InvalidRequirement(str(e)) from e
|
38
|
-
|
39
|
-
self.name: str = parsed.name
|
40
|
-
self.url: Optional[str] = parsed.url or None
|
41
|
-
self.extras: Set[str] = set(parsed.extras or [])
|
42
|
-
self.specifier: SpecifierSet = SpecifierSet(parsed.specifier)
|
43
|
-
self.marker: Optional[Marker] = None
|
44
|
-
if parsed.marker is not None:
|
45
|
-
self.marker = Marker.__new__(Marker)
|
46
|
-
self.marker._markers = _normalize_extra_values(parsed.marker)
|
47
|
-
|
48
|
-
def _iter_parts(self, name: str) -> Iterator[str]:
|
49
|
-
yield name
|
50
|
-
|
51
|
-
if self.extras:
|
52
|
-
formatted_extras = ",".join(sorted(self.extras))
|
53
|
-
yield f"[{formatted_extras}]"
|
54
|
-
|
55
|
-
if self.specifier:
|
56
|
-
yield str(self.specifier)
|
57
|
-
|
58
|
-
if self.url:
|
59
|
-
yield f"@ {self.url}"
|
60
|
-
if self.marker:
|
61
|
-
yield " "
|
62
|
-
|
63
|
-
if self.marker:
|
64
|
-
yield f"; {self.marker}"
|
65
|
-
|
66
|
-
def __str__(self) -> str:
|
67
|
-
return "".join(self._iter_parts(self.name))
|
68
|
-
|
69
|
-
def __repr__(self) -> str:
|
70
|
-
return f"<Requirement('{self}')>"
|
71
|
-
|
72
|
-
def __hash__(self) -> int:
|
73
|
-
return hash(
|
74
|
-
(
|
75
|
-
self.__class__.__name__,
|
76
|
-
*self._iter_parts(canonicalize_name(self.name)),
|
77
|
-
)
|
78
|
-
)
|
79
|
-
|
80
|
-
def __eq__(self, other: Any) -> bool:
|
81
|
-
if not isinstance(other, Requirement):
|
82
|
-
return NotImplemented
|
83
|
-
|
84
|
-
return (
|
85
|
-
canonicalize_name(self.name) == canonicalize_name(other.name)
|
86
|
-
and self.extras == other.extras
|
87
|
-
and self.specifier == other.specifier
|
88
|
-
and self.url == other.url
|
89
|
-
and self.marker == other.marker
|
90
|
-
)
|