Ticket #5410 enhancement new
Avoid using space in subproject distutils names
| Reported by: | bersace | Owned by: | bersace |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | release management | Keywords: | setuptools subprojects |
| Cc: | radix | Branch: | |
| Author: | Launchpad Bug: |
Description
Hi,
Twisted subprojects provides setup.py with name like Twisted Core and archive TwistedCore_11.1.0.tar.bz2.
This break dependencies in regular distutils setup.py and pip usage.
If you use requires=['Twisted Core'], setup.py just fail with error in … setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers
If you use requires=['TwistedCore'], pip will find the archive in a local pypi repository. But it will be installed in Twisted_Core-11.1.0 and with Name: Twisted-Core in the installed EGG-INFO.
Can you rename subprojects to use hyphen instead of space in their name ? I couldn't find the code setting the name= keyword args for setup() (searched twisted.python.dist and setup.py).
Regards, Étienne BERSAC
