In validating the change after this I found that:
1. The pypy tox env defaults to pypy2 which obviously is a problem
2. The constraints URL, while functional, follows an older more complex form
3. The pep8 tox env would descend into .tox which fails as packages
outside of out control may have pep8 issues
4. I often have a .venv directory which fails for the same reason as
point 3
This change addresses those issues suck that a `tox` run completes as
expected.
Change-Id: Ia64b5f7b69744ede12604bfd204ae0cbdb6aeea2
Python 3.8 removed the linux_distribution support, we need
to switch to the distro package.
To pass testing, we need to update to a newer flake8 version.
Also update setuptools annotation since Python 2.x support
has been dropped.
Change-Id: I40768af80ff376866b1070026a93fd3f4bb1c2e4
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: I4e87085c6cbb24367d8a7f839b4811d049ba7bf1
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: I538e86c3fe10d09bc3b0f259d33a49aeb4ffd2e2
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
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: Iab3227728e597f553c3b7f3195919095e858c40c
the python 3.x version of flake8 finds more python 3.x
portability issues than the 2.x, as more checks are
enabled/active there.
Change-Id: Ie702ec7ce85e47b2ab6905f548be0b974077525e
Python 3.5 is supported now. We do not have Python 3.4 in
setup.cfg which declares the explicit supported versions.
For more information, see:
https://review.openstack.org/#/c/349069/
Change-Id: I2e1235b2f9c340bc46ddb0c79bdf1e0cc3627b15
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 pymod2pkg.
Change-Id: I05a2bcca4a240df1995de0627c8acd7ffbeb1893
- Convert README from markdown to restructured text
- Add documentation template for Sphinx
- Add setup.cfg file so that sphinx build is done in
doc/build/html as expected by infra scripts.
This is the way OpenStack projects usually do documentation.
Change-Id: I7e40a2e6fe14e63bd33f9b1ea1f31db23c7501b8
To solve the problem of "db type could
not be determined" on py34 we have to run first the py34 env to, then,
run py27. This patch puts py34 first on the tox.ini list of envs to
avoid this problem to happen.
Closes-bug: #1489059
Change-Id: I37b866389b4342a9d0b603d09fa2c69d775cfe1e
In addition to the tox.ini, there are some more changes
to enable testing:
- require flake8 in test-requirements.txt
- fix current pep8 errors
- add .gitignore including the .tox dir
Change-Id: I4cf9d8fc1c9a2eb4929fddb4a18a7db87481017c