summaryrefslogtreecommitdiff
path: root/tox.ini
Commit message (Collapse)AuthorAgeFilesLines
* Make tox.ini tox 4.0.0 compatibleBalazs Gibizer2022-12-221-1/+2
| | | | | | | | | | | * removed skipsdist=True to make sure novaclient is available in the virtual env. The usedevelop and skipsdist does not work together any more https://github.com/tox-dev/tox/issues/2730. For bindep we still don't need the current repo to be installed in the env so skipsdist added there. Depends-On: https://review.opendev.org/c/zuul/zuul-jobs/+/866943 Change-Id: I979b91570c7b60273f35fbdf8464f6a9ee2007d6
* Drop lower-constraints.txt and its testing18.0.0Ghanshyam Mann2022-04-291-6/+0
| | | | | | | | | | | | | As discussed in TC PTG[1] and TC resolution[2], we are dropping the lower-constraints.txt file and its testing. We will keep lower bounds in the requirements.txt file but with a note that these are not tested lower bounds and we try our best to keep them updated. [1] https://etherpad.opendev.org/p/tc-zed-ptg#L326 [2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal Change-Id: Ibb492285ef7d5357c921035409d6654c80df3725
* Change minversion of tox to 3.18.0Takashi Natsume2021-05-181-2/+2
| | | | | | | | | The patch bumps min version of tox to 3.18.0 in order to replace whitelist_externals by allowlist_externals option: https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23 Change-Id: I75844ded50c0032445dd27b1ced7f214c754e901 Signed-off-by: Takashi Natsume <takanattie@gmail.com>
* Use py3 as the default runtime for toxzhangboye2021-04-201-1/+1
| | | | | | | Moving on py3 as the default runtime for tox to avoid to update this at each new cycle. Change-Id: Icad6d0d0d375d1995baa603b091be50797210215
* Remove install unnecessary packageswu.shiming2020-09-141-2/+0
| | | | | | | The docs and releasenotes requirements migrated to doc/requirements.txt we need not install things from requirements.txt. Change-Id: I9d73c83b0520f724479c0e09b3686d3aab96df71
* Switch legacy Zuul jobs to native Zuul v3 jobsTakashi Natsume2020-07-081-1/+1
| | | | | | | | | | | | | Replace the 'novaclient-dsvm-functional' legacy Zuul job with the 'python-novaclient-functional' native Zuul v3 job. See https://governance.openstack.org/tc/goals/selected/victoria/native-zuulv3-jobs.html for more details. Change-Id: I35b5699b8b0814f2d17a37e024286cd440047ec8 Signed-off-by: Takashi Natsume <takanattie@gmail.com> Co-Authored-By: Andrey Kurilin <andr.kurilin@gmail.com>
* Merge "Bump default tox env from py37 to py38"Zuul2020-04-241-1/+1
|\
| * 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: I093085cf6e85a66f80559eba62f9edf684f5dbea Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* | Switch to using TOX_CONSTRAINTS_FILETakashi Natsume2020-04-241-4/+4
|/ | | | | | | | | UPPER_CONSTRAINTS_FILE is deprecated. So switch to using TOX_CONSTRAINTS_FILE. See I3f957187ed4f29fcf88db99cb79fb33b21a8dd8d. Change-Id: I1812eb64b1afa8e90f4de8604f3f26075da6332f
* Bump to hacking 2.xStephen Finucane2020-02-211-2/+2
| | | | | | | This is compatible with Python 3-only syntax. Change-Id: I462f4242b9a5f8d8cd6b0cb3d328dfd9d93ba200 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* tox: Configure 'ignore_basepython_conflict'Stephen Finucane2020-02-211-13/+14
| | | | | | | | | | | | | | Resolves the following warning: UserWarning: conflicting basepython version (set 37, should be 36) for env 'py36';resolve conflict or set ignore_basepython_conflict and makes sure we're testing with what we should be. Some random indentation is fixed while we're here. Change-Id: I6f3e98cc33731f528a3a755300f1fcc65c6b53ff Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* Stop supporting and testing python2Eric Fried2019-10-251-18/+2
| | | | Change-Id: If678d77b8da69121b0075bfbc4216531be25da6a
* PDF documentation buildAkihiro Motoki2019-10-111-1/+11
| | | | | | | | | Also reorganizes the document structure to match both HTML and PDF docs. Story: 2006100 Task: 35143 Change-Id: Ie3f38e2ecf52e6a6cbd52bb36196e6f589f1ca0f
* 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: I2ed3c89b4e571f3e4b69287d1844b26cf4d0268d Story: #2005924 Task: #34226
* Merge "Modify the url of upper_constraints_file"Zuul2019-07-031-4/+4
|\
| * Modify the url of upper_constraints_file翟小君2019-07-031-4/+4
| | | | | | | | | | | | | | | | As described at [1]. [1] http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html Change-Id: I76c9f982ff6cf46db25f626575257af483e3434e
* | Add Python 3 Train unit testspengyuesheng2019-07-021-1/+1
|/ | | | | | | See the Train python3-updates goal document for details: https://governance.openstack.org/tc/goals/train/python3-updates.html Change-Id: I691d7994070012af62d20d15809b7c4f143909a8
* Merge "Drop py35 tests"Zuul2019-04-261-4/+3
|\
| * Drop py35 testszhangyangyang2019-04-221-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | Drop py35 tests because all the integration testing has been moved to Bionic. See the following URL for more details. http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html Co-Authored-By: Takashi Natsume <natsume.takashi@lab.ntt.co.jp> Change-Id: Ied64e92d5833ed11e1213c42994cfebeaa2ace6a Signed-off-by: zhangyangyang <zhangyangyang@unionpay.com>
* | Updates for OpenDev transitionTakashi NATSUME2019-04-231-4/+4
|/ | | | | | | | | | | | | Replace 'git.openstack.org' with 'opendev.org' in contributor/index.rst. Update URLs in other places as well though there are redirects. See the following URLs for more details: http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html Change-Id: Ifb9f4274d2fd0fa81e7501fe176eeead3acd0e3e
* Update hacking versionZhijunWei2019-01-041-1/+1
| | | | | | | 1. update hacking version to latest 2. fix the pep8 failed Change-Id: I484a40fe3cb868d223a807edcd3e20f5e0ebdf4e
* docs: Add redirectsStephen Finucane2018-09-241-1/+3
| | | | | | | | | | | These were missed for some reason. Let's add them now. While we're here, we add the '-d DOCTREE_DIR' argument to our 'sphinx-build' call to handle Sphinx 1.8's change in behavior for where doctrees are output. Change-Id: I5c862a74f92a44bf5248f858e26826eef76c11f0 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* Follow the new PTI for document buildTakashi NATSUME2018-09-131-1/+1
| | | | | | | | | | | | | - 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: Ic66fe4d5488c7777439a416fbf86d37af807804d Closes-Bug: #1792115
* Switch to stestrVu Cong Tuan2018-07-161-12/+10
| | | | | | | | | | 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: I55060b1d99b9a00b20c98fbb429d072568265695
* Remove doc/build when building docsMatt Riedemann2018-06-151-2/+5
| | | | | | Wipe out the existing doc/build when rebuilding the docs. Change-Id: Idd7f6dc171425402b8d7ff7962dc09e7c576986b
* fix tox python3 overridesDoug Hellmann2018-06-061-0/+7
| | | | | | | | | | | | | | | 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: I2cb16250241781abe7c5a7d7de37612f07ff2b0b Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* add lower-constraints jobDoug Hellmann2018-03-221-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: I5c23fc5f4e31b461255865fb8973cc05c448e364 Depends-On: https://review.openstack.org/555034 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* Fix local test fails with pypyNguyen Hai2018-03-151-1/+1
| | | | | | | | | | tox: ERROR: pypy: InterpreterNotFound: pypy Maybe we need to remove pypy-constraints from envlist in tox.ini because there is no effect to review. Change-Id: I1ff1cb103dcaad1396bc2bda487165feae6b0931 Closes-Bug: #1756108
* Fix being able to create a reno using tox -e venvMatt Riedemann2018-01-111-0/+5
| | | | | | | | | | | | | Iace251446bafbd8963bc5a073de50ade583f6e46 moved the reno dependency to a new requirements file which broke the ability to create a release note using: tox -e venv -- reno new <slug> This fixes it by adding the doc/requirements into the venv tox environment. Change-Id: I243d4d5148964511a83855d2b1b451aa1543b98b
* Update new documentation PTI jobsGuoqiang Ding2017-12-281-3/+11
| | | | | | | | | | For compliance with the Project Testing Interface as described in [1]. For more detailed information, please refer to [2]. [1] https://governance.openstack.org/tc/reference/project-testing-interface.html [2] http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html Change-Id: Iace251446bafbd8963bc5a073de50ade583f6e46
* Avoid tox_install.sh for constraints supportAndreas Jaeger2017-12-021-8/+5
| | | | | | | | | | | 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: I7f06c0be47f57a9c1ee3cadc7328b1b1b138b3cd
* [ci] Use pseudo-random names for new resourcesAndrey Kurilin2017-11-231-2/+6
| | | | | | | | | | | | Random names of resources makes the task impossible to find a test which doesn't clean resources after a launch. This patch changes name_generate method to generate names including a name of the test, which can be really helpful. Also, the simple script that prints resources after test run is added. Change-Id: Id3a743afb624dd4bf8ed3523a1916455fd93655a
* Remove py34 tox env and pypi classifierEric Brown2017-03-201-4/+4
| | | | | | | | Currently only py27 and py35 (not py34) is tested in the gate, so py34 should no longer be part of the tox environment or part of the PyPi classifier. Change-Id: I81058c5df47c4dae3c331d0030141896b6a9f1bb
* Enable coverage report in console outputJeremy Liu2017-01-131-1/+3
| | | | | | | | Currently, the coverage test job doesn't provide any test result to developer, we could enable coverage report in console output to let the developer know the coverage status when running coverage test job. Change-Id: I12764de112e948129e21732faae03562649522fc
* Use upper-constraints when running toxMatt Riedemann2016-11-291-4/+9
| | | | | | | This is basically a copy of the template used in oslo.messaging under change 78f113780510b741bc974c69eb9b0718cd657c1d. Change-Id: I8be883215f27abb58d15b85e8542cbdf32000bac
* Add Python 3.5 classifier and venvTony Xu2016-10-261-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: Ic80a40692726b05f0f9d174f6ba7e7040f30db38
* Make novaclient functional tests use pretty toxSean Dague2016-08-121-2/+2
| | | | | | | | This makes local running of the tests much nicer as we can see the progress of successful tests working around the testr issue of showing no output until the end of the run. Change-Id: I4adc965fd95b6e79a3ec26614d1c9f98262593b9
* List system dependencies for running common testsAndreas Jaeger2016-06-291-0/+8
| | | | | | | | | | | | | | | | Add an other-requirements.txt file containing a cross-platform list of dependencies needed for running included tox-based tests. Also include a tox environment for convenience calling the bindep[*] utility to list any missing system requirements. This change is self-testing. For other-requirements.txt see also http://docs.openstack.org/infra/manual/drivers.html#package-requirements [*] http://docs.openstack.org/infra/bindep/ Change-Id: I3c62f6924d2d70e23e6787b8da848fbeb0d52ddc
* Merge "Removed unused Oslo Incubator code"Jenkins2016-03-291-1/+1
|\
| * Removed unused Oslo Incubator codeRonald Bradford2016-03-221-1/+1
| | | | | | | | | | | | | | This is part of graduating projects to using Oslo Libraries. As this code is not actually used, it is simply removed. Change-Id: Ib28a957d9a4622064ec5da2ae616ac6f0716bcbf
* | Adding tox support for banditChristopher J Schaefer2016-03-221-0/+3
|/ | | | | | | | | Bandit is a code linter which is used to help identify potential security vulnerabilities. As part of the plan to integrate bandit into each OpenStack project, support for a tox testenv is step one. Later, gate tests will also be incorporated. Change-Id: Ib6ef0a3e8f32f2724314c166d7de50d591c0e949
* Allow to specify a network for functional testsRalf Haferkamp2016-02-161-0/+2
| | | | | | | | | | | Currently the tests just attach instances to the first network returned by "net-list". That might however not be the right thing in some environments. This change allows to override the default network via the environment variable "OS_NOVACLIENT_NETWORK". If not specified the test will fallback to the old behaviour and just use the first network. Closes-Bug: #1510975 Change-Id: Ie682111127584a33d8e96377d812d3a6352c760d
* Add functional tests launcher for py3 envAndrey Kurilin2016-01-151-0/+7
| | | | | | | | | It would be nice to check not only unit test on py3 env, but functional tests too. Also, this patch fixes usage of xrange in functional tests. Change-Id: I15ef204022583a40a02b3f2a48771347ddc95f3e
* 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: I06c6a276b75eb2a3d69e94f467f26122d856d17c Closes-bug: #1489059
* Merge "Deprecated tox -downloadcache option removed"Jenkins2015-12-161-3/+0
|\
| * Deprecated tox -downloadcache option removedOndřej Nový2015-12-111-3/+0
| | | | | | | | | | | | | | | | | | | | 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: I22e710aae8bf34938a4f9ee85c566876a36c7bb1
* | Drop py33 supportshu-mutou2015-12-151-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: Ic9d4f64154a5418baa159a4efdcd9dd652d142ff Closes-Bug: #1526170
* Merge "Remove python 2.6 support from python-novaclient"Jenkins2015-12-021-1/+1
|\
| * Remove python 2.6 support from python-novaclientChuck Carmack2015-11-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since oslo is removing support for python 2.6, nova needs to also remove support from clients and libraries. This commit is to remove support from python-novaclient. -- Python 2.6 compatibilty code was removed. -- Python 2.6 was removed as a tox environment, install venv, and from the classifiers in setup.cfg. -- Release notes have been updated. UpgradeImpact Co-Authored-By: Andrey Kurilin <andr.kurilin@gmail.com> Change-Id: I3f587ff38d478d075af5fd014e2b4b8416e185d4 Closes-bug: 1518390
* | force releasenotes warnings to be treated as errorsSylvain Bauza2015-11-281-1/+1
|/ | | | | | | Per http://lists.openstack.org/pipermail/openstack-dev/2015-November/080521.html, we need to make sure that there are no warnings for reno. Change-Id: I899d223f5347633a17ac5c7fb3991a3cd1f4c781