Hi,
I see that the method find_pacakges_ns has been added to the documentation for the latest version.
But the code is not included in the 40.0.0 release, although it is part of the master branch.
>>> import setuptools
>>>
>>> setuptools.__version__
'40.0.0'
>>>
>>>
>>> setuptools.find_packages_ns()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'setuptools' has no attribute 'find_packages_ns'
>>>
Support for find_packages_ns is the latest commit on this branch 19 days ago.
And 40.0.0 was released 14 days ago.
Seems like this commit was missed to be included in the release.
_-jatin_
I think the commits were added to a branch before the release and merged into master after it.
We are investigating changing the name, so it's not really prudent to make a new release until those changes are merged.
Let me know if I could help with anything.
How can I use find_packages_ns in my code?
Sorry, I'll wrap up the PRs related to this this week and make a new release.
Temporary workaround:
from setuptools import setup, PEP420PackageFinder
PEP420PackageFinder().find(include=['foo.*'])
I found this in setuptools code:
find_packages_ns = PEP420PackageFinder.find
With the release of 40.1.0, find_namespace_packages is now available. Sorry for the delay y'all.
Most helpful comment
Temporary workaround:
I found this in setuptools code:
find_packages_ns = PEP420PackageFinder.find