diff --git a/pyproject.toml b/pyproject.toml index 392d73f..b8cc0e3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,8 +41,8 @@ mypy = ["mypy", "types-pyOpenSSL", "idna"] dev = ["service-identity[tests,mypy,idna]", "pyOpenSSL"] [project.urls] -Changelog = "https://service-identity.readthedocs.io/en/stable/changelog.html" Documentation = "https://service-identity.readthedocs.io/" +Changelog = "https://service-identity.readthedocs.io/en/stable/changelog.html" GitHub = "https://github.com/pyca/service-identity" Funding = "https://github.com/sponsors/hynek" Tidelift = "https://tidelift.com/subscription/pkg/pypi-service-identity?utm_source=pypi-service-identity&utm_medium=pypi" diff --git a/src/service_identity/__init__.py b/src/service_identity/__init__.py index b4f1c1b..d768c80 100644 --- a/src/service_identity/__init__.py +++ b/src/service_identity/__init__.py @@ -55,7 +55,7 @@ def __getattr__(name: str) -> str: meta = metadata("service-identity") if name in ("__uri__", "__url__"): - return meta["Project-URL"].split(" ", 1)[-1] + return meta["Project-URL"].split(" ", 1)[1] if name == "__email__": return meta["Author-email"].split("<", 1)[1].rstrip(">")