Skip to content

Commit

Permalink
Merge branch 'main' into stdlib-importlib.metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco authored Jun 26, 2024
2 parents 805b8a5 + e29791d commit 946c445
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 9 deletions.
5 changes: 0 additions & 5 deletions changelog/fix-repo-urls-with-auth-and-port.bugfix

This file was deleted.

15 changes: 15 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,21 @@ schemes recommended by the Python Packaging Authority.
.. towncrier release notes start
Twine 5.1.1 (2024-06-26)
------------------------

Bugfixes
^^^^^^^^

- Resolve DeprecationWarnings when extracting ``twine`` metadata. (`#1115 <https://github.com/pypa/twine/issues/1115>`_)

- Fix bug for Repository URLs with auth where the port was lost. When attempting
to prevent printing authentication credentials in URLs provided with username
and password, we did not properly handle the case where the URL also contains
a port (when reconstructing the URL). This is now handled and tested to
ensure no regressions. (`#fix-repo-urls-with-auth-and-port <https://github.com/pypa/twine/issues/fix-repo-urls-with-auth-and-port>`_)


Twine 5.1.0 (2024-05-15)
------------------------

Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ dependencies = [
"keyring >= 15.1",
"rfc3986 >= 1.4.0",
"rich >= 12.0.0",

# workaround for #1116
"pkginfo < 1.11",
]
dynamic = ["version"]

Expand Down
1 change: 0 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ commands =

[testenv:changelog]
basepython = python3
skip_install = True
deps =
towncrier
commands =
Expand Down
10 changes: 7 additions & 3 deletions twine/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

__copyright__ = "Copyright 2019 Donald Stufft and individual contributors"

import email
import sys

if sys.version_info >= (3, 10):
Expand All @@ -42,8 +43,11 @@

__title__ = metadata["name"]
__summary__ = metadata["summary"]
__uri__ = metadata["home-page"]
__uri__ = next(
entry.split(", ")[1]
for entry in metadata.get_all("Project-URL", ())
if entry.startswith("Homepage")
)
__version__ = metadata["version"]
__author__ = metadata["author"]
__email__ = metadata["author-email"]
__author__, __email__ = email.utils.parseaddr(metadata["author-email"])
__license__ = None

0 comments on commit 946c445

Please sign in to comment.