[Distutils] Namespaces and setup.cfg

2019-11-03 Thread Lennart Regebro
Heya! I recently moved all the setup.py configuration into setup.cfg for Pyroma. That worked very nicely. So I started doing it for my other packages, but with svn.path I failed. Everything *looked* fine, and I uploaded a 4.0 to PyPI, but if I install that in a virtualenv, importing svg or svg.pat

[Distutils] Re: Namespaces and setup.cfg

2019-11-03 Thread Alex Grönholm
I was unable to reproduce the issues you're seeing. Could you give detailed repro instructions? Lennart Regebro kirjoitti 3.11.2019 klo 17.46: Heya! I recently moved all the setup.py configuration into setup.cfg for Pyroma. That worked very nicely. So I started doing it for my other packages,

[Distutils] Re: Namespaces and setup.cfg

2019-11-03 Thread Lennart Regebro
Sure. $ virtualenv /tmp/svgpathtest $ /tmp/svgpathtest/bin/python setup.py sdist $ /tmp/svgpathtest/bin/pip install dist/svg.path-4.0.tar.gz $ /tmp/svgpathtest/bin/python >>> import svg Traceback (most recent call last): File "", line 1, in ImportError: No module named svg I attached a full lo

[Distutils] Re: Namespaces and setup.cfg

2019-11-03 Thread Alex Grönholm
Your setup.cfg seems to be missing the [options.packages.find] section, as documented here: https://setuptools.readthedocs.io/en/latest/setuptools.html#using-a-src-layout You need to add this to your setup.cfg: [options.packages.find] where = src After adding this and installing the resulting