Commit Graph

17 Commits

Author SHA1 Message Date
Clark Boylan 0b7c438455 Switch from tox to nox
Recent tox releases have put us on a config treadmill. Avoid these
issues entirely by using nox. Nox is a tox alternative that uses
standard tools like pip and should be simpler to use for us.

Change-Id: I24277512cf542bac7a8852d50009c6f08db7fa37
2023-05-19 17:14:09 +00:00
Jeremy Stanley 9ae9f7936e Pin python requests when installing docker-compose
New urllib3 and python requests break python docker-compose. Pin
requests back which should use an older urllib3. Hopefully this
fixes docker-compose.

Note this should probably only be used as a temporary workaround. A
more permanent fix should change the way we install docker-compose.

Also stop relying on six since it's no longer available and we
dropped Python 2.7 support quite some time back anyway.

Clean up some things in tox.ini which regressed in Tox v4.

Co-Authored-By: Clark Boylan <cboylan@sapwetik.org>
Change-Id: I69a7ba09f737130a403f0657708877ce986f751c
2023-05-19 13:42:55 +00:00
Ian Wienand 0c5c5871fe
Drop Python < 3.8, add Python 3.10 testing
Also update the integration job to Jammy, and update to the latest
ansible in Zuul.

Change-Id: Idec1941f6879a0fabee8fac637bc1a43e0acd793
2022-12-01 12:22:10 +11:00
Clark Boylan aed4e49286 Add python39 testing
We deploy gerritlib via jeepyb on our gerrit images which have python39
now. Add testing for that version of python to help cover that setup.

We also drop the python3.5 default in tox.ini as we don't test that
version of python anymore.

Change-Id: I4be713a6fe67b6524eb3a463c9835851bc7f90e5
2021-10-12 15:24:38 -07:00
Sorin Sbarnea 8ceeaa5a20 Decouple linters from unit testing
Avoids conflicts between unit testing and linter and avoids
installing unneeded dependencies on both of them.

Change-Id: Id384a998bea298612ec65eaa329f85a38afee3f6
2020-09-28 16:45:59 +01:00
Sorin Sbarnea 95e17ddf05 Fixed linting issues
Newer versions of flake8 identify these valid violations.
N802 added as skip because the entire library uses camelcase.

Change-Id: Ia687b05bb8d0590eb30a970a710a2639548dbc60
2020-05-21 17:12:40 +01:00
Sorin Sbarnea 2f666c7b35 Replace testrepository with stestr
Replace outdated testrepository with its newer sibling, which
is maintained.

Change-Id: I9755b82d8a2a82f146e71fdc0f32e3f6002e804d
2020-05-20 20:07:15 +01:00
Sorin Sbarnea a0a5f260ea Enable py36-py38 testing
- updates tox.ini, also fixing a typo
- enables new jobs, which would at least test ability to install
  package under these versions.
- updates Trove metadata
- replace fake sole-survivor unittest with a bit more practical one

Change-Id: Iae224a19850489ba3563ad5a40d358002dacdb97
2020-05-20 19:38:05 +01:00
Sorin Sbarnea ffbc080f1a Updated list of Python versions in tox
Change-Id: I40118820d7eb0956dc012556aa1d5767f40d652e
Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
2018-01-27 14:50:51 +00:00
Khai Do d9478fcc08 Remove pyflakes environment
There are no test jobs for flake8 so this is not neeeded.

Change-Id: I63c7ae85510a86d0667b96da6526fa0df5aa621a
2017-06-15 13:26:41 +00:00
Jeremy Stanley fba7102ae4 Specify testenv command for tox>=2.5
As of the tox 2.5.0 release, failure to specify a default commands
key in the fallback testenv section of tox.ini instantly fails with
"ERROR: Commands not specified. Please update relevant section of
.../tox.ini".

Copy the testenv.commands entry from the openstack/cookiecutter
repo's template. While at it, copy the boilerplate placeholder test
from the cookiecutter templates so that jobs don't freak out when
they discover (and then run) no tests.

Change-Id: Ifb8fcfbb6d76edd8c7dcf814a705ee7eff3a9819
2016-12-01 20:20:59 +00:00
Khai Do cd183a4f43 Stop specifying requirements.txt in tox.ini
As PBR already injects the contents of requirements.txt into
setup_requires, there is no need for tox to explicitly install them.
http://lists.openstack.org/pipermail/openstack-dev/2015-July/069663.html

Change-Id: I5fc4de208e6c2f6926238f6942bf4ca9804748e4
2015-08-10 15:38:34 -07:00
Khai Do 58ca447785 Update project docs
This change does the following:
  Update docs with more info
  Add an example usage of this library
  Add pbr versioning to docs
  Updates the requirements
  Rarrange the docs to look better on pypi

Lots of the elements to do above were borrowed from
python-jenkins and jenkins-job-builder projects.

Change-Id: Idc7dfc88cc26e1147b027fd55d41229c4bf3910f
2015-04-20 13:10:34 -07:00
Antoine Musso 207357ea9e Doc generation support
Based on cookiecutter and slightly tweaked afterward.

* conf.py has autoclass_content = 'both' to generate the __init__
  documentation.
* bumped doc copyright to 2015.
* adds in tox environement 'docs' as a convenience

Change-Id: I69bb4179be343ab7c8a44f6fb80d5a428fe30e17
2015-02-11 10:09:59 +01:00
Monty Taylor 81a0066752 Modernize build requirements.
Switch to pbr and flake8. Make hacking clean. Remove unneeded/unused
libraries. Rename requirements files. Add a README file.

Change-Id: I70408d785331dc97737ab0ab1b0caa255b683efe
2013-06-02 10:46:12 -04:00
Monty Taylor b6a67cb705 Remove sitepackages=true
We only need this for things that have non-virtualenv-able deps.

Change-Id: I383fb390690fde3faa998bd41f17580f6a4a0b12
2012-11-23 16:37:55 -08:00
Clark Boylan eeeaadf66c Add setup.py to project.
Add a setup.py for the gerritlib project. This incorporates
openstack.common.setup/version as well for versioning. This change
also adds a tox.ini file and its lists of dependencies to gerritlib.
This was not done in a separate commit as tox depends on setup.py and
setup depends on tox for gate tests.

Change-Id: I101471e836802b1c38796d8d3c570ce5f00c793e
2012-07-11 13:00:12 -07:00