summaryrefslogtreecommitdiff
path: root/tox.ini
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Use py3 as the default runtime for tox"Zuul2021-04-161-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: Ife0711d33bba3fcde65a98be57da462cf8b06625
* | Fix requirements issuesDaniel Bengtsson2021-03-251-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch is the merge of 2 current fixes that need to be solved in the same time. Indeed each issue lock our gates independently. Dropping lower constraints testing We facing errors related to the new pip resolver, this topic was discussed on the ML and QA team proposed to to test lower-constraints [1]. I propose to drop this test because the complexity and recurring pain needed to maintain that now exceeds the benefits provided by this mechanismes. [1] http://lists.openstack.org/pipermail/openstack-discuss/2020-December/019390.html Move flake8 as a pre-commit local target. The goal here is to avoid conflicts between flake8 and hacking version each 2 days. Inspired from nova's approach[1]. The flake8 version to install will be determined by hacking and requirements[2] will stay aligned instead of relying on different versions. [1] https://opendev.org/openstack/nova/src/branch/master/.pre-commit-config.yaml#L26-L35 [2] https://opendev.org/openstack/hacking/src/branch/master/requirements.txt#L1 Co-authored-by: Hervé Beraud <hberaud@redhat.com> Change-Id: I2f41e05df1cc978821bf7cb6d9a95bf543c7fba3
* | Use TOX_CONSTRAINTS_FILE4.2.0Hervé 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: I086b5173b45ef5f4ce6691ad33af7903b0fd78e0
* 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: Ifc5ee35d399c628604ec1644eb447936803c45f5 Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
* 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: I436529f8db217e9ad899ece05cc3af291198a081 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* Cleanup py27 supportAndreas Jaeger2020-04-131-2/+2
| | | | | | | | | | | This repo is now testing only with Python 3, so let's make a few cleanups: - Remove obsolete sections from setup.cfg - Update classifiers - Use newer openstackdocstheme version - Switch to hacking 3.0, fix problems found Change-Id: I539b00204279c7645ef4a3f804f64a1e7af30f05
* [ussuri][goal] Drop python 2.7 support and testing4.0.0Hervé Beraud2020-02-031-2/+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: I8604e1a22d7cb13251e2ef22ef86318ad2de346e
* tox: Trivial cleanupHervé Beraud2020-01-081-11/+3
| | | | | | | | | Move 'basepython' to the top-level 'testenv'. Use the default 'install_command' https://tox.readthedocs.io/en/latest/config.html#conf-install_command Change-Id: I0f7296cfd8586b5b41c7a237561c4d931ee1e3d1
* tox: Keeping going with docscaoyuan2019-10-241-2/+10
| | | | | | | | | | | | 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: Ic68b7acf92512255d4e1e3c2e5d3b6ff795e1354
* 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: Iad05ec936af5a4319f82c42e721010e9d543b984
* 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: Ib541de637ecbee664fa281b5920ece2c66055b13 Story: #2005924 Task: #34234
* Merge "Dropping the py35 testing"Zuul2019-05-281-1/+1
|\
| * Dropping the py35 testingGhanshyam Mann2019-04-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: Idfbab7fbd4f69f041dfe88801e4808e45ccde329
* | Replace git.openstack.org URLs with opendev.org URLsjacky062019-04-301-1/+1
|/ | | | Change-Id: I0ab27098deb48de60b4d93cbedf59c1d0aa4f318
* Switch to stestrrocky-em3.36.0Vu Cong Tuan2018-07-041-1/+1
| | | | | | | | | | 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: I9b230222866d41a12713f321cee88da896ba76a1
* fix tox python3 overridesDoug Hellmann2018-06-061-1/+6
| | | | | | | | | | | | | | | 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: I16855b85149c1e0dc98f12e6380a1d20b857590f Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* Remove stale pip-missing-reqs tox testKenneth Giusti2018-05-021-8/+0
| | | | | | | | | | pip_missing_reqs tool is no longer maintained and has broken with release 10 of pip Refer to: http://lists.openstack.org/pipermail/openstack-dev/2018-April/130027.html Change-Id: I0900ca95d7a5988933edc451bf3b912d9a84840f
* set default python to python3Doug Hellmann2018-04-131-1/+4
| | | | | | | | Set the default python to python3 except for the py27 environment. We have to set that explicitly to override the new default. Change-Id: I1ec3c534cdc0a4850d5873eb5ec2a70701cb4141 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* add lower-constraints jobDoug Hellmann2018-03-241-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: I477dc48b392c20e93c69464b2b45c21ba7f4805b Depends-On: https://review.openstack.org/555034 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* pypy is not checked at gateAnusree2018-03-211-1/+1
| | | | Change-Id: Ife9b091d92f3fe23bd3b099185d866fc7bfc6e45
* Follow the new PTI for document buildZhongShengping2018-03-021-1/+3
| | | | | | | | | | | | 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: I35fb490d34af834182522a856d6ab7e24d0ec678
* Avoid tox_install.sh for constraints supportAndreas Jaeger2017-12-191-6/+4
| | | | | | | | | | | 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: I4f6d6420b62f5da9ca0973314ee0ba1cec9c4384
* add bandit to pep8 jobChangBo Guo(gcb)2017-11-301-1/+6
| | | | | | Add the bandit security scanner to the pep8 job. Change-Id: Ib4707b55c190b117410212cef7f5afc789c91583
* Add Constraints supportTony Breeds2016-12-201-1/+6
| | | | | | | | | | | | Adding constraints support to libraries is slightly more complex than services as the libraries 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 oslo.middleware. Change-Id: I069e64daf9558147fdab947341411b58770d3506
* Add Python 3.5 classifier and venvmelissaml2016-11-221-1/+1
| | | | | | | | Now that there is a passing gate job, we can claim support for Python 3.5 in the classifier. This patch also adds the convenience py35 venv. Change-Id: I73178227e44caee792e6f7e4f4ddf4cfb07e096d
* Add reno for release notes managementKirill Bespalov2016-06-301-0/+3
| | | | | | | An initial patch to add reno and create a base directory for release notes Change-Id: I2fa27beb5d7e2c898ce567dce2add00ccdb54afe
* Clean up removed hacking rule from [flake8] ignore listsChaozhe.Chen2016-02-241-2/+1
| | | | | | | | | | | | | | We bump hacking>=0.10.0, and hacking removed some rules, for the full list of rules please see [1]. So don't need them any more. Hacking related commits: Remove H904 in commit b1fe19ebebe47a36b905d709467f5e82521bbd96 Remove H803 in commit f01ce4fd822546cbd52a0aedc49184bddbfe1b10 Remove H305 in commit 8f1fcbdb9aa4fc61349e5e879153c722195b1233 [1]https://github.com/openstack-dev/hacking/blob/master/setup.cfg#L30 Change-Id: Iac1c3097453c205e17b4894ac28a821b2ccf08b5
* Remove python 2.6 and cleanup tox.iniDavanum Srinivas2015-11-161-12/+2
| | | | | | | | | | | | | | | * Remove support for python 2.6 * Remove skipsdist : Needs to be set only if sdist is expensive * Remove usedevelop : only needed when skipsdist is set to True * Remove install_command : We can just use the default, we don't need to override * Remove setenv : We can just use the default as we don't need any extra environment variables * Remove requirements.txt from deps, as this is already added automatically Change-Id: Iad4623157750ca3808f5b2adb712814c98d824fa
* Fix coverage configuration and executionRonald Bradford2015-10-051-2/+2
| | | | | | | | | | A number of configuration errors prevent the successful creation of code coverage. This corrects the .coveragerc source/omit setup and the tox package name generation. http://lists.openstack.org/pipermail/openstack-dev/2015-October/076193.html Change-Id: I2ee48d5b987cc26fe2de6d538ab278821100b278
* Add tox target to find missing requirementsDavanum Srinivas2015-06-261-0/+8
| | | | Change-Id: Ib33343c79910e603dcb56357f50ec66a2c6202da
* Advertise support for Python3.4 / Remove support for Python 3.3Davanum Srinivas2015-05-101-1/+1
| | | | Change-Id: Ifa0354af9fa910380125e95c7a96a55b46be1a89
* Move i18n module to a private nameDoug Hellmann2015-01-211-1/+1
| | | | | | | The i18n module for this library is private to the library and should never be used by outside code. Rename the module to reflect this. Change-Id: I39149056daeeb27428b938fb9cd7278cd42f2444
* Move files out of the namespace package0.3.0Doug Hellmann2015-01-061-2/+2
| | | | | | | | | | Move the public API out of oslo.middleware to oslo_middleware. Retain the ability to import from the old namespace package for backwards compatibility for this release cycle. bp/drop-namespace-packages Change-Id: If88c65c82b64f096a02f7ec62e019aea4de2f9d3
* switch to oslo.contextgordon chung2014-12-291-1/+1
| | | | Change-Id: I348fe06441e751ad1e53cd293f098bc21a445048
* Work toward Python 3.4 support and testingJeremy Stanley2014-09-031-1/+1
| | | | Change-Id: I69f453e0e32491cd37d60c978b88d4b35b839d7f
* Merge "expose middleware through oslo.middleware"Jenkins2014-08-241-1/+1
|\
| * expose middleware through oslo.middlewaregordon chung2014-08-211-1/+1
| | | | | | | | | | | | | | allow middleware to be called through oslo.middleware rather than through module. Change-Id: Iee535002a3bed221f85e97fb10528fbb9234dcb1
* | add doc generation supportgordon chung2014-08-151-0/+3
|/ | | | | | | we're missing sphinx requirements that are blocking doc tests. this patch adds this in so we can pass check Change-Id: Ieba4da849ce8abea10a3298df23a0b2145a0bd2e
* fix pep8 issuesgordon chung2014-07-221-2/+4
|
* Enable hacking check H305Christian Berendt2014-07-221-2/+2
| | | | | Hacking check H305 should not be ignored. It's used in other oslo project.
* initial oslo.middleware checkinGordon Chung2014-06-241-1/+1
|
* exported from oslo-incubator by graduate.shGordon Chung2014-06-241-0/+35