Skip to content

Commit

Permalink
Fix order for package metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Jan 14, 2024
1 parent fb131a2 commit 1942c0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/service_identity/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(">")
Expand Down

0 comments on commit 1942c0e

Please sign in to comment.