Releases to pypi.org fail because of a direct dep (zaza)
Bug #1928938 reported by
Alvaro Uria
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-verify |
Fix Released
|
Medium
|
Robert Gildein |
Bug Description
When doing the following, PyPI denies the upload because of direct dependencies (zaza, zaza-openstack):
$ make release
$ twine upload dist/*
Uploading distributions to https:/
Uploading juju_verify-
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:/
Invalid value for requires_dist. Error: Can't have direct dependency: "zaza @ git+https:/
This issue was also reported here:
https:/
Note: There are no pip packages for those 2 libraries.
Related branches
~rgildein/juju-verify:release/fix-direct-references
Merged
into
~canonical-solutions-engineering/juju-verify:master
at
revision c7e89118339ea08f0a8024a520f76a6d66740c2e
- Alvaro Uria (community): Approve
- 🤖 prod-jenkaas-bootstack (community): Approve (continuous-integration)
- Canonical Solutions Engineering Team: Pending requested
-
Diff: 82 lines (+17/-18)2 files modifiedsetup.cfg (+3/-2)
tox.ini (+14/-16)
Changed in juju-verify: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in juju-verify: | |
assignee: | nobody → Robert Gildein (rgildein) |
status: | Triaged → In Progress |
Changed in juju-verify: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
After a long search, I found the following four options:
- define dependencies in tox.ini
- create a post install function in setup.py [1]
- exclude extra_requires in setup.py [2]
- ask the OpenStack team to release zaza on pypi
I think the best approach would be to use the tox.ini for extra dependencies or exclude extra_requires.
--- /pastebin. ubuntu. com/p/sp5YG7ZZr X/ /pastebin. ubuntu. com/p/Xvm3rGsX9 v/
[1]: https:/
[2]: https:/