Commit Graph

27 Commits

Author SHA1 Message Date
Takashi Kajinami 4b510162e5 Vendor dib-run-parts
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
2024-02-29 17:49:13 +09:00
Takashi Kajinami 72929598e7 Drop unnecessary install_command
Change-Id: Ie2a2a286bac409f32d83b8148567d5d525023d69
2024-01-30 01:31:34 +09:00
Takashi Kajinami e3dab50e44 Revert "Drop direct execution of os_refresh_config.py"
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
2024-01-30 01:31:11 +09:00
Takashi Kajinami d262d5e60e Drop direct execution of os_refresh_config.py
Now we generate the console script using setuptools, and we don't
expect users may directly execute the *.py file.

Change-Id: I6fb802d0dee7e47f9fd619afba2f379f881914af
2024-01-29 23:50:35 +09:00
yangyawei 5bb536c13b Use py3 as the default runtime for tox
Moving on py3 as the default runtime for tox to avoid to update
this at each new cycle.

Change-Id: I42b735072db71f861eb71de5b468e4957ba33f3f
2021-05-27 02:59:16 +08:00
Hervé Beraud 754bb751e6 Replace deprecated UPPER_CONSTRAINTS_FILE variable
UPPER_CONSTRAINTS_FILE is deprecated and TOX_CONSTRAINTS_FILE is
the new environment variable name that replaces it [1].

This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

[1] https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file
[2] https://review.opendev.org/#/c/722814/

Change-Id: Ifbc34a7ed715a058489afa54aa78572e5f56028f
2020-11-09 19:15:48 +00:00
xuanyandong cc543ed5af
Stop testing python2.7
Train was the last release supporting python2. Let's rip the bandaid
off.

Change-Id: I842cf731fbad0dae72cf902366655eb7b4f8ca1b
2020-03-13 14:47:47 -05:00
pengyuesheng 6b65f9a224 Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I141431e9796ce77b3b204bf600834608271ccf67
2019-09-26 10:23:44 +08:00
Corey Bryant 4306cf9ee7 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: I9ed1a88e2d67267b026ebad2f45327e9ad03d381
Story: #2005924
Task: #34253
2019-07-12 16:22:53 -04:00
caoyuan 3c2edd5f64 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: Iad2f439694e35d5bc7926d4b478335ac62e7ec0a
2019-04-24 15:24:37 +08:00
Vieri 71eca9794d Don't quote {posargs} in tox.ini
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
2018-11-03 03:04:15 +00:00
Doug Hellmann 33096222a6 fix tox python3 overrides
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>
2018-09-26 19:04:00 -04:00
Vu Cong Tuan a2091f9c65 Switch to stestr
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
2018-07-10 18:41:32 +07:00
Andreas Jaeger e6f3b30ed5 Remove -U from pip install
'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
2017-12-02 19:20:06 +01:00
Andreas Jaeger a8c04a723f Avoid tox_install.sh for constraints support
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
2017-12-01 14:53:30 +01:00
Ben Nemec 519606f749 Fix coverage job
The setup.py testr command no longer supports running coverage.  It
moved to setup.py test.

Change-Id: If5e60809fe11513d85cf8d67a39132557c64171e
2017-03-31 17:58:39 +00:00
Jenkins ec9d2c32ec Merge "Add Constraints support" 2017-03-28 08:51:43 +00:00
gecong1973 da97230101 Delete H803 from ignore list
The H803 rule have been removed from hacking since v0.10.0.
we can remove H803 from the ignore list.

Change-Id: I196a6a0ee19c9f0981383a3a71f6aa6a66395a8b
2017-02-03 15:53:55 +08:00
Dirk Mueller 693f946d23 Add Constraints support
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
2016-12-20 14:38:41 +11:00
Ondřej Nový 71aeb526b2 Deprecated tox -downloadcache option removed
Caching is enabled by default from pip version 6.0

More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching

Change-Id: I9c81b9dbef482b5b79c7ff831ffacf670400ee66
2015-12-11 23:18:44 +01:00
Jenkins 7ce2317dc3 Merge "Remove bogus path in tox.ini's flake8 exclude" 2014-10-09 22:19:03 +00:00
Steve Kowalik 1a8e910346 Remove bogus path in tox.ini's flake8 exclude
It referenced os_collect_config's oslo-incubator path, and
os-refresh-config has neither.

Change-Id: I5d79c3595b1abc564c0e8f39d09bdff5361b45e5
2014-09-30 13:20:28 +10:00
Motohiro OTSUKA 6df4f30e33 Coverage report was't created
Usually, coverage report is created by "tox -ecover" command.
But it wasn't created. This fixes it.

Change-Id: If1096d70831e055d9d1f77a2fd08d28025c18597
Closes-Bug: #1374259
2014-09-26 16:09:51 +09:00
Jeremy Stanley 10902dd35c Remove tox locale overrides
* 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
2014-02-10 03:09:03 +00:00
James E. Blair d137cbceb5 Have tox install via setup.py develop
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>
2013-12-11 09:00:34 -08:00
Monty Taylor 4438058c81 Updated to OpenStack standards
Change-Id: Idf87a63c72bfb85de713ebb69564509f8c00393b
2013-08-13 13:45:14 -03:00
Lucas Alvares Gomes 91f75348fb Add tox.ini and fix pep8 problems
Change-Id: I42f6ed2fbf211e7ac6adcd8e40ce29ec8c7c5c5c
2013-06-13 09:50:52 +01:00