Commit Graph

25 Commits

Author SHA1 Message Date
Clark Boylan 97d2061226 Update gear to python3.11 and Bookworm container
This is motivated by OpenDev's desire to drop the old Bullseye container
images as well as container images for older versions of python. We bump
testing to python3.11 on the high end of the range and convert the
container image to python3.11 + Bookworm.

Python 2.7 testing is removed because tox + virtualenv can't actually
create python2.7 virtualenvs any longer. There are workarounds but
dropping the tests is simpler.

Python 3.5 testing is replaced with 3.6 testing beacuse the version of
easy_install on ubuntu xenial does not understand TLS + SNI. A while
back pypi.org dropped non SNI connection support which means we can't
install PBR for to run the setup.py for the projcet. There are
workarounds but 3.5 is old enough taht we should be able to move on.

Change-Id: I2f2a2d0cf71c69d7babd6df9bfdb41a759e9c0ee
2023-09-20 15:12:18 -07:00
Clark Boylan 9f2d08328e Fix python3.9 testing
Latest setuptools has deprecated the use of setup.py commands like
`setup.py testr`. For some reason python3.9 hangs and fails to work at
all when you run `setup.py testr`. Switch to running testr directly and
not bother debugging this too aggressively as this functionality is
going away eventually.

Change-Id: I3ad9e0c00990fbb7d26b03674833666f32b3bcae
2022-04-19 10:47:50 -07:00
Jeremy Stanley f995fba9a6 Update testing to Python 3.9 and linters
In preparation for an upcoming release, add testing for latest
Python (3.9). Switch tox to use Python 3 by default, and rename the
testenv for flake8 from pep8 to linters, consistent with other tools
and libraries OpenDev maintains. Update to a newer hacking plugin,
which will use newer flake8 as well. Ignore rules about line breaks
around comparison operators, as well as those related to ambiguous
variable names, at least for now. Also build distribution artifacts
on a more recent platform so we get newer Setuptools with support
for the latest package metadata, in preparation for a coming change
to update that.

Change-Id: I2130d66fc9aadaa9fe09635b59475be71938132e
2021-03-30 14:56:40 +02:00
Mohammed Naser a4449758bf Fix documentation builds
This patch does a few things to fix the documentation builds for
this project

- Move requirements to doc/requirements.txt for building docs to
  avoid installing extra dependencies.
- Bump sphinx version to a newer release which is compatible with
  sphinxcontrib-programoutput
- Remove default theme option to use the latest Sphinx theme that
  is shipped directly from upstream.
- Bumped basepython for documentation jobs to Python 3.

These are all squashed because the job is currently broken.

Change-Id: Ib998923a5daaa5e9d3ddc748b76b6304e5c39b22
2019-10-14 12:47:52 -04:00
Jenkins 640e0785da Merge "Ignore E129" 2016-11-08 23:00:38 +00:00
Jenkins a74b8d50b8 Merge "Re-enable flake8" 2016-11-08 23:00:33 +00:00
James E. Blair bb8a2ac0d9 Ignore E129
This rule is not backed by the pep8 standard and should not be
enforced (in fact, it is contra-indicated by the standard).  It
was previously covered by E125 in an earlier version of the pep8
tool, but has since split out.

Change-Id: Ib9d39c44de29a633e02e36b8ddae87d5ec28d874
2016-11-08 14:54:43 -08:00
Monty Taylor fca6f5e636
Move py27 after py34 and py35
testr database format gets wonky if you do python2 before python3. Yay.

Change-Id: I8c250e8f71ce95e6224c90b9596d5a176e75626d
2016-11-08 12:41:41 -06:00
Monty Taylor 616d56bc62
Re-enable flake8
The line in tox.ini "select=H231" did not add H231 to the list of flake8
checks. It made us only run H231.

Remove the H231 line and then fix the flake8 issues. The most
substantial of these was the shadowing of the queue module with local
variables named queue. Made that one import queue as queue_mod because
changing the variable names in the code was yuckier to look at.

Change-Id: I4a26a20889132f7f4525b17392088dda6bd5bbd2
2016-11-08 11:57:04 -06:00
Clint Byrum 1a54dd98f5 Add py35 to tox.ini default envs
Ubuntu 16.04 switches to this for python3, so it's good to include it in
the default list that is attempted when one runs 'tox'.

Change-Id: Idae2118b3179010df8a9559a059d50b1decca8e5
2016-10-03 11:51:00 -07:00
Andreas Jaeger d39384513b List system dependencies for running common tests
Add an other-requirements.txt file containing a cross-platform list of
dependencies needed for running included tox-based tests. Also include a
tox environment for convenience calling the bindep[*] utility to list
any missing system requirements.

This change is self-testing.

For other-requirements.txt see also
http://docs.openstack.org/infra/manual/drivers.html#package-requirements

[*] http://docs.openstack.org/infra/bindep/

Change-Id: I165b531c55a6ea27af742fcb3bd995cd4a3dce15
2016-07-08 10:51:00 +02:00
Monty Taylor 6e49af7ab5
Remove py26 from tox.ini
We don't support python2.6 anymore.

Change-Id: I2755a7890236f48c037ac07078c732a2f53a2192
2016-06-02 10:03:08 +03:00
Jenkins 2f47efa475 Merge "Add py34 to tox.ini envlist" 2016-06-02 06:54:47 +00:00
Ondřej Nový f16eeb90ce 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: I6484145969bc6bf6c0824ad5487e0578bc5410be
2015-12-11 21:09:29 +01:00
Clint Byrum 1e49cc4ec5 Add py34 to tox.ini envlist
A minor oversight, easily corrected.

Change-Id: I1418bc42f56cd96ed11f1fc85a1667530d7dd495
2015-05-07 10:59:22 -07:00
Monty Taylor 58a991c347 Rename doc environment to docs
As per the governance resolution https://review.openstack.org/119875,
projects should have a docs environment in their tox.ini testing
interface. Rename the doc environment to docs.

Change-Id: I3ed8f62d9d3637ce2541ea2aaf91209b60521113
2014-09-08 13:47:17 -07:00
Christian Berendt b5f1db6cd6 Use except x as y instead of except x, y
According to https://docs.python.org/3/howto/pyporting.html the
syntax changed in Python 3.x. The new syntax is usable with
Python >= 2.6 and should be preferred to be compatible with Python3.

Enabled hacking check H231.

Change-Id: Ibe19ac61334d8708e3b8240e714ff98471b58111
2014-05-30 00:12:00 +02:00
Khai Do 5e5351edd3 add tox shortcut to build docs
Change-Id: I4297e13a6a944c40dbe1835434a0f6b3ef96ebb9
2014-04-17 12:15:40 -07:00
Jeremy Stanley 5a2c469895 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: I8666ddf1aa3f4f0a71b108efe66ab36d8033813c
Closes-Bug: #1277495
2014-02-11 21:21:57 +00:00
James E. Blair a8951ef927 Add statsd support
Also correct the oversight of not documenting the SSL params to
the server class.

Also cap sphinx due to issues with 1.2 and ignore hacking.

Change-Id: Ic4e8e942620d06a92696d5cf52bc2e9ce6e66bdc
2013-12-23 10:23:04 -08:00
Monty Taylor 33b7b9e311 Update tox.ini to use skipsdist/develop
No sense in making tarballs every time.

Change-Id: I6aaeb9b78922a7a39d6e7d7cbe0a595a07f5808c
2013-09-26 12:25:31 -04:00
James E. Blair aa401556eb Remove --pre from tox install command
To avoid installing pre-release versions of packages.

Change-Id: Ia8429d7936a2c0720e342edd733d3c5537c1f564
2013-09-25 12:13:35 -07:00
James E. Blair 6401d0b237 Remove E128 pep8 ignore
Change-Id: I826f90c363787ee93f0ac3706a57d621dd0c0ce0
2013-07-09 09:20:04 -07:00
James E. Blair 1c4df7622f More improvements to admin requests.
Finish replacing isComplete.  Also, add back in the bit where we
save the response because it turns out that's important.

Change-Id: I8441386a9aae9c62c1527e780d0b41271f465ac5
2013-05-21 10:46:51 -07:00
Monty Taylor 855b217f6d Add pbr-based setup.
Change-Id: I8ff06c6711e1d9f5bf4d1278f37d4e2f7f799e3d
2013-04-08 12:31:53 -04:00