canonical / juju-verify

https://launchpad.net/juju-verify
GNU General Public License v3.0
2 stars 7 forks source link

Releases to pypi.org fail because of a direct dep (zaza) #111

Closed esunar closed 1 year ago

esunar commented 1 year ago

When doing the following, PyPI denies the upload because of direct dependencies (zaza, zaza-openstack):

$ make release $ twine upload dist/* Uploading distributions to https://upload.pypi.org/legacy/ Uploading juju_verify-0.1-py3-none-any.whl 100%|███| 44.1k/44.1k [00:01<00:00, 39.7kB/s] NOTE: Try --verbose to see response content. HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/ Invalid value for requires_dist. Error: Can't have direct dependency: "zaza @ git+https://github.com/openstack-charmers/zaza.git#egg=zaza ; extra == 'dev'"

This issue was also reported here: https://github.com/pypa/pip/issues/6301

Note: There are no pip packages for those 2 libraries.


Imported from Launchpad using lp2gh.

esunar commented 1 year ago

(by rgildein) After a long search, I found the following four options:

I think the best approach would be to use the tox.ini for extra dependencies or exclude extra_requires.


esunar commented 1 year ago

(by rgildein) MP: https://code.launchpad.net/~rgildein/juju-verify/+git/juju-verify/+merge/403554