dynatrace-openfeature-provider-python 0.1.0__tar.gz → 0.1.1__tar.gz
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.
- {dynatrace_openfeature_provider_python-0.1.0 → dynatrace_openfeature_provider_python-0.1.1}/PKG-INFO +1 -1
- {dynatrace_openfeature_provider_python-0.1.0 → dynatrace_openfeature_provider_python-0.1.1}/pyproject.toml +1 -1
- {dynatrace_openfeature_provider_python-0.1.0 → dynatrace_openfeature_provider_python-0.1.1}/pyproject.toml.orig +1 -1
- {dynatrace_openfeature_provider_python-0.1.0 → dynatrace_openfeature_provider_python-0.1.1}/src/dynatrace/openfeature/options.py +6 -3
- {dynatrace_openfeature_provider_python-0.1.0 → dynatrace_openfeature_provider_python-0.1.1}/LICENSE +0 -0
- {dynatrace_openfeature_provider_python-0.1.0 → dynatrace_openfeature_provider_python-0.1.1}/README.md +0 -0
- {dynatrace_openfeature_provider_python-0.1.0 → dynatrace_openfeature_provider_python-0.1.1}/src/dynatrace/openfeature/__init__.py +0 -0
- {dynatrace_openfeature_provider_python-0.1.0 → dynatrace_openfeature_provider_python-0.1.1}/src/dynatrace/openfeature/_cdn.py +0 -0
- {dynatrace_openfeature_provider_python-0.1.0 → dynatrace_openfeature_provider_python-0.1.1}/src/dynatrace/openfeature/_metrics_aggregator.py +0 -0
- {dynatrace_openfeature_provider_python-0.1.0 → dynatrace_openfeature_provider_python-0.1.1}/src/dynatrace/openfeature/_metrics_flusher.py +0 -0
- {dynatrace_openfeature_provider_python-0.1.0 → dynatrace_openfeature_provider_python-0.1.1}/src/dynatrace/openfeature/_metrics_hook.py +0 -0
- {dynatrace_openfeature_provider_python-0.1.0 → dynatrace_openfeature_provider_python-0.1.1}/src/dynatrace/openfeature/_polling.py +0 -0
- {dynatrace_openfeature_provider_python-0.1.0 → dynatrace_openfeature_provider_python-0.1.1}/src/dynatrace/openfeature/_retry.py +0 -0
- {dynatrace_openfeature_provider_python-0.1.0 → dynatrace_openfeature_provider_python-0.1.1}/src/dynatrace/openfeature/provider.py +0 -0
- {dynatrace_openfeature_provider_python-0.1.0 → dynatrace_openfeature_provider_python-0.1.1}/src/dynatrace/openfeature/py.typed +0 -0
|
@@ -27,7 +27,8 @@ def _normalise_config_origin(value: str) -> str:
|
|
|
27
27
|
if parsed.scheme not in _ALLOWED_SCHEMES:
|
|
28
28
|
raise ValueError(f"config_origin must use http or https; got {value!r}")
|
|
29
29
|
try:
|
|
30
|
-
port
|
|
30
|
+
# Accessing .port raises if the port is present but not a valid integer.
|
|
31
|
+
_ = parsed.port
|
|
31
32
|
except ValueError as exc:
|
|
32
33
|
raise ValueError(f"config_origin has an invalid port; got {value!r}") from exc
|
|
33
34
|
if not parsed.hostname:
|
|
@@ -42,8 +43,10 @@ def _normalise_config_origin(value: str) -> str:
|
|
|
42
43
|
raise ValueError(f"config_origin must not include a fragment; got {value!r}")
|
|
43
44
|
if parsed.username or parsed.password:
|
|
44
45
|
raise ValueError(f"config_origin must not include user info; got {value!r}")
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
# netloc rather than hostname + port: it preserves the brackets around an IPv6
|
|
47
|
+
# literal, which hostname strips. User info is already rejected above, so at
|
|
48
|
+
# this point netloc is exactly the host and optional port.
|
|
49
|
+
return f"{parsed.scheme}://{parsed.netloc.lower()}"
|
|
47
50
|
|
|
48
51
|
|
|
49
52
|
class DynatraceProviderOptions:
|
{dynatrace_openfeature_provider_python-0.1.0 → dynatrace_openfeature_provider_python-0.1.1}/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|