We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6610368 commit df7824bCopy full SHA for df7824b
CHANGES.rst
@@ -1,3 +1,10 @@
1
+v6.1.0
2
+======
3
+
4
+* #428: ``packages_distributions`` now honors packages and modules
5
+ with Python modules that not ``.py`` sources (e.g. ``.pyc``,
6
+ ``.so``).
7
8
v6.0.1
9
======
10
importlib_metadata/__init__.py
@@ -899,7 +899,7 @@ def _top_level_declared(dist):
899
900
def _top_level_inferred(dist):
901
opt_names = {
902
- inspect.getmodulename(f) if len(f.parts) == 1 else f.parts[0]
+ f.parts[0] if len(f.parts) > 1 else inspect.getmodulename(f)
903
for f in always_iterable(dist.files)
904
}
905
return filter(None, opt_names)
0 commit comments