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
The verification comands used by tox need at least 2.0 version. This
patch aims to update tox version from 1.6 to 2.0 which should help with
local running of constraints targets.
Change-Id: I84a53543b50184b4e838cd6e597dfc80ec025588
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.
We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.
We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.
Change-Id: I204e381701c91e59558eee57efac7ae7566acf76
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.
Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.
Add openstack-tox-lower-constraints job to the zuul configuration.
See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.
Change-Id: I00b41e7e3bcd86677084243917a205c703097674
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
While previously the elements/ directory was checked, now the path
can be specified as ELEMENTS_DIR, which defaults to
diskimage_builder/elements
and which must then be overridden.
Change-Id: I0caf00adf16a0612c94956d4fce93bd69ff2183f
To be co-installable with other OpenStack projects and have consistent
testing it's a good idea (tm) to use constraints when creating tox
environments.
Change-Id: I5def7728f9af1c8f76a964ecfc0272f8559e74f4
It will help to manage all variables, that used in sahara-dib script,
by exporting some stuff to script if it's needed.
Change-Id: I4e5eaa4274cdf052fdd9b0e6c322492653a88b41
When a development environment is under a proxy, tox is failed even if
environment variables of the proxy are set.
This patch fix this problem.
Change-Id: I1e448d9002b1541b9b6dc436c066e1dafd93c5fc