The dib-utils repository was retired as part of retirement of TripleO.
This imports the tiny dib-run-parts script because it's used by
os-refresh-config now.
This also removes direct execution of os_refresh_config.py, which is
required only for testing.
Change-Id: Ia516e604bafdc59dbcfa81796348191b03cbe0b7
This reverts commit d262d5e60e.
Reason for revert:
This breaks unit tests execution during packaging process in RDO.
Until we find out the root cause, let's revert the change.
Change-Id: I061b388c7df67422ded99dbf1bfe4c6fb2719f9c
Now we generate the console script using setuptools, and we don't
expect users may directly execute the *.py file.
Change-Id: I6fb802d0dee7e47f9fd619afba2f379f881914af
Quotes around {posargs} cause the entire string to be combined into one
arg that gets passed to stestr. This prevents passing multiple args
(e.g. '--concurrency=16 some-regex')
Change-Id: I83986c645b21b3994c199c68419847d1507511de
Closes-Bug: #1801454
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: I4e3c8a76cee08a327c1e648605e70f5e58eb9490
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.
[1] https://etherpad.openstack.org/p/YVR-python-pti
Change-Id: I99bef7040974e193bc5a57f6f5a7dd7fe293519d
'pip install -U' ugrades specified packages, this is not necessary
since we use constraints, remove the parameter '-U' from the line.
With tools/tox_install.sh - which a previous change of mine removed -
the -U was not harmful, but with the current set up, it might cause
upgrades, so remove it.
Change-Id: Ia27e31299490771dcf3460bf5581ef50dfea7b34
We do not need tox_install.sh, pip can handle constraints itself
and install the project correctly. Thus update tox.ini and remove
the now obsolete tools/tox_install.sh file.
This follows https://review.openstack.org/#/c/508061 to remove
tools/tox_install.sh.
Change-Id: I01c4e0393c918a6f446c6b1b4c78e2591ea45f28
The H803 rule have been removed from hacking since v0.10.0.
we can remove H803 from the ignore list.
Change-Id: I196a6a0ee19c9f0981383a3a71f6aa6a66395a8b
Adding constraints support to clients is slightly more complex than
services as the clients themselves are listed in upper-constraints.txt
which leads to errors that you can't install a specific version and a
constrained version.
This change adds constraints support by also adding a helper script to
edit the constraints to remove os-refresh-config.
Change-Id: Ia7d3b98fcfa5245e8cf51951e4c2af7ac3541014
Usually, coverage report is created by "tox -ecover" command.
But it wasn't created. This fixes it.
Change-Id: If1096d70831e055d9d1f77a2fd08d28025c18597
Closes-Bug: #1374259
* tox.ini: The LANG, LANGUAGE and LC_ALL environment overrides were
introduced originally during the testr migration in an attempt to be
conservative about the possibility that locale settings in the
calling environment could cause consistency problems for test runs.
In actuality, this should be unnecessary and any place where it does
cause issues ought to be considered an actual bug. Also, having
these in the configuration actively causes older pip to have
problems with non-ASCII content in some package metadata files under
Python 3, so drop it now.
Change-Id: I26a57ba47586177c513f7cfb5f9d003992b0922d
Closes-Bug: #1277495
tox 1.6 was released, which means that we can now take advantage of
the feature we added to it - which is using setup.py develop to
install the code into the virtualenv. The logic was taken from
run_tests.sh - so the performance issues around using tox vs. using
install_venv should now be gone.
Additionally, override the tox pip install command to avoid using the
"--pre" option which is the default in tox. "--pre" means "Include
pre-release and development versions." By default, pip will only
install stable versions of software, and that is the behavior we want.
Change-Id: Ida5e440d1bdb9f8e9031277ea53a02d2ef171438
Co-Authored-By: Monty Taylor <mordred@inaugust.com>