Commit Graph

30 Commits

Author SHA1 Message Date
Guillaume DeMengin e1a086ad45 CI: add support to python 37 to 311
Change-Id: I48c411f9283fb941ba81181265f59974af649a46
2023-07-17 14:17:35 +00:00
Guillaume DeMengin 70dc3e4f71 Fix CI tests
Adjust some of the dependencies.

multi_key_dict is not shipped by OpenStack Zuul templates
`build-openstack-docs-pti` or `openstack-cover-jobs` we thus need to
depend on `requirements.txt`.

setuptools v66.0.0 removed support for PEP 440 non-conforming versions.
It provides pkg_resources which we use in PluginVersion.

Tox `whitelist_externals` has been renamed `allowlist_externals`.

Signed-off-by: Antoine Musso <hashar@free.fr>
Change-Id: Ie791c2bb0e7b3784913f45768d2f3db4c66ccae5
2023-03-16 21:06:36 +01:00
Marcin Cieślak 34254af2b0 Switch links for contributors to opendev.org or launchpad
Also change the mailing list address

Change-Id: I264010f2125831b1699b9d343a4de118bb7db972
Closes-Bug: #1872942
2020-08-01 09:27:53 +02:00
Kazuhiro Suzuki 36f0b89766 Blacklist stestr 3.0.0 and drop pypy
stestr 3.0.0 does not support python 2.7 but has been released without
the proper metadata to reflect that. As a result, there is a python2 wheel
stestr-3.0.0-py2-none-any.whl which get picked up.

Blacklist stestr 3.0.0 to fix '--list': no such option error

Drop pypy testing since pypy jobs are always failling.

Signed-off-by: Antoine Musso <hashar@free.fr>
Signed-off-by: Andreas Jaeger <aj@suse.com>
Change-Id: Ia2f7c814f21c78f29ec9024997469625f92bc401
2020-04-17 14:46:18 +02:00
Vieri 9f77e68ef6 add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I80117242630a1aa6df39b33b0ab66616ab8923a9
Story: #2002586
2018-11-28 07:04:07 +00:00
huang.zhiping 81dd80922c Update min tox version to 2.0
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: I8146e56453c518f8d8ae822157c1e4931708959a
2018-10-21 02:20:04 +00:00
Sorin Sbarnea e5e7a097b1
Adopt use of pre-commit hooks
- rename pep8 target to more generic linters
- migrates flake8 execution to pre-commit
- adds yaml linting
- hardening flake8 rules
- setting max-line-lengh to 120 instead of ignoring it.
- bumped minimal sphinx version
- configured sphinx with warnings as errors

Change-Id: I4c598c07297ae6a2160ba6754cec860adbfeb6f2
Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
2018-06-22 13:37:30 +01:00
huang.zhiping 0c26148338 fix tox python3 overrides
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: I56890d9f5d258bc27f94c51c369a774b2978c0fc
2018-06-09 21:03:42 +08:00
Sorin Sbarnea e15a54bdc3 enable cross testing with jenkins-job-builder
Adds a new job that tests if change affects jenkins-job-builder
master branch in order to avoid introducing breaking changes
in the most important consumer of the this library.

Also adds an optional tox target named tips which can be used
by developers to perform the same kind of testing. This
mimics the same kind of testing that was already implemented
inside jenkins-job-builder.

Change-Id: I594347c431a881227c5090b41b4ba4ef50e3133f
Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
2018-04-13 16:49:18 +01:00
Sorin Sbarnea 9f143f1241 Replace testr with stestr
Switch to use stestr which is maintained as opposed
to testrepository (testr) which became a defunct project.

Change-Id: If53c985b6cf3b4122596f09ec4d0ec4a186688b8
2018-04-04 23:25:21 +01:00
ZhangHongtao 2b69951603 Add py35 to tox envlist
Change-Id: I53751e49290a9bda0670015a2d5a6f975e375483
2017-03-10 17:52:14 +08:00
Andreas Jaeger 1b08573a94 Use standard cover setup
Replace coverage testing with the normal way coverage is tested in
OpenStack.

Change-Id: Ic171e33a876029727b473481e56fdd94fce5ec6e
2016-12-20 22:17:24 +01:00
Khai Do 5e99b853bc Setup required packages with bindep
python-jenkins fails to build without the kerberose packages and those
packages are not included in our xenial images.  Use bindep to
configure the required minimum set of required packages.

build error:
  building 'kerberos' extension
  creating build
  creating build/temp.linux-x86_64-2.7
  creating build/temp.linux-x86_64-2.7/src
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes
   -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong
   -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c src/base64.c
   -o build/temp.linux-x86_64-2.7/src/base64.o sh: 1: krb5-config: not found
  x86_64-linux-gnu-gcc: error: sh:: No such file or directory
  x86_64-linux-gnu-gcc: error: 1:: No such file or directory
  x86_64-linux-gnu-gcc: error: krb5-config:: No such file or directory
  x86_64-linux-gnu-gcc: error: not: No such file or directory
  x86_64-linux-gnu-gcc: error: found: No such file or directory
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for kerberos

Change-Id: Iad6e10ef6ef05e0b5c6db08dbb97b2c3a3e42a30
2016-07-13 10:14:35 -07:00
shu-mutou dccae5fd10 Drop py33 support
"Python 3.3 support is being dropped since OpenStack Liberty."
written in following URL.
https://wiki.openstack.org/wiki/Python3

And already the infra team and the oslo team are dropping py33
support from their projects.

Since we rely on oslo for a lot of our work, and depend on infra
for our CI, we should drop py33 support too.

Change-Id: Id129b5c418ad49ea805888309d031ff8a9960be9
Closes-Bug: #1526170
2015-12-15 17:58:03 +09:00
Ondřej Nový 83c53c4e71 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: Ib6b624be80e9e562d5204333b291a2b2ea3d8958
2015-12-11 21:25:03 +01:00
Clark Boylan f763f5c703 Change order of tox envs for testr
If we run python3 tests before python2 tests the testrepository DB works
fine. If we run python2 first the python3 tests cannot read the
testrepository DB. The simple fix here is to change the order of the tox
env list so that python3 always runs first.

Change-Id: I5118c65f07c0f761e211cd2f186ab11d2f8a3393
2015-09-15 10:24:36 -07:00
Jenkins 427753c3b1 Merge "Stop specifying requirements.txt in tox.ini" 2015-09-07 21:08:20 +00:00
Khai Do 5b39f6b309 remove support for python 2.6
We no longer support python 2.6 so removing it from tox.

Change-Id: I225c15a35e089556ab6115c96a7f7c5fff33ccab
2015-08-25 10:46:28 -07:00
Khai Do 5d36768876 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: Ice43f68c296178b1ad966d0ed5ed1add9bd13ce5
2015-08-10 13:53:31 -07:00
Darragh Bailey d47b37d07d Fix tests on python 2.6 and mark as deprecated
Pin mock to < 1.1 as newer versions no longer work on python 2.6.
Remove duplicate unittest2 for python 2.6 test env.
Adding warning to mark python 2.6 support as deprecated and intended to
be removed.

Testtools re-added the requirement for unittest2 so the separate
dependency for python 2.6 created a duplicate error that causes tox
to fail.

Change-Id: Ia79eeeb5d2432cf1025631a1722de5fb1babe2c9
2015-07-13 18:36:12 +01:00
Emilien Macchi ecd79af18b requirements: pin pbr>=0.8.2,<2.0
This patch aims to pin pbr>=0.8.2,<2.0 instead of pbr>=0.8.2,<1.0.
To do that, we also need to update test-requirements.txt to pin hacking
to <0.11 (like in current Global OpenStack requirements).
We also need to ignore some hacking rules.

Some distros ship 1.0.1 so it conflicts with the version in
requirements.

Change-Id: I3620c5fe72e49e226f2f5d1e6c36179eb053f424
2015-06-09 18:24:53 -04:00
Khai Do 71c83b1a5c generate a code coverage html report
Change-Id: Ib5c30453e220f80c0bd6da0695cf27db1e647c6c
2014-09-30 13:48:28 -07:00
Khai Do dd1e467b68 exclude tests from code coverage report
Change-Id: I923cf9efba4ce11452c7bd54b90d219cfd69206f
2014-09-29 09:51:32 -07:00
Monty Taylor f7c95a7b70 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: I19cc2973313db1c1d5816f030cbaee48df1759d7
2014-09-08 13:53:07 -07:00
Christian Berendt 0478046d50 Enabled hacking check H404
* [H404] Multi line docstrings should start without a leading new line.

Change-Id: I22b0a00b441e01698a73bc8dc6315c47aa9ee05a
2014-08-26 13:51:12 -04:00
Clark Boylan aa16b89bdf Six is a runtime requirement not a test req
Six needs to be installed when python-jenkins is installed. By default
test-requirements are only installed when running tests. Six was listed
as a test-requirement so it was not installed when pip installing
python-jenkins. Make six a regular requirement so that it is installed
properly every time.

Change-Id: I2b7cb7e967b20ee0e06fe4c665f08c5932e524f2
2014-07-09 14:09:52 -07:00
Marc Abramowitz 129fd8ca3c Use pbr, pep8 checks & fixes, add "doc" tox target
Change-Id: I1f01e4e5407a8216c7c867c143d15db2037e16d6
2014-07-02 14:12:31 -07:00
Marc Abramowitz 5d7ecd43e0 Make it work on Python 3
Change-Id: Ia8eedf699e988a199520c48e21c9731af912003c
2014-05-21 22:49:34 -07:00
Marc Abramowitz 8d38dfefd2 Add support for measuring coverage
Change-Id: I219e14658c025fa13f3e0f8ba9dc6945ce777120
2014-05-21 08:25:09 -07:00
Antoine Musso 5269924155 Wrap tests and linting with tox
Use tox configuration to expose linting and unit testing. Will let us
integrate them with OpenStack continuous integration infrastructure.

* updates .gitignore following the migration from bzr
* get rid of the old Makefile in favor of tox
* remove .pep8 file (that is now a [flake8] section in tox.ini)
* fix a few trivial pep8 errors (comments must start with '# ' and
  modulo operator needs surrounding spaces) but ignore 'line too long
  (E501)' for now.
* write module requirements in /test-requirements.txt. Discover is
  needed for python 2.6.
* change the test command that cames from the Makefile so it works with
  python 2.6

Change-Id: If58730d84315c0ea018a3757624d98bf2e1aeb3f
2014-04-30 22:37:19 +02:00