Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test pyproject-hooks #12

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,6 @@ testing =
importlib_metadata
pytest-subprocess

# workaround for pypa/setuptools#4333
pyproject-hooks!=1.1

docs =
# upstream
sphinx >= 3.5
Expand All @@ -100,9 +97,6 @@ docs =
sphinxcontrib-towncrier
sphinx-notfound-page >=1,<2

# workaround for pypa/setuptools#4333
pyproject-hooks!=1.1

ssl =

certs =
Expand Down
3 changes: 2 additions & 1 deletion setuptools/dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,8 @@ def warn_dash_deprecation(self, opt, section):

def _setuptools_commands(self):
try:
return metadata.distribution('setuptools').entry_points.names
entry_points = metadata.distribution('setuptools').entry_points
return {ep.name for ep in entry_points} # Avoid newer API for compatibility
except metadata.PackageNotFoundError:
# during bootstrapping, distribution doesn't exist
return []
Expand Down
3 changes: 3 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
description = perform primary checks (tests, style, types, coverage)
deps =
# Ideally all the dependencies should be set as "extras"

# workaround for pypa/setuptools#4333
pyproject-hooks @ git+https://github.com/abravalheri/pyproject-hooks@issue-192
setenv =
PYTHONWARNDEFAULTENCODING = 1
SETUPTOOLS_ENFORCE_DEPRECATION = {env:SETUPTOOLS_ENFORCE_DEPRECATION:0}
Expand Down
Loading