Skip to content

Commit

Permalink
Utilize helpers in jaraco.packaging.metadata to parse the project's m…
Browse files Browse the repository at this point in the history
…etadata.

Closes #2
  • Loading branch information
jaraco committed Apr 19, 2024
1 parent 1dbf08a commit c807cc2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions jaraco/media/dvd_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
from subprocess import Popen, PIPE, STDOUT
from typing import Set

from jaraco.packaging.metadata import extract_author, extract_email, hunt_down_url

try:
from importlib import metadata # type: ignore
except ImportError:
Expand All @@ -34,8 +36,8 @@ def banner():

print(50 * '=')
print(f'{md["Name"]} version {md["Version"]}')
print(f'{md["Author"]} <{md["Author-Email"]}>')
print(f'{md["Home-page"]}')
print(f'{extract_author(md)} <{extract_email(md)}>')
print(f'{hunt_down_url(md)}')
print(50 * '=')
print()

Expand Down
1 change: 1 addition & 0 deletions newsfragments/2.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Utilize helpers in jaraco.packaging.metadata to parse the project's metadata.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ dependencies = [
'importlib_metadata; python_version < "3.8"',
"autocommand",
"tempora",
"jaraco.packaging >= 10.1",
]
dynamic = ["version"]

Expand Down

0 comments on commit c807cc2

Please sign in to comment.