Skip to content

Commit

Permalink
Add debug statements for visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Apr 26, 2023
1 parent d10352d commit 07914b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setuptools/version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from ._importlib import metadata

try:
__version__ = metadata.version('setuptools')
__version__ = metadata.version('setuptools') or 'unknown'
except Exception:
__version__ = 'unknown'
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ setenv =
PYTHONWARNDEFAULTENCODING = 1
SETUPTOOLS_ENFORCE_DEPRECATION = 1
commands =
python -c 'from pathlib import Path; p = Path("setuptools.egg-info/PKG-INFO"); print(p.read_text(encoding="utf-8") if p.exists() else "NO PKG-INFO")' # DEBUG
# ^ ensure no malformed egg-info in flaky tests
pytest {posargs}
usedevelop = True
extras =
Expand Down

0 comments on commit 07914b3

Please sign in to comment.