With setuptools release 61.0.0 sahara-image-elements' package build command (python3 setup.py sdist bdist_wheel) started to fail: error: Multiple top-level packages discovered in a flat-layout: ['roles', 'elements', 'playbooks']. This bug is mentioned in setuptools issue 3197 [1], and the suggested workaround is to disable auto-discovery by adding 'py_modules=[]' in setup.py. To unblock the gate the following needed to be updated as well: - requirements constraints - fix lower-constraints job constraints (only the 1st constraints is used by pip, which was upper-constraints.txt from install command) [1] https://github.com/pypa/setuptools/issues/3197 Change-Id: Ib2d3e296e6d405671594dfd630e381ae414a2709changes/61/835361/4 17.0.0
parent
ded80db266
commit
008b0d7e83
Loading…
Reference in new issue