Skip to content

Commit

Permalink
PathDistribution has no attribute name fixes #218. bump to v2.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
tarpas committed May 18, 2023
1 parent 3140880 commit 89cf74a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion testmon/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""PYTEST_DONT_REWRITE"""
VERSION = "2.0.7"
VERSION = "2.0.8"
3 changes: 2 additions & 1 deletion testmon/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@

def get_system_packages_raw():
return (
f"{pkg.name} {pkg.version}" for pkg in importlib.metadata.distributions()
f"{pkg.metadata['Name']} {pkg.version}"
for pkg in importlib.metadata.distributions()
)

except ImportError:
Expand Down

0 comments on commit 89cf74a

Please sign in to comment.