summaryrefslogtreecommitdiff
path: root/tox.ini
Commit message (Collapse)AuthorAgeFilesLines
* Fix issues related to tox44.1.1Hervé Beraud2023-02-171-6/+2
| | | | | | Related to https://lists.openstack.org/pipermail/openstack-discuss/2023-February/032247.html Change-Id: Ifa9eb53cf6989fb04047edd495c43193a00c43d3
* Merge "Remove lower-constraints remnants"Zuul2021-04-161-6/+0
|\
| * Remove lower-constraints remnantsHervé Beraud2021-04-161-6/+0
| | | | | | | | Change-Id: I21c0ca526394796fb60d50cc5e2a703c575b68bd
* | 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: I138a808e799e4969af8542346289737c544a3c5e
* | Use TOX_CONSTRAINTS_FILEHervé Beraud2021-01-141-2/+2
|/ | | | | | | | | | | 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: I69cb454902b1c153ca09bfb713d5748aa0dd532a
* Adding pre-commitHervé Beraud2020-09-081-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: I593196cf0d099fe1dcc3a6298fd6cc6b7a883ea2 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: Ie160ee9faca27890e5fdcd21b1212d6c93cde735 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* Document disable flake8/hacking warningsAndreas Jaeger2020-03-301-0/+2
| | | | | | document the ignored warnings in tox.ini. Change-Id: I4d22611f6676e96e5d5287bee4620e16ad41c3a1
* Update hacking for Python33.3.0Andreas Jaeger2020-03-301-2/+6
| | | | | | | | | | | | | | | | | | | The repo is Python 3 now, so update hacking to version 3.0 which supports Python 3. Fix: F601 dictionary key 'cr_to_rp' repeated with different values F841 local variable 'excep' is assigned to but never used F821 undefined name 'excep' E305 expected 2 blank lines after class or function definition, found 1 E731 do not assign a lambda expression, use a def Blacklist: W504 line break after binary operator Update hacking extension for newer flake8 version. Change-Id: I9f0d7b166e285091111c42fe978d29d7dd3bf5db
* Update the tox minversion parameter.Daniel Bengtsson2020-03-101-1/+1
| | | | | | | | | | | | Update the minversion parameter to use the python -m pip to install python packages: https://tox.readthedocs.io/en/latest/changelog.html#id185 It's recommend to use this. Remove the useless install_command parameter. Change-Id: I17588a5702fa1f9429dd6bc2d1a8c4ad9e90c539
* [ussuri][goal] Drop python 2.7 support and testing3.0.0Hervé Beraud2020-02-041-3/+3
| | | | | | | | | | | | | | | 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: I4b1f1b65d21340e76971d2bf31ee79d97392c454 Sem-Ver: api-break
* tox: Trivial cleanupcaoyuan2019-12-231-10/+3
| | | | | | move 'basepython' to the top-level 'testenv' Change-Id: Ic3474388671341921bbfe3267405b4d90412ace0
* tox: Keeping going with docscaoyuan2019-10-241-2/+5
| | | | | | | | | | | | 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: I390f8f7add7530f1442f66816389202e3ed21f05
* Follow the new PTI for document buildtrain-em2.34.1ZhongShengping2019-07-191-14/+16
| | | | | | | | | | | | | For compliance with the Project Testing Interface as described in: https://governance.openstack.org/tc/reference/project-testing-interface.html For more detailed information, please refer to: http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html Change-Id: Id20646cd51ffc13cf4e77c640eb677fe376c1b1f Co-Authored-By: Stephen Finucane <stephenfin@redhat.com>
* Add Python 3 Train unit testsCorey Bryant2019-07-191-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: I4625a70e74f5c01c7b69ef14f1112c5057d10255 Story: #2005924 Task: #34234
* Add local bindep.txtStephen Finucane2019-07-181-0/+10
| | | | | | | | | | | | | As it was announced [1] global bindep-fallback.txt was removed and now projects need to have a local bindep.txt to be able to install binary dependencies for testing. We use lxml which requires a number of underlying packages. [1] http://lists.openstack.org/pipermail/openstack-discuss/2019-June/007272.html Change-Id: Ie635fa5d613cb89f8de8c8c8d5b119621acb926d Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Dropping the py35 testingGhanshyam Mann2019-05-141-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: I29cc5d550d36fc2d80ca4364aa972567fa70d280
* Replace git.openstack.org URLs with opendev.org URLsjacky062019-05-051-2/+2
| | | | Change-Id: I335d3b2493f53a305ec0e22c31d817ca8ba87e40
* Switch to stestrVu 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: Iea425a8583f7396cc4e9d6964f3efa9875dc59ac
* fix tox python3 overridesDoug Hellmann2018-06-071-5/+9
| | | | | | | | | | | | | | | 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: I1c8016a76062f21c7413da9fc3d422677a40712e 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: I30bfdeca565a21867ea8c1ddedca5d74293008cd
* set default python to python3Doug Hellmann2018-04-161-1/+4
| | | | | | | | | | | | | | Set the default python to python3 except for the py27 environment. We have to set that explicitly to override the new default. Because flake8 now runs under python 3 there is no built-in name 'file'. Instead we can use the same symbols from the io module to build the spec for mocking out the open() call. The old version of that code that used to only run under python 3 used a private version of the io module, so that is also corrected. Change-Id: I2491e65736d2c79f1134eec6371967c39873891b Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* Merge "add lower-constraints job"Zuul2018-03-291-0/+7
|\
| * 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: Ie6b0b270193f4e8eb20fd2d98f315a9dc2abe05b Depends-On: https://review.openstack.org/555034 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* | pypy is not checked at gateSaju2018-03-211-1/+1
|/ | | | Change-Id: I8977570e734801fca4c5cec5207e29dd4a0e5339
* Remove -U from pip install2.25.0Andreas Jaeger2017-12-021-1/+1
| | | | | | | | | | | 'pip install -U' ugrades specified packages, this is not necessary since we use constraints, remove the parameter '-U' from the line. With tools/tox_install.sh - which a previous change of mine removed - the -U was not harmful, but with the current set up, it might cause upgrades, so remove it. Change-Id: I2b4bf1e1c970afea899521e3cab08a817a186782
* Avoid tox_install.sh for constraints supportAndreas Jaeger2017-12-011-8/+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: I0e3485e2cab064db3f8faf85c406c83720fb0242
* Merge "Improving cover testenv"Jenkins2017-07-131-1/+6
|\
| * Improving cover testenvNguyen Van Trung2017-07-081-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add whitelist_externals envconfig setting - Add percentage report to further analyze code-base result: Name Stmts Miss Branch BrPart Cover ------------------------------------------------------------------------ oslo_vmware/__init__.py 0 0 0 0 100.00% oslo_vmware/_i18n.py 4 0 0 0 100.00% oslo_vmware/api.py 205 5 50 6 95.69% oslo_vmware/common/__init__.py 0 0 0 0 100.00% oslo_vmware/common/loopingcall.py 76 8 20 8 83.33% oslo_vmware/constants.py 5 0 0 0 100.00% oslo_vmware/exceptions.py 155 12 30 2 90.27% oslo_vmware/image_transfer.py 117 23 22 4 77.70% oslo_vmware/image_util.py 9 0 0 0 100.00% oslo_vmware/objects/__init__.py 0 0 0 0 100.00% oslo_vmware/objects/datacenter.py 9 0 4 0 100.00% oslo_vmware/objects/datastore.py 172 18 56 8 87.72% oslo_vmware/pbm.py 94 8 20 0 92.98% oslo_vmware/rw_handles.py 289 52 52 10 80.65% oslo_vmware/service.py 239 14 88 12 90.21% oslo_vmware/version.py 2 2 0 0 0.00% oslo_vmware/vim.py 14 2 2 0 87.50% oslo_vmware/vim_util.py 218 1 56 10 95.99% ------------------------------------------------------------------------ TOTAL 1608 145 400 60 88.79% Change-Id: Ib5dc6a9f0600f7399d0a773e8a78102bbbfd7893
* | Add hacking rule to prevent log translations2.22.1Ngo Quoc Cuong2017-07-031-2/+2
|/ | | | | | | Since we have removed log translations completely, we should also add hacking rule to prevent future mistakes Change-Id: I8df524e23ab072d198cbc256e8018671e5f32764
* Remove references to Python 3.4Eric Brown2017-01-051-1/+1
| | | | | | | Now that there exists only a gate job for Python 3.5 and not 3.4, we should remove those references to the 3.4 that is untested. Change-Id: I067d84b89167c5e84373cb0656348d3e7a573a45
* Add Constraints supportTony Breeds2016-12-131-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.vmware. Change-Id: I6d20d90191f5b0e9dce17affd7aca40081cf7cc7
* Add a py35 tox venv for upcoming py35 supportEric Brown2016-07-061-1/+1
| | | | | | | Soon the gate jobs will support Python 3.5. This patch adds the tox virtualenv in preparation for the move from 3.4 to 3.5. Change-Id: I8eb0289b4ce4cfbc47ad79affa7af6ea3dac73d0
* Add reno for release notes managementKirill Bespalov2016-05-241-1/+4
| | | | | | | An initial patch to add reno and create a base directory for release notes Change-Id: I67132d71d478ab5aca9b19c2c417aaaf51357748
* Trivial: ignore openstack/common in flake8 exclude listChangBo Guo(gcb)2016-05-121-1/+1
| | | | | | | The directory openstack/common doesn't exist any more. So remove it from flake8 exclude list. Change-Id: I36cabd08d1e89b2f2e42ec7c97e9282c2dd8e36c
* Move bandit into pep8Eric Brown2016-02-251-2/+5
| | | | | | | | | | | Run security linter bandit as part of pep8. Pep8 is the usual linter target and thus let's use it there instead of starting another node for this short-running job. Also reduced the lines of context from 5 to 3 since it shouldn't matter to most. Change-Id: I54a4fccebb375517f9cd129f62f8f0c795b6edcc
* Remove bandit.yaml in favor of defaultsEric Brown2016-02-041-1/+1
| | | | | | | The bandit.yaml is only necessary for advanced tweaking. None of which is necessary for oslo_vmware. Change-Id: If06c64e0b5278a000d02c34fe10288a67182357b
* Put py34 first in the env order of toxJanonymous2015-12-221-1/+1
| | | | | | | | | | To solve the problem of "db type could not be determined" on py34 we have to run first the py34 env to, then, run py27. This patch puts py34 first on the tox.ini list of envs to avoid this problem to happen. Change-Id: I9dd91b4b58e84c9f73b1e662aa24a779629a8a37 Closes-bug: #1489059
* Remove python 2.6 and cleanup tox.iniDavanum Srinivas2015-11-161-6/+3
| | | | | | | | | | * Remove support for python 2.6 * 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: Iff527b5e96cd2f2f1b3fc56f65bb984c37d8b276
* Fix coverage configuration and executionRonald Bradford2015-10-081-1/+1
| | | | | | | | | | 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: Ife807248caa66472bb30027eef3e68aedb035e7d
* Update bandit.yaml to the latestEric Brown2015-08-181-1/+1
| | | | | | | | | | | The existing bandit.yaml was based on 0.10.1 version of bandit. Commit I9504c44ac575b47b256496e833dd53a9dce113d2 adopts version 0.13.2 of bandit. As a result, the bandit.yaml needs to be synced with the standard version. Also, with the newest bandit, some #nosec tags can be removed. Change-Id: I503cd33d401b104aa502e7909f949c438a6248e6
* flake8 - remove unused rulesDavanum Srinivas2015-08-081-1/+1
| | | Change-Id: If09a1c2d6fef10f14cf0b577f8285b83fc2c7254
* Add tox target to find missing requirements1.16.0Davanum Srinivas2015-07-021-0/+8
| | | | Change-Id: I44ce0015cd12148120ae590362473f15ba376285
* Fix bandit tox environment to properly runEric Brown2015-06-091-2/+2
| | | | | | | | | | | These changes were necessary: - Move bandit dependency from test-requirements-bandit.txt to test-requirements.txt - Only print high and medium severity errors (-ll) - Rename blacklist_functions to proper plugin name of blacklist_calls Change-Id: Ibf2a16e3fc62aadc995c70b5dfe2258f1cf23f85
* Remove support for Python 3.3Davanum Srinivas2015-05-111-1/+1
| | | | Change-Id: I2353396e505452ecb05b19f59f2620f5a7d895b6
* Use suds-jurko on Python 2Victor Stinner2015-05-051-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace suds dependency with suds-jurko on Python 2. It was already used on Python 3. suds-jurko is actively maintained (latest commit in december 2014) and supports Python 3, whereas suds doesn't seem to be maintained anymore (last release in 2010). suds-jurko is a drop-in replacement for suds, both packages provide the same Python module. This change removes requirements-py3.txt because they are no more Python 3 specific dependencies. It also fixes a bug in packaging: currently, oslo.vmware provides a single wheel package for Python 2 and Python 3 whereas dependencies are different. suds is incompatible with Python 3 and so the oslo.vmware wheel package cannot be installed on Python 3. requirements-py3.txt contained oslo.serialization and httplib2 dependencies. These dependencies were removed from requirements.txt by the commit 6d8594ae519e2dfa116f84fb126e40a058473754, requirements-py3.txt wasn't updated. Update py33 and py34 test environments in tox.ini to use requirements.txt instead of requirements-py3.txt. Change-Id: I699c65e4abd607ea6f377d86c45fd609569f3c2b
* Add bandit to tox for security static analysisEric Brown2015-04-231-0/+4
| | | | | | | This patch adds security static analysis to tox as an optional target. Change-Id: Id74a190e893326a587911e32593040bcb844d3e9
* Move pylint dependency to tox.iniDoug Hellmann2015-03-201-0/+3
| | | | | | | | | We do not run a gate job against oslo.vmware using pylint, so move the dependency out of the synced requirements and into the tox environment settings instead. If that's no longer useful, we can remove the tox environment completely. Change-Id: Ice3527b8d92137d04fd77e7e800a5875fa7fdaf2
* Move files out of the namespace packageDoug Hellmann2015-01-121-1/+2
| | | | | | | | | | Move the public API out of oslo.vmware to oslo_vmware. Retain the ability to import from the old namespace package for backwards compatibility for this release cycle. bp/drop-namespace-packages Change-Id: I11cf038c3832a7357ed53363d8ccf143daddd2a2