Skip to content

Commit

Permalink
Rely on jaraco.packaging.metadata for loading metadata. Ref pypa/buil…
Browse files Browse the repository at this point in the history
…d#556. Closes #19.
  • Loading branch information
jaraco committed Mar 31, 2024
1 parent efcc3bd commit ecf8fca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions newsfragments/19.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Rely on jaraco.packaging.metadata for loading metadata.
4 changes: 2 additions & 2 deletions pytest_checkdocs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import pytest
import docutils.core
from build.util import project_wheel_metadata as load_metadata
from jaraco.packaging import metadata


project_files = 'setup.py', 'setup.cfg', 'pyproject.toml'
Expand Down Expand Up @@ -56,7 +56,7 @@ def system_message(reporter, level, message, *children, **kwargs):
docutils.utils.Reporter.system_message = orig

def get_long_description(self):
return Description.from_md(load_metadata('.'))
return Description.from_md(metadata.load('.'))

@staticmethod
def rst2html(value):
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ include_package_data = true
python_requires = >=3.8
install_requires =
docutils >= 0.15
build >= 1.1
jaraco.packaging >= 9.5

[options.extras_require]
testing =
Expand Down

0 comments on commit ecf8fca

Please sign in to comment.