Dependencies starting with "cubicweb_" in __pkginfo__.__depends__ are not treated as cubes when it should be the case
A python package can be installed with pip install <package-name>
where <package-name>
can be different from the official name of the package.
For example, you can install cubicweb-api
with pip install cubicweb_api
or even pip install cubicweb_api
.
These are valid for pip, which normalizes the package name before requesting it to PyPI but cubicweb doesn't know about this normalization and will not detect that a cubicweb_api
package in the __pkginfo__
is equivalent to cubicweb-api
.
To reproduce, edit __depends__
field of __pkginfo__.py
and replace "-" by "_" in cube dependencies.
Here is the specification of the normalization process : https://packaging.python.org/en/latest/specifications/name-normalization/