Commit Graph

25 Commits

Author SHA1 Message Date
Stephen Finucane 59a3dc90a9 Add support for tox 4
Some random fixups to make it tox 4-compliant.

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: Iea0a929bda37d748497e6fdd730767e25bd9a6dc
2023-01-10 13:58:34 +00:00
Zuul dcb19586b5 Merge "Stop testing python2.7" 2019-10-14 21:10:09 +00:00
Monty Taylor cee637ad9c Stop testing python2.7
Train was the last release supporting python2. Let's rip the bandaid off.

Change-Id: If1fe0e7d8897e56ca485157dcb75bea7b1d77e47
2019-10-04 14:39:19 +02:00
pengyuesheng d615ebbcac Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I89a8ef3cf0a73f6d95ef74e13159c1b72c447540
2019-09-29 15:00:17 +08:00
Monty Taylor cc7a469fdb Update for opendev
Change-Id: Ib29ca90f7268e4a31dab6e80d92ef4e0fa99f64e
2019-04-21 13:09:50 +00:00
Vieri cea479d071 Update min tox version to 2.0
The commands used by constraints need at least tox 2.0.  Update to
reflect reality, which should help with local running of constraints
targets.

Change-Id: I16ee82b6fa992b3624b38499bebd0a7e8be0ad8a
2018-11-02 06:55:56 +00:00
Sean McGinnis ea18d3d9f8 Remove setup.py check from pep8 job
Using "python setup.py check -r -s" method of checking the package has
been deprecated with the new recommendation to build the sdist and
wheel, then running "twine check" against the output.

Luckily, there is already a job that covers this that only runs when the
README, setup.py, or setup.cfg files change, making running this in the
pep8 job redundant. This covered by the test-release-openstack-python3
that is defined in the publish-to-pypi-python3 template.

More details can be found in this mailing list post:

http://lists.openstack.org/pipermail/openstack-dev/2018-October/136136.html

Change-Id: Idd0e9a83084feab40ed23892918f5b688a99f99e
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2018-10-30 11:00:41 -05:00
Charles Short c4066599e4 Change python3.5 job to python3.7 job on Stein+
python3.5 was the only supported python3 version on Xenial, now that we have
Bionic Beaver nodes that support python3.7, lets switch to testing with
python3.7 in addition with python3.6 in Stein and beyond.
See ML discussion here [1] for context. [

[1] http://lists.openstack.org/pipermail/openstack-dev/2018-October/135632.html

Change-Id: Ibafa5cc1be81a897a11f01c3df26c644852a45c9
Signed-off-by: Charles Short <chucks@redhat.com>
2018-10-12 14:44:08 +00:00
Doug Hellmann a024da3618 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: I959afa8a75f09f5fc212424defa4865816f3ab1b
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-06 15:27:01 -04:00
Doug Hellmann c2cb2fde44 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: Ida3de5ec81c44ac73c1fe4e719a4acbcf69c660e
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-09 11:01:41 -04:00
Saju e86641fd0b pypy is not checked at gate
Change-Id: I9aa2f3770610570166fc7004df1e05da9c5e0d4a
2018-03-21 21:14:23 +05:30
Monty Taylor 5dbfc60fde
Split docs requirements and update tox.ini
Get ourselves up to date with the latest in PTI hotness.

Change-Id: Ied98273dcfa0b9622d603a8e9a8e2146fb1e081f
2018-01-31 11:34:57 -06:00
Dean Troyer 6f72637fb6 Updates for stestr
Change-Id: I344cd6ce38d8db8fe24e1611c9c61e1ffa1b586d
2017-09-14 16:57:42 -05:00
Monty Taylor 53858f340e
Remove 3.4 from tox envlist
We don't support it.

Change-Id: I43c9bc965374cb8fbbe9c40f366aed31d8cf9022
2017-01-12 08:17:48 -05:00
avnish 091fde16a3
Use upper-constraints for tox envs
Pin tox environments to upper-constraints to avoid conflicts with
library releases.

Change-Id: I17664e0794de05fb9661050018dff2a07b077826
Closes-Bug: #1628597
2017-01-12 08:17:12 -05:00
Jordan Pittier bd434bc626 List py35 in the default tox env list
We really should run py35 tests when we run "tox" without any
arguments.

I2a4a6ca01d7cca83f594008960c878a18ca08e8e is going to make
the py35 job voting.

Change-Id: Ibd77e39c53f00357344be8acc2949e1bc1adcc84
2016-09-26 17:39:56 +02:00
ChangBo Guo(gcb) 189a604754 Trivial: remove openstack/common from flake8 exclude list
openstack/common was used to kepp copied files from
oslo-incubator, we don't use oslo-incubator stuff,
so remove it.

Change-Id: Id426c41e6ae277ed1f829820771d5ffc31a81166
2016-05-07 16:59:20 +08:00
Monty Taylor ae8f4b65e3 Go ahead and remove final excludes
os-client-config is clean on E125 and E123 is ignored in recent pep8 by
default. Also, even though they are not 'valid' pep8 rules, they are
actually both nice styles and consistent with how we code
os-client-config anyway.

Change-Id: I7764e1511ed580d37b9a0a8be6743a5fa50441e5
2016-01-22 19:52:45 +00:00
LiuNanke cfd29196fe Clean up removed hacking rule from [flake8] ignore lists
We bump hacking>=0.10.2, and hacking removed some rules, for
the full list of rules please see [1]. So don't need them any more.

Hacking related commits:
Remove H904 in commit b1fe19ebebe47a36b905d709467f5e82521bbd96
Remove H803 in commit f01ce4fd822546cbd52a0aedc49184bddbfe1b10
Remove H307 in commit ec4833b206c23b0b6f9c6b101c70ab925a5e9c67
Remove H305 in commit 8f1fcbdb9aa4fc61349e5e879153c722195b1233

[1]https://github.com/openstack-dev/hacking/blob/master/setup.cfg#L30

Change-Id: I24b82c1913d3d42cc5228b1db700b787623fcdc5
2016-01-19 21:54:17 +08:00
Doug Hellmann 2f1d184a8e set up release notes build
Add release notes build files and tox environment so the existing
release notes job has something to build from.

Change-Id: I717d4e7af438cbc94eecf32472f6d1f8213761b8
2016-01-15 08:33:01 -05:00
Yuriy Taraday 9688f8ebd1 Fix README.rst, add a check for it to fit PyPI rules
README.rst doesn't appear right on PyPI currently. This commit fixes the
issue and expands "docs" environment in tox.ini to use readme tool [0]
to verify that README.rst is good for PyPI.

[0] https://github.com/pypa/readme

Change-Id: I6025bb6c661d8a4a7cd9802a1298928662278f2d
2015-12-31 15:40:58 +03:00
TerryHowe d6d2cbe5e1 Remove requirements.txt from tox.ini
From lifeless: pbr reflects the package dependencies from
requirements.txt into the sdist that tox builds.

Change-Id: Iaa6026a504cc53784aad5731e9afe8b684b3ede5
2015-07-17 11:26:03 -06:00
TerryHowe b292db766f Remove py26 and py33 from tox.ini
Change-Id: I79a9dceffc0432398bda70949db2e523cbbff515
2015-07-16 14:52:24 -06:00
Clint Byrum f99dc5f293 Fix coverage report
Coverage can't handle package names that have dashes, as it uses the
package name to look for the base module name. So we need to pass in the
base module name as it is imported.

Change-Id: I2840eea85acaee2d05cab47fb67010e002a14bc0
2015-02-28 09:17:53 -08:00
Monty Taylor edadf145f3 Initial Cookiecutter Commit. 2014-09-20 16:16:13 -07:00