Some random fixups to make it tox 4-compliant.
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: Iea0a929bda37d748497e6fdd730767e25bd9a6dc
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
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>
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>
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>
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>
Pin tox environments to upper-constraints to avoid conflicts with
library releases.
Change-Id: I17664e0794de05fb9661050018dff2a07b077826
Closes-Bug: #1628597
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
openstack/common was used to kepp copied files from
oslo-incubator, we don't use oslo-incubator stuff,
so remove it.
Change-Id: Id426c41e6ae277ed1f829820771d5ffc31a81166
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
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
Add release notes build files and tox environment so the existing
release notes job has something to build from.
Change-Id: I717d4e7af438cbc94eecf32472f6d1f8213761b8
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
From lifeless: pbr reflects the package dependencies from
requirements.txt into the sdist that tox builds.
Change-Id: Iaa6026a504cc53784aad5731e9afe8b684b3ede5
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