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
Make a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
know about the requirement
- Remove obsolete sections from setup.cfg:
* Wheel is not needed for python 3 only repo
Change-Id: Ie5bf4b5226a06d828ec24a6134d7ea8a3f45c8db
* setuptools can never upgrade things based on setup_requires versions
* actual pbr version range should be defined in requirements.txt
Change-Id: I38e889f4dc71f00d449bc1a2a93d2054eb3125f0
* generated tarball will contain all elements;
* tarball could be installed and all elements will be installed to the
share/savanna-elements folder.
Change-Id: Ic80b045034850316b9b3263d132782afa560643b