Commit Graph

25 Commits

Author SHA1 Message Date
Takashi Kajinami 1e7cb3fd68 Display coverage report
... for easy reference. Also make sure old data is purged.

Change-Id: Ibd4a33081a31cebaf8908666cebc2d11510682e2
2024-02-07 14:17:57 +09:00
Takashi Kajinami ebc5218803 Drop unnecessary install_command
Change-Id: Id9850853ec9682444e99233abca1cadda2181452
2024-01-29 23:46:55 +09:00
Takashi Kajinami 3c7f9b9b61 Update python job template
... and supported python runtime versions.

This also makes some changes in tox.ini to adapt to tox 4.

Change-Id: I765665685fe7f56b89b9dcdcd2e412aeacb5d224
2023-10-18 14:58:16 +09:00
yangyawei c1165f20b8 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: I6e55865aa34bb82256bbc51754fba88690bbba34
2021-05-27 02:34:13 +08:00
Hervé Beraud 96ff0a9997 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: I1a0b69de5aa79fd919752a161e32c13ce27fcaa3
2021-01-14 21:01:48 +00:00
Alex Schultz 44cef7984d Clean up CI
Bump hacking to resolve dependency problems and drop the lower
constraints job. Includes pep8 fixes.

Change-Id: If5473a753e774767abf60b9fcf9f57a9aa31b580
2021-01-14 07:47:23 -07:00
pengyuesheng 733daffc31 Drop python 2.7 support and testing
Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: I53daab51cc782e878658566b9ac91d134173ce21
2019-12-27 16:03:22 +08:00
pengyuesheng 12e712d196 Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I8049aac0e1dca8c39c737345d4e66b819889e0b6
2019-09-25 14:47:41 +08:00
Corey Bryant d9df1dbd36 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: I4379a60f3e6a511b714a4df1502d068bc1aaf6a3
Story: #2005924
Task: #34253
2019-07-12 16:40:51 -04:00
caoyuan cacef4df98 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I5b938ce1199fe8e15624aa62a55b825c4af87ca6
2019-04-29 13:33:05 +08:00
Vieri 84a37b1beb 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: I55af786294e812d8942ac934f947f04cd3d459d9
Closes-Bug:  #1801451
2018-11-03 02:43:59 +00:00
Doug Hellmann 68818cece6 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: I1853dafac8f854812744acf50706cdef15a87936
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 19:03:55 -04:00
Vu Cong Tuan 0522d3ac3d 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: Ib24a7937f1e3712294cdf699fa5b3a093645f35d
2018-07-10 18:32:59 +07:00
Doug Hellmann 9124f56fac add lower-constraints job
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: Idd1779c38f0fcd49130971d4eb2679247af796ce
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-26 17:31:56 -07:00
Andreas Jaeger 8dbeb75d79 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: I6303e8d4f375114d709a79ccb4e33698bd543554
2017-12-02 19:25:43 +01:00
Andreas Jaeger 2610f577ca 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: Iabdecab91b8f539500f73cf124e99ce0ee8f2bff
2017-12-01 14:40:42 +01:00
Jenkins dcc453a946 Merge "Add Constraints support" 2017-03-06 20:51:23 +00:00
gecong1973 c84a19efda 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: Ib5d6f9a223f60264976c7f9902b349a69f3f9750
2017-02-03 15:31:31 +08:00
Tony Breeds 4d1c60bf5c Add Constraints support
Adding constraints support to libraries is slightly more complex than
services as the libraries 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-apply-config.

Change-Id: I792427363cda300650d2ce1c0fdab9973be7b348
2016-12-21 12:04:56 +11:00
Ondřej Nový 45ca3ce020 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: Ieefd14c646ccb53c16f175cfd5b60ae1e8d410c7
2015-12-11 23:17:40 +01:00
Clint Byrum e061e33490 Fix coverage report generation
Previously the coverage report would not be generated as the dashes in
the package name confused it.

We also add a .coveragerc so that the report is generated on just the
code.

Change-Id: I27c0320dca1b3ad26e24d9df09b8f5954e149991
2014-06-03 11:06:39 -07:00
Jeremy Stanley fa6da59990 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: I09ba059023a2bd2a78e023d5dcb8214eefb1b81d
Closes-Bug: #1277495
2014-02-10 03:07:49 +00:00
James E. Blair c9c176dbe6 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 08:59:20 -08:00
Robert Collins c540e39f04 Ignore H803 checks from flake8
H803 isn't supported by community consensus - blacklist it to avoid
breaking folks muscle memory.

Change-Id: Ie01e799d5e8ba176f5198fb9b6629a98027fc66c
2013-08-06 12:45:34 +12:00
Monty Taylor 49c060a313 Migrate to pbr and testr. 2013-03-28 02:37:45 +01:00