summaryrefslogtreecommitdiff
path: root/tox.ini
Commit message (Collapse)AuthorAgeFilesLines
* Changed minversion in tox to 3.18.0yangyawei2021-06-071-3/+3
| | | | | | | | The patch bumps min version of tox to 3.18.0 in order to replace tox's whitelist_externals by allowlist_externals option: https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23 Change-Id: If129b56be47952d018b9f6024d2a192950c1a974
* Remove lower constraints.Daniel Bengtsson2021-02-051-6/+0
| | | | | | | Remove the lower constraints file and the tox environment for lower constraints. Change-Id: Iefa00bee6f67e9e82f0c703a7aff144c0dcbe1ec
* Merge "Move jobs to py38"Zuul2021-02-031-8/+4
|\
| * Move jobs to py38Hervé Beraud2020-12-161-8/+4
| | | | | | | | Change-Id: I5e7e3f84519770e39754338ea4968fa6cd3ee6f6
* | Merge "Use py3 as the default runtime for tox"Zuul2021-01-181-1/+1
|\ \
| * | Use py3 as the default runtime for toxHervé Beraud2020-11-041-1/+1
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moving on py3 as the default runtime for tox to avoid to update this at each new cycle. Wallaby support officially the following runtimes [1]: - Python 3.6 - Python 3.8 During Victoria Python 3.7 was used as the default runtime [2] however this version isn't longer officially supported. [1] https://governance.openstack.org/tc/reference/runtimes/wallaby.html#python-runtimes-for-wallaby [2] https://governance.openstack.org/tc/reference/runtimes/victoria.html#python-runtimes-for-victoria Change-Id: I2c517401aa1ae464e6563800ecb0a459076655b3
* | Use TOX_CONSTRAINTS_FILEHervé Beraud2020-11-041-1/+1
|/ | | | | | | | | | | UPPER_CONSTRAINTS_FILE is old name and deprecated This allows to use upper-constraints file as more readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>. [1] https://review.opendev.org/#/c/722814/ [2] https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file Change-Id: I93bab5b1e77e720cbf308a97a9605a9dc98025a0
* Adding pre-commitHervé Beraud2020-09-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduced changes: - pre-commit config and rules - Add pre-commit to pep8 gate, Flake8 is covered in the pre-commit hooks. - Applying fixes for pre-commit compliance in all code. Also commit hash will be used instead of version tags in pre-commit to prevend arbitrary code from running in developer's machines. pre-commit will be used to: - trailing whitespace; - Replaces or checks mixed line ending (mixed-line-ending); - Forbid files which have a UTF-8 byte-order marker (check-byte-order-marker); - Checks that non-binary executables have a proper shebang (check-executables-have-shebangs); - Check for files that contain merge conflict strings (check-merge-conflict); - Check for debugger imports and py37+ breakpoint() calls in python source (debug-statements); - Attempts to load all yaml files to verify syntax (check-yaml); - Run flake8 checks (flake8) (local) For further details about tests please refer to: https://github.com/pre-commit/pre-commit-hooks Change-Id: Ibd0c3d64fdc5c293d9d676d33eab828d9fde971f Co-authored-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
* Remove six usageAndreas Jaeger2020-05-111-2/+0
| | | | | | | | | Remove six, the python 2/3 compatibility library. It's not needed anymore since the repo is python3 only. Remove a now unneeded hacking test. Change-Id: I40522c4accb4aaf8115d11fee8b081e2d991cb4d
* Bump default tox env from py37 to py38Sean McGinnis2020-04-241-1/+1
| | | | | | | | | | | | | | 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: I1992bad2ee6bffade2f937cc0d8dc6ae800f4159 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* Update hacking for Python312.1.0Andreas Jaeger2020-03-301-2/+8
| | | | | | | | | | | | | | | | | | | The repo is Python 3 now, so update hacking to version 3.0 which supports Python 3. Update local hacking check for new flake8 version. Blacklist: W504 line break after binary operator Fix: E741 ambiguous variable name E117 over-indented E305 expected 2 blank lines after class or function definition, found 1 F841 local variable 'e' is assigned to but never used W605 invalid escape sequence '\.' Change-Id: I99d574ca6569f1f177d2c5ce1011f269f4343619
* Setup backend scenarios for functional testsAndy Smith2020-02-051-11/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | This patchset introduces scenarios for the functional tests to unify the setup and configuration of alternate messaging backends for RPC and Notifications. The scenarios are defined to reduce redundancy in the testing of backends and to demonstrate functional correctness across driver combinations. Current driver support: rabbit - RPC, Notify amqp - RPC kafka - Notify RPC Notify --------- ---------- scenario01 rabbit rabbit scenario02 rabbit kafka scenario03 amqp rabbit scenario04 amqp kafka It is anticipated that additional scenarios will be defined as new drivers are introduced and/or new messaging intermediarites are supported. Note: The removal of python2 jobs are also included patch Change-Id: I0f86416623a0b718516147f0660b4df2b74cf867
* [ussuri][goal] Drop python 2.7 support and testing11.0.0Hervé Beraud2020-02-031-23/+2
| | | | | | | | | | | | | | OpenStack is dropping the py2.7 support in Ussuri cycle. Complete discussion & schedule can be found in - http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html - https://etherpad.openstack.org/p/drop-python2-support Ussuri Communtiy-wide goal: https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html Change-Id: I15cc79159b603e232e442e202c78d6c56dc73252
* tox: Trivial cleanupHervé Beraud2020-01-081-15/+3
| | | | | | Move 'basepython' to the top-level 'testenv'. Change-Id: I13e72ec6cbd006ca6eccfe21f2a0584e86a52669
* tox: Keeping going with docscaoyuan2019-10-241-2/+8
| | | | | | | | | | | | Sphinx 1.8 introduced [1] the '--keep-going' argument which, as its name suggests, keeps the build running when it encounters non-fatal errors. This is exceptionally useful in avoiding a continuous edit-build loop when undertaking large doc reworks where multiple errors may be introduced. [1] https://github.com/sphinx-doc/sphinx/commit/e3483e9b045 Change-Id: If9885a1f064226909181d8b69241eb814deb2105
* Update the constraints urlpengyuesheng2019-09-231-1/+1
| | | | | | For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html Change-Id: Ie0b54914f5ca45f4888eb1cf8faac36f87e45535
* Add Python 3 Train unit testsCorey Bryant2019-07-051-1/+1
| | | | | | | | | | | | This is a mechanically generated patch to ensure unit testing is in place for all of the Tested Runtimes for Train. See the Train python3-updates goal document for details: https://governance.openstack.org/tc/goals/train/python3-updates.html Change-Id: I699a3ee210c4b45018566b520eaf641e0e582362 Story: #2005924 Task: #34234
* Merge "Remove log translation and i18n"Zuul2019-05-041-1/+0
|\
| * Remove log translation and i18nHervé Beraud2019-04-241-1/+0
| | | | | | | | | | | | | | | | | | Log messages are no longer being translated. This removes all use of the _LE, _LI, and _LW translation markers to simplify logging and to avoid confusion with new contributions. Change-Id: I9ddb6595fc52e46ed8844e39d2fa71029c90b65c Closes-Bug: #1674567
* | Replace git.openstack.org URLs with opendev.org URLsjacky062019-04-261-1/+1
|/ | | | Change-Id: Ib4a523adf3275a8727d5a4f2a149e163a81be3cc
* Merge "Dropping the py35 testing"Zuul2019-04-181-6/+6
|\
| * Dropping the py35 testingGhanshyam Mann2019-04-151-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All the integration testing has been moved to Bionic now[1] and py3.5 is not tested runtime for Train or stable/stein[2]. As per below ML thread, we are good to drop the py35 testing now: http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html [1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html [2] https://governance.openstack.org/tc/reference/runtimes/stein.html https://governance.openstack.org/tc/reference/runtimes/train.html Change-Id: I1874f96f78cb403e6f3a56a49cb83df40d531f8d
* | Update messaging intermediaries for amqp1 testsAndy Smith2019-03-111-4/+2
|/ | | | | | | | | | | | | | | | This patch messaging intermediaries used for the amqp1 driver test. The combination of the apache qpid-dispatch-router (qdrouterd) with an attached apache artemis broker is used in place of the qpidd broker. The qdrouterd will directly message oslo.messaging rpc communications and will link route oslo.messaging notify communications to the artemis broker (e.g. for persistence). This patch: * updates the dependencies * updates the test environment setup * uses the pifpaf drivers to create servers Change-Id: I9fb56450346fca84bc1573fa5e9b6fe81c14e33a
* Merge "Change python3.5 job to python3.7 job on Stein+"9.5.0Zuul2019-02-221-1/+1
|\
| * Change python3.5 job to python3.7 job on Stein+Charles Short2019-02-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | python3.5 was the only supported python3 version on Xenial, now that we have Bionic Beaver nodes that support python3.7, lets switch to testing with python3.7 in addition with python3.6 in Stein and beyond. See ML discussion here [1] for context. [1] http://lists.openstack.org/pipermail/openstack-dev/2018-October/135632.html Change-Id: I3335ccb01667d22a181d99d4d53d7356005d72ad Signed-off-by: Charles Short <chucks@redhat.com> Story: #2004073 Task: #27440
* | Update hacking versionZhijunWei2019-01-211-1/+3
|/ | | | | | | | update the hacking to latest, duo to[1] [1]: https://github.com/openstack/oslo.messaging/blob/master/HACKING.rst Change-Id: I1ee7387272690f0de0d7b1937d7c2b0ee404063c
* Merge "Remove the deprecated ZeroMQ driver"Zuul2018-08-291-23/+2
|\
| * Remove the deprecated ZeroMQ driverAndy Smith2018-08-281-23/+2
| | | | | | | | | | | | | | | | Users of the oslo.messaging RPC communications service must use the rabbit ("rabbit://...") or AMQP 1.0 ("amqp://...") drivers. Change-Id: If3474142f1fe99d41d7b4466061ed0e23ca38549 Closes-Bug: 1789259
* | Fix the coverage tox testsKenneth Giusti2018-08-201-1/+6
|/ | | | Change-Id: I45f7269c95807e7a804f116c2d1aed6baf9f46e2
* Merge "Fix the bandit security linter test"Zuul2018-07-041-8/+10
|\
| * Fix the bandit security linter testKenneth Giusti2018-07-021-8/+10
| | | | | | | | | | | | Add the bandit security linter test to the pep8 target Change-Id: I9324b9d9df77fd05c2e10bb48d7ccf8b4c634525
* | Switch to stestrVu Cong Tuan2018-07-041-12/+12
|/ | | | | | | | | | 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: I89b785c91738ab62e3f42da42c431b9df8ccfd70
* fix tox python3 overridesDoug Hellmann2018-06-071-5/+12
| | | | | | | | | | | | | | | 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: I02ef155ef47a5eaddf9de902ad3608bee677fbcf Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* Remove stale pip-missing-reqs tox test.Kenneth Giusti2018-04-301-13/+0
| | | | | | | pip_check_reqs tool is no longer maintained and has broken with release 10 of pip Change-Id: Ic4b42ed54d4d276c65ad2fa37f316c43d9c71ffb
* Add kafka for python 3 functional testAndrew Smith2018-04-171-0/+7
| | | | Change-Id: I743cd09e3450fac215ff65db37c3fe53e2e43601
* set default python to python3Kenneth Giusti2018-04-131-5/+18
| | | | | | | | | | | Set the default python to python3 except for the py27 specific test environments. Set Python 2.7 as the python version to use for these tests. Temporarily ignore optional driver requirements for now. This will be addressed in a later update. Change-Id: Iea8e48b72234bb9a580f2345396cf60fe2022618
* add lower-constraints jobDoug Hellmann2018-03-261-0/+7
| | | | | | | | | | | | | | | | | 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: I8991c2ab1c880c401fd807e38565258403af05e8 Depends-On: https://review.openstack.org/555034 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* Remove the deprecated Pika driver6.0.0Kenneth Giusti2018-03-211-6/+0
| | | | | | | | | | | It is recommended that all users of the Pika driver transition to using the Rabbit driver instead. Typically this is done by changing the prefix of the transport_url configuration option from "pika://..." to "rabbit://...". There are no changes required to the RabbitMQ server configuration. Change-Id: I52ea5ccb7e7c247abd95e2d8d50dac4c4ad11246 Closes-Bug: #1744741
* Switch from pip_missing_reqs to pip_check_reqsYaguo Zhou2018-02-141-1/+1
| | | | | | | | | | | | The pip_missing_reqs tool is abandoned and now incompatible with recent versions of pip. It has been supplanted by the pip_check_reqs tool which provides the same pip-missing-reqs entrypoint (plus some others), effectively renamed. This is the same as https://review.openstack.org/#/c/453208/ and the commit message above is copied here. Change-Id: Ibd02fda9c3f96034c96c7bf4abb9248219e0662c
* Follow the new PTI for document buildSean McGinnis2018-01-081-1/+1
| | | | | | | | | | | | For compliance with the Project Testing Interface as described in: https://governance.openstack.org/tc/reference/project-testing-interface.html For more detials information, please refer to: http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html Change-Id: I39b9806013a0912b27c0523dfc2b713b3105bdf1
* Add kafka driver vhost emulation5.35.0Andrew Smith2017-12-271-1/+1
| | | | | | | | | | | | | | Emulate vhost support by adding the virtual host name to the topic created on the kafka server. Also, update connection management for producer/consumer. This patch: * updates target to topic generation * add consumer and producer connection classes * remove connection pool * update driver test Change-Id: Idd164444c04e9f465a43ee909af840a41bb090c0
* Merge "Update kafka functional test"Zuul2017-12-191-2/+1
|\
| * Update kafka functional testAndrew Smith2017-12-161-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch addresses a number of issues that prevented the functional tests from running. The functional tests now execute and can complete succesfully. At times, the test will fail (noticiably in CI) indicating an underlying issue with consumer interaction with the kafka server. It would be beneficial to merge this patch as it provides repeatability and visibility for driver-kafka server integration to facilitate additional debugging and testing. This patch: * removes use of deprecated get_transport * override consumer_group for each test * changed to synchronous send * update to kafka 1.0.0 server Depends-On: Ib552152e841a9fc0bffdcb7c3f7bc75613d0ed62 Change-Id: I7009a3b96ee250c177c10f5121eb73d908747a52
* | Create doc/requirements.txtKenneth Giusti2017-12-181-0/+2
|/ | | | | | | | | | | | For compliance with the Project Testing Interface as described in: https://governance.openstack.org/tc/reference/project-testing-interface.html Refer to: http://lists.openstack.org/pipermail/openstack-dev/2017-November/124815.html Change-Id: I3d8c70f66931c15247b530ff7e1c89bfc753446f
* Avoid tox_install.sh for constraints supportAndreas Jaeger2017-12-021-5/+9
| | | | | | | | | | | 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: Ifaaf656effff20ef08214f111645a3b5fc8b4d28
* Move legacy zuulv3 tests into oslo.messaging repoKenneth Giusti2017-10-171-2/+2
| | | | | | Next step will be to re-write these for zuulv3 Change-Id: I2f6a8432e037f75d6abee3bc977933a310a4a2c7
* Enable some off-by-default checksblue552017-06-221-0/+1
| | | | | | | | Some of the available checks are disabled by default, like: [H106] Don’t put vim configuration in source files [H203] Use assertIs(Not)None to check for None Change-Id: I54b4b950dfcd2ce5a64f38b5d5b5cbe95846a8fa
* Add missing {posargs:} to AMQP 1.0 functional testsKenneth Giusti2017-05-221-2/+2
| | | | Change-Id: Ic0e340e24212c5690d65d593221fb4b89600627d
* Merge "tox: Build docs with Python 2.7"Jenkins2017-04-061-0/+1
|\
| * tox: Build docs with Python 2.7Stephen Finucane2017-03-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | The 'list-modules' directive used in some docs does not appear to be Python 3 compatible, yielding the following error: TypeError: unorderable types: NoneType() < str() Simply use Python 2.7 until such a time as someone wants to investigate why this happens. Change-Id: I0be19b056e1c2272df3666626fbd17ec78017bce