Closed esunar closed 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.
date created: 2021-05-19T11:30:25Z
owner: aluria
assignee: rgildein
the launchpad url
(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.
(by rgildein) MP: https://code.launchpad.net/~rgildein/juju-verify/+git/juju-verify/+merge/403554
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.
date created: 2021-05-19T11:30:25Z
owner: aluria
assignee: rgildein
the launchpad url