Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix inconsistent naming between packages and dependencies
This works around: pypa/setuptools#2522 For example, when building a module which depends on 'backports_abc', fpm will currently translate that into a dependency on 'backports-abc'. When building the 'backports_abc' module, fpm will currently retain the original name. Thus, it is not possible to use fpm to meet some dependencies. Underscores should be allowed in package names, but the most important thing is to be internally consistent. If and when setuptools fixes safe_name(), then the behavior will automatically change and remain consistent. Note that this change matches both methods ok loading requirements: * for setup.py, setuptools internally calls pkg_resources.safe_name() * for requirements.txt, pkg_resources uses its own safe_anem()
- Loading branch information