summaryrefslogtreecommitdiff
path: root/tox.ini
Commit message (Collapse)AuthorAgeFilesLines
* Fixing tests with tox 4.2.6wu.chunyang2023-01-281-1/+1
| | | | | | Remove basepython from testenv Change-Id: Idb2a9d9dcc5a73e15e5cbab165b2b629a8b26afe
* Add python3.9 support7.3.0wu.chunyang2022-04-281-1/+1
| | | | | | This ps adds py39 support and replaces dashes with underscores Change-Id: I5245be419244c8bd93c7099b61ce0a382f7a5065
* Changed minversion in tox to 3.18.0likui2021-06-031-2/+2
| | | | | | | | 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: Ia9928d8fe69a6a3c593ff9b5846ef3123e7dda26
* Support project name in quota CLILingxian Kong2021-04-291-1/+1
| | | | Change-Id: I9886792f346bbe8d4887539ca69588b4957547e1
* Update TOX_CONSTRAINTS_FILElikui2020-10-301-3/+3
| | | | | | | | | | | UPPER_CONSTRAINTS_FILE is old name and deprecated -https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file This allows to use lower-constraints file as more readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>. [1] https://review.opendev.org/#/c/722814/ Change-Id: Ieb7bf715f4d28814afe6b791fde90ab114d9793a
* Merge "bump py37 to py38 in tox.ini"Zuul2020-10-221-1/+1
|\
| * bump py37 to py38 in tox.iniwu.chunyang2020-09-191-1/+1
| | | | | | | | | | | | | | | | in 'victoria' cycle, we should test py38 by default. also remove unused env pypy Trivial change Change-Id: Iafaa88482bf5e972e1c0eb9766254d3973685368
* | Remove install unnecessary packageszhangboye2020-09-231-1/+0
|/ | | | | | | The docs requirements migrated to doc/requirements.txt we need not install things from requirements.txt. Change-Id: I0b3b6acac49846a8c9e8efb4de31b0be22283180
* Remove install unnecessary packages when run tox -edocslikui2020-09-111-1/+0
| | | | | | | | the requirements.txt is unnecessary when run tox -e docs docs relative stuffs is in doc/requirements.txt, this ps to remove the requirements.txt from tox.ini Change-Id: I4da4d4e862be137e919e4e94a239cc5461b208da
* Update hacking for Python33.3.1Andreas Jaeger2020-03-311-1/+1
| | | | | | | | | The repo is Python 3 now, so update hacking to version 3.0 which supports Python 3. Fix problems found. Change-Id: I5da442bb2f1e634e6b3fe37a6ea3820cea1db96f
* Drop python 2.7 support and testingGhanshyam Mann2019-12-131-13/+4
| | | | | | | | | | | | | | | OpenStack is dropping the py2.7 support in ussuri cycle. python-troveclient is ready with python 3 and ok to drop the python 2.7 support. 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://review.opendev.org/#/c/691178/ Change-Id: I425cb0d2f1487819fde9ebae46fe3570b72cbe88
* replace git.openstack with releases.openstack.org2.19.0yangyong2019-08-261-3/+3
| | | | Change-Id: Ib69c3524c0afa8c7f7827e4feb70c7aed2e06c9a
* Add Python 3 Train unit testsCorey Bryant2019-08-231-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 Also fix the CI failure due to: https://docs.python.org/3/whatsnew/3.5.html#pep-479-change-stopiteration-handling-inside-generators Change-Id: Ica582f99730c5019a1212d4f58d7d854ad2996fd Story: #2005924 Task: #34254
* Dropping the py35 testingGhanshyam Mann2019-04-151-5/+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: Ib2b1297f75a245dbd2209f958a89a510bc62965c
* add python 3.6 unit test jobVieri2018-11-281-1/+1
| | | | | | | | | | | 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: I72d4101d9edb049b58f5ce662160f9629dbf1665 Story: #2002586
* Update min tox version to 2.0huang.zhiping2018-10-211-1/+1
| | | | | | | | 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: I8a8766706f60a75c546fa338943630a28f3670f2
* Don't quote {posargs} in tox.iniVieri2018-10-091-1/+1
| | | | | | | | Quotes around {posargs} cause the entire string to be combined into one arg that gets passed to stestr. This prevents passing multiple args (e.g. '--concurrency=16 some-regex') Change-Id: Ieeaa82bc6fb472490d1806c41cbffac130c0d23a
* Switch to stestrVu Cong Tuan2018-07-301-4/+7
| | | | | | | | | | 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: I9bfb80f2556ca7c801dde69d1685751169e25307
* fix tox python3 overridesDoug Hellmann2018-07-121-0/+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: I3868de365369664b3689582cc9d25f3228e5dbb7 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* Follow the new PTI for document buildNguyen Hai2018-04-211-2/+10
| | | | | | | | | | | | - Follow new PTI for docs build - Add sphinxcontrib.apidoc to replace pbr autodoc REF: https://governance.openstack.org/tc/reference/project-testing-interface.html http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html http://lists.openstack.org/pipermail/openstack-dev/2018-March/128594.html Change-Id: I078e2ed32da04303203d6c2a3e498f82b9a15939
* Merge "Change testenv from py34 to py35"Zuul2018-04-171-3/+3
|\
| * Change testenv from py34 to py35Nguyen Hai2018-04-161-3/+3
| | | | | | | | | | | | | | | | | | | | - The Zuul gate currently only support py35. - In setup.cfg, the project said that it support Programming Language :: Python :: 3.5. Therefor, this patch changes py34 to py35. Change-Id: Iaad9bf41e3c8a8915c06ff039e570a2cc41ca2a1
* | add lower-constraints job2.15.0Doug Hellmann2018-04-161-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. About PrettyTable requirement: The minimum version of PrettyTable is not correct in requirements.txt, which should be 0.7.2 according to the unittests(before 0.7.2, if the table is empty, i.e. no rows in the table, PrettyTable won't print the headers and borders, this is changed during 0.7.2) Co-Authored-By: Zhao Chao <zhaochao1984@gmail.com> Change-Id: Ia9cadcbc2bc9aa2864fe47040dfe7be8ae286b98 Depends-On: https://review.openstack.org/555034 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* Avoid tox_install.sh for constraints supportAndreas Jaeger2017-12-021-4/+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: I65e1e4d40fbd56c7e2f7e4a59c0438d7176c36b4
* Handle log message interpolation by the loggerGábor Antal2017-03-081-0/+1
| | | | | | | | | | | | | According to OpenStack Guideline[1], logged string message should be interpolated by the logger. Also, upgraded hacking requirement, to enable H904 check. [1]: http://docs.openstack.org/developer/oslo.i18n/guidelines.html#adding-variables-to-log-messages Co-Authored-By: jiansong <jian.song@easystack.cn> Change-Id: I3f020b6bcb1b9bf6d18a3b4f738c13cccd1bbff8 Closes-Bug: #1596829
* Get python-troveclient to use upper-constraints.txtAmrith Kumar2016-11-161-1/+3
| | | | | | | | | | | | | | | | | | | In review[1] which passed just fine in check some days ago failed in gate today. This is because the current tox environment uses requests v2.12.1 which appears to not work and is beyond the value in upper-constraints.txt. As observed in [2] we need upper-constraints.txt in python-troveclient. But since python-troveclient is itself listed in upper-constraints.txt you can't just stick it in tox.ini and expect good things to happen. I'm adding a co-author to this change based on [2]. [1] https://review.openstack.org/#/c/382493/ [2] https://review.openstack.org/#/c/398339/ Co-Authored-By: jiansong <jian.song@easystack.cn> Change-Id: I386efb2d5c147417af7ea25704405977c9b6bbcd
* Merge "Remove times.dbm file for each tox run"Jenkins2016-04-141-0/+2
|\
| * Remove times.dbm file for each tox runPeter Stachowski2016-04-041-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If you run the py27 tox tests then attempt to run the py34 tests, the following error will occur: running testr running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \ OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \ OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \ ${PYTHON:-python} -m subunit.run discover -t ./ ./ --list db type could not be determined error: testr failed (3) This happens because the apparently the times.dbm file generated by py27 is not compatible with py34. The converse is not true though - if you run py34 first, py27 will work. Both these bugs have been filed against it, but I see no resolution https://bugs.launchpad.net/testrepository/+bug/1212909 https://bugs.launchpad.net/testrepository/+bug/1229445 The work-around is to delete the file, which is what is now done before running every tox test. Once the bug has been fixed, the work-around can be removed. Change-Id: Icf5d9efc65ffda8acdcc6f43b37ef03c84b3fd43 Closes-Bug: #1565928
* | Add reno for release notes managementPeter Stachowski2016-04-081-1/+5
|/ | | | | | Add reno to generate release notes for the Trove client. Change-Id: I8e475e1148ec32f9beb3398ecbb5effccd7ea4fb
* use oslotest to break into the debugger when running test casesting.wang2016-01-211-0/+11
| | | | | | | | | | | | | | | | Once we add debug testenv, we can use "tox -e debug" to debug test cases when tox is running. Then tox will use oslotest which really debug our test cases. Only we should do is insert pdb into code.It's easy to use. The same in trove: https://review.openstack.org/#/c/265524/ usage link: http://docs.openstack.org/developer/oslotest/features.html Change-Id: I93709451af9a14fc9c71e1c3306a1a025aee8b44
* Put py34 first in the env order of toxJanonymous2016-01-071-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: I90be329de961a0a63607d04b5c7cc88d033f05ec Closes-bug: #1489059
* Drop py33 supportshu-mutou2016-01-051-1/+1
| | | | | | | | | | | | | | | "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: I37a08fc005ec78031e582721a5e472348ee5324c Closes-Bug: #1526170
* Remove py26 supportricolin2016-01-031-1/+1
| | | | | | | | | | As of Mitaka, the infra team won't have the resources available to reasonably test py26, also the oslo team is dropping py26 support from their libraries. since we rely on oslo for a lot of our work, and depend on infra for our CI, we should drop py26 support too. Closes-Bug: 1519510 Change-Id: Ifc92fdb0823a032d9b9f744494276a702a16e8b7
* Delete python bytecode before every test runOTSUKA, Yuanying2015-11-171-1/+3
| | | | | | | | | Because python creates pyc files during tox runs, certain changes in the tree, like deletes of files, or switching branches, can create spurious errors. Change-Id: I948892fb820f3d0583731627068ae3aa254121e7 Closes-Bug: #1368661
* Fixes new hacking rules1.2.0Sushil Kumar2015-05-261-1/+1
| | | | | | | | | | | | | | | | | Updated the hacking version as per global-requirements. Fixed some of new appearing hacking rules, as listed follows: - E128 continuation line under-indented for visual indent - E265 block comment should start with '# ' - E713 test for membership should be 'not in' - H238 old style class declaration, use new style (inherit from `object`) Rules which are not yet fixed have been incorporated to ignorelist - H405 Multi line docstrings should start with a one line summary followed by an empty line - H501 Do not use locals() or self.__dict__ for formatting strings Change-Id: I885c6fa8ad0e6a98f7a8479f3441ed08ed2cbaa6
* Updated coverage related options to projectSushil Kumar2015-05-081-1/+5
| | | | | | | | | | | - Added .coveragerc file to project, this file is utilized to provide variuos various options like while running coverage. - Used the .coveragerc file available in trove project. - Updated tox.ini to show the calculated coverage results. Change-Id: I9cc72766ab5a3ca48c60089062f37123dafc2850 Closes-Bug: #1453100 Closes-Bug: #1453101
* Work toward Python 3.4 support and testingJeremy Stanley2014-09-031-1/+1
| | | | Change-Id: I4a9c0444af0abf408ffd3899106f4cacf3c93aa1
* Enabled F821, H306, H402, and H404 flake8 ruleSushil Kumar2014-05-091-1/+1
| | | | | | | | | | | | | | Reasons: - F821 is disabled. - H306 is disabled. - H402 is disabled. - H404 is disabled. Changes: - Updates tox.ini to enable F821, H306, H402 and H404 rules. - Updates code for F821, H306, H402 and H404 violation. Change-Id: I772270bb833ac774e080fc63e330d6b333f23de2
* Fix building of documentationAndreas Jaeger2014-05-011-6/+3
| | | | | | | | | | | | | | | | Now both the standard command "python setup.py build_sphinx" and "tox -e docs" will build the documentation. The changes: * tox.ini: Fix docs section: Remove unneeded deps line, the general deps line is just fine. Enable the command, clean up before running sphinx and use the normal command for execution. * pydocs.rst: This throw an error while building since troveclient.client.Dbaas does not exist, replace it. * index.rst: Generate table of content. No need to include the files. Change-Id: I2095ef73a76b0212e33776af925f5eaf1810be7a Partial-Bug: #1315101
* Tighten flake8 checks in GatingDirk Mueller2013-12-181-2/+1
| | | | | | | | | | | There are a few checks that already pass: - F401 - unused imports of modules - F403 - ‘from module import *’ used; unable to detect undefined names And there are two (H401 and H403) that can be made passing easily. Enable gating on all of them. Change-Id: I9d3c49ecea1b2171d194ab6cc751316c252081e8
* Add -U to pip install command in tox.iniJames E. Blair2013-12-111-1/+1
| | | | | | | Ask pip to upgrade packages in the virtualenv so that a long-lived virtualenv is still kept up to date as external dependencies change. Change-Id: Id1e83aa5dd7c39d4827baeb39827b0ddeb8b6d4a
* Ignore fewer PEP8/flake8 rulesDenis Makogon2013-12-101-2/+3
| | | | | | | | | | | | Reasons: - code should be pythonicaly clean, that is why number of ignored rules should reduced Changes: - E125, F811, H102, H103, F201, H23, H302, F841, H301, H702, H703 rules are now enabled Change-Id: Ibf4025162244d3c2f1278b49a76ec1527a729042
* Updates tox.ini to use new featuresSushil Kumar2013-12-091-0/+4
| | | | | | | | | | | | | | | | Reasons: - tox update v1.6 Changes: - tox 1.6 allows us to skip the sdist step, which is slow. - It also allows us to override the install line. In this case, it's important as it allows us to stop getting pre-release software we weren't asking for. Original patch by Monty Taylor, talked about here: http://lists.openstack.org/pipermail/openstack-dev/2013-September/015495.html Change-Id: I3d857f8ef19b49e0a09b50a9eda7121b28329532
* Removes unused import statementsDebasish Chowdhury2013-11-301-1/+1
| | | | | Change-Id: If229aa3f6e1009e1abfba13aba3970bdf2dd3761 closes-bug: #1255885
* Adding py33 gating to the clientMichael Basnight2013-10-231-1/+1
| | | | Change-Id: I47e493bae8a00b5182608e31fcea82c3cacb152e
* Tweak pbr confMonty Taylor2013-10-091-1/+1
| | | | | | | Mainly, remove the pin in setup.py and remove the hook entry in setup.cfg. Update from requirements while we're at it. Change-Id: I34a05229b9ea0bdfd99dc16d09713c9494c1cb78
* Added support for running the tests under PyPy with toxAlex Gaynor2013-09-051-1/+1
| | | | | | This is a precursor to having them run under check and gate. Change-Id: I98692ac2591d488f0c5c6e64b1c176b21254289c
* PEP8 with tox -epep8 check failsDenis M2013-08-301-1/+1
| | | | | Change-Id: Ife06919f321ab4ad73bece2e6080fbd7d947eeef Fixes: bug #1219014
* Start using pyflakesDirk Mueller2013-06-261-1/+1
| | | | | | | | Instead of globally disabling pyflakes warnings, disable only those that occur frequently and fix the rest. Enable gating on those. Change-Id: I774d809ebcda2339b30c104b031211a3b2c491bd
* Migrate to testr.Michael Basnight2013-06-181-2/+2
| | | | Change-Id: I497fc21a0795b8921f989d7a00b6a73f7730cd22