Python 3.8 is now our highest level supported python runtime.
This updates the default tox target environments to swap out
py37 for py38 to make sure local development testing is
covering this version.
This does not impact zuul jobs in any way, nor prevent local
tests against py37. It just changes the default if none is
explicitly provided.
Change-Id: I59e88e69cf72e6bfc516ab77e19b3072fd08ccf2
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
The repo is Python 3 now, so update hacking to version 2.0 which
supports Python 3.
Fix problems found.
Update local hacking checks for new flake8.
Change-Id: Ifa4b61c66561c114f6e35355de51f0e2d525b5d5
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: I532dc11528dfa1e9f566e3a2c860fd62a56418b3
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: Icb9a9fdc11393042cf1c96a7cc1a523cfb531f32
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: Id6d7569c25e053ec36051341f223e95ec63d11f1
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
The gating on python 3.4 is restricted to <= Mitaka. This is due to
the change from Ubuntu Trusty to Xenial, where only python3.5 is
available. There is no need to continue to keep these settings.
Change-Id: Ibee4ecb67eaba930a03ea6476b914e13e6640b1e
--coverage-package-name option was no longer supported by 'testr'[1].
This commit replaces from 'testr' to 'test' as coverage option.
[1] https://review.openstack.org/#/c/217847/
Change-Id: Iedb3ae3171733e129de6180094022df2c8b85ea3
Openstack infra now supports upper constraints for
all jobs. Updated tox.ini to use upper constraints
for all jobs.
Change-Id: I9e2ed1f3d29878e3389f31647bc391ba05df18c1
Closes-Bug: #1614361
Now that there is a passing gate job, we can claim support for
Python 3.5 in the classifier. This patch also adds the convenience
py35 venv.Besides,add py2.7 and py3.4 identifiers in setup.cfg.
Change-Id: Iaac5bad67e12852807c68f27c629e592f5b05503
There is not this directory in debtcollector,so we should drop it
for improving searching efficiency.
Change-Id: Id06c62a9a421a0578bf31bfdc9fa9936b2d7de8b
This will force pip install to use the upper-constraints.txt specified
version of pip modules. When you don't do this, you are out on the
bleeding edge and become unstable everytime some python library in the
wide world changes in a way that you don't expect.
The releasenotes job has no constraints file, so override the install
command there.
Change-Id: I5c2d878c79dcf1ce1715218950c07a39314b16ff
Partial-bug: #1598906
The directory tools is exculed for runing pep8 test now.
Enable pep8 to check files in toos/ since there will be more python files.
The same in murano:
https://review.openstack.org/#/c/281766/3
Change-Id: I7b6ed11d60c35408e7ce5d7386e8486897e7e673
There is no bad code violating PEP-8 and no need to ignore rules
H404. So clean the ignore list to do a more strict check.
Change-Id: I9acea84f0d789985aa9d6fd94120f8c9dd207e8e
Python 2.6 support would be dropped by
Infra team from mitaka,CI would no longer be testing it,
so projects should drop it too.
Change-Id: Id957d858759acd95fea711469c6b0b71d52a1581
When a development environment is under a proxy, tox is failed even if
environment variables of the proxy are set.
This patch fixes this problem.
Change-Id: I60b149809335555d8375f0f128d5bd9b11dc86ea
Closes-bug: #1524824
Remove the specification in tox.ini that _ is a builtin so that
it will no longer assume that _ does not need to be imported.
This helps ensure that the _ from i18n is used.
Activating this check did not flag any violations.
Change-Id: Ib68a69ffd64e6a8290339458179cf57c8fb1cc76
* Add scripts for generation sample configs
* Fix name in setup.cfg, otherwise module is not recognized
* Add check to pep8 to follow new config parameters
Change-Id: I42918abc7fdcf9c6779c4e97ba7f2b605b9057e8