Skip to content

Commit 07914b3

Browse files
committed
Add debug statements for visibility
1 parent d10352d commit 07914b3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

setuptools/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from ._importlib import metadata
22

33
try:
4-
__version__ = metadata.version('setuptools')
4+
__version__ = metadata.version('setuptools') or 'unknown'
55
except Exception:
66
__version__ = 'unknown'

tox.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ setenv =
1212
PYTHONWARNDEFAULTENCODING = 1
1313
SETUPTOOLS_ENFORCE_DEPRECATION = 1
1414
commands =
15+
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
16+
# ^ ensure no malformed egg-info in flaky tests
1517
pytest {posargs}
1618
usedevelop = True
1719
extras =

0 commit comments

Comments
 (0)