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: Ib2d3e296e6d405671594dfd630e381ae414a2709
Since pbr already landed and the old version of hacking seems not
work very well with pbr>=2, we should update it to match global
requirement.
Partial-Bug: #1668848
Change-Id: Ibd7131893d13ba2642348fc3c1d29eb21edbbb65