Skip to content

Commit

Permalink
Prefer build for loading metadata. Fixes #17.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Sep 27, 2022
1 parent 011d549 commit 695311f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
v2.8.0
======

* #17: Prefer `build <https://pypi.org/project/build>`_
for loading metadata.

v2.7.1
======

Expand Down
4 changes: 2 additions & 2 deletions pytest_checkdocs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

import pytest
import docutils.core
import pep517.meta
import importlib_metadata
from build.util import project_wheel_metadata as load_metadata


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

def get_long_description(self):
with _suppress_deprecation():
return Description.from_md(ensure_clean(pep517.meta.load('.').metadata))
return Description.from_md(ensure_clean(load_metadata('.')))

@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 @@ -19,7 +19,7 @@ include_package_data = true
python_requires = >=3.7
install_requires =
docutils >= 0.15
pep517
build
importlib_metadata >= 4

[options.packages.find]
Expand Down

0 comments on commit 695311f

Please sign in to comment.