From 1942c0e58511612f7a37533c46d05ac1aa2d48d8 Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Sun, 14 Jan 2024 07:55:19 +0100 Subject: [PATCH] Fix order for package metadata --- pyproject.toml | 2 +- src/service_identity/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(">")