summaryrefslogtreecommitdiff
path: root/tox.ini
Commit message (Collapse)AuthorAgeFilesLines
* Add hacking check for line continuation backslashMichael Johnson2023-02-131-0/+1
| | | | | | This patch adds a hacking check for line continuation backslashes and fixes the occurences that existed in the code. Change-Id: I13cd03e16698b7f1d8036815d12a665bd1156f2f
* Update tox.ini for tox4Michael Johnson2023-01-301-4/+8
| | | | | | With tox4, we need to pass the environment variables on separate lines as opposed to separated by whitespace. The skipdist setting also breaks the runs. Change-Id: Iad13eb46c2cd89169c1aa9c39492ef7a29c83161
* Use TOX_CONSTRAINTS_FILEniuke2022-07-261-3/+3
| | | | | | | | 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>. Change-Id: I946dca0e06f4bd96fb154cde1cc3bb5ee362a8fd
* Drop lower-constraints.txt and its testingGhanshyam Mann2022-04-301-10/+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: I3f72768442b3690f8ec85d5d15102ae6825dddd8
* Add Designate hacking checks to the clientMichael Johnson2021-11-291-0/+13
| | | | | | | | | | This patch adds the Designate hacking checks to also run against the Designate client code to maintain consistent style checking across the Designate repositories. It also resolves one style check failure. Change-Id: I09786482b2e7fecaa3d4484c9b1a017fae04cfea
* Use py3 as the default runtime for toxzhangboye2021-11-241-1/+1
| | | | | | | Moving on py3 as the default runtime for tox to avoid to update this at each new cycle. Change-Id: If96047f90eaddf313534d9a9652d665ff26b206a
* Remove H402 hacking as it is deprecatedsonu.kumar2021-11-231-2/+1
| | | | | | | H402 hacking have been removed since hacking 0.10. So remove H402 ignore statement. Change-Id: I6de537410bd1d8b320d3c9db603ae1669a4faf25
* Remove install unnecessary packagesmaaoyu2021-03-091-1/+0
| | | | | | | The docs requirements migrated to doc/requirements.txt we need not install things from requirements.txt. Change-Id: Ifb66f44a1c0bb42f3f6aeffc06d1b8ee80d150c5
* Merge "bump py37 to py38 in tox.ini"Zuul2021-02-031-1/+1
|\
| * bump py37 to py38 in tox.inimaaoyu2020-11-051-1/+1
| | | | | | | | | | | | | | | | | | in 'wallaby' cycle, we should test py38 by default. ref: https://governance.openstack.org/tc/reference/runtimes/wallaby.html Change-Id: Id16ba0121910132102b6b19c049d605b46e71751
* | Fix lower-constrains jobErik Olof Gunnar Andersson2021-01-181-0/+4
|/ | | | | | Applied the same fix as was done for designate. Change-Id: I9cb5f14c732bc2cc42c63dfcb6f13ec6d4f03a35
* Fix doc reference buildsmichaeltchapman2020-10-131-1/+1
| | | | | | | | | | | The api reference was broken some time around the stein release. Moved conf options out of setup.cfg and into the doc conf.py, and added an option to doc build to error on warnings so this doesn't happen again without anyone noticing. The format is now similar to the novaclient reference doc. Change-Id: Ic9ed059521794acf1ac1a644096fdc10549fa91b
* Increase hacking versionNicolas Bock2020-10-101-2/+7
| | | | | | | | | | | Increase the hacking version in test-requirements to match the version used in the `designate` project. This change fixes a few errors that the more recent `pyflakes` flags. Change-Id: If7afefde0f33161016a27774021d27239c642eb5 Co-Authored-By: Michael Chapman <woppin@gmail.com> Signed-off-by: Nicolas Bock <nicolas.bock@canonical.com>
* Drop py27 supportSean McGinnis2020-03-131-10/+15
| | | | | | | | | Per the Ussuri cycle goal, this drops py27 testing and support. https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html Change-Id: I0c525eb48270494e8171042e56e14867c53e5af3 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* Switch upper-constraints URL to static locationSean McGinnis2019-09-201-3/+3
| | | | | | | | | | | During the train cycle, a new static URL scheme was introduced for upper-constraints URLs that allows us to switch locations based on configuration and avoid timing windows with the requirements repo branching. This updates upper-constraints links in the tox.ini file to point to the newer more prefered location. Change-Id: I8efbb24483d2a63a8abfa50e328fefb7ffd92e5f Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* Add Python 3 Train unit tests2.12.0Corey Bryant2019-06-241-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: Ie2119dec469dba059fa3ce8729f360590d45791c Story: #2005924 Task: #34204
* 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: I160c141169d68fd9403604c68cecde0c70c463c3
* Add doc/requirements.txt to releasenotes tox environment98k2019-01-091-0/+3
| | | | | | | Without these dependencies, the releasenotes build does not actually work. Change-Id: I6341d335003b5bd29d05314fa6f18dc66adf6f2a
* Don't quote {posargs} in tox.inistein-em2.11.0Vieri2018-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: I2129ff5454ad7e2f94736ea750ca3f2d6d78e1ea
* Switch to stestrVu Cong Tuan2018-07-111-2/+8
| | | | | | | | | | 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: I96c7c264dab04a7f52e2c77a1165ed51137bfae0
* 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: If352b0ca1de2cda56089ebe1c7db04feb5ba983b 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: Ib3db492e715ab98d8f4adfe58780824cf30ace15 Depends-On: https://review.openstack.org/555034 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* Split doc requirements into their own fileMonty Taylor2017-12-181-2/+5
| | | | | | | | We don't need sphinx in the test virtualenvs, but we do need it for docs. Change-Id: I8ae98d08090e2e391ba725ddd5ff0125a03c8d47 Depends-On: Ie0c9f24df09255e871f904e079b68809144b36b4
* 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: I30b48b58d368c2d79d3407735d2a082b3b46d2fb
* use setuptools to build the docs even for testingDoug Hellmann2017-07-101-1/+1
| | | | | | | | We need to use the setuptools/pbr integration to kick off the doc build to ensure that pbr is triggered to generate the API documentation. Change-Id: I6d947a08f170c3379f8e7b9879077e60356b5505 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* tox: Whitelist rmStephen Finucane2017-04-201-0/+1
| | | | | Change-Id: I29e5ac6bd0aa02d0bca5b0d58e738c72626a5baa Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* [Fix gate]Update test requirementricolin2017-03-021-1/+1
| | | | | | | | | Since pbr already landed and the old version of hacking seems not work very well with pbr>=2, we should update it to match global requirement. Partial-Bug: #1668848 Change-Id: I11191b14edd3870b5a4443a2ef9b219cb46ddb36
* Add Python 3.5 classifier and venvCao Xuan Hoang2017-01-201-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: I8950bf3a7fe6c97bf973658e409e39953470f40d
* Add Constraints supportTony Breeds2016-12-211-3/+5
| | | | | | | | | | | | 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 python-designateclient. Change-Id: I2976e5615bd46449690072b09aeaad59c1674d44
* Add reno support for release notesKiall Mac Innes2016-05-161-0/+3
| | | | | | Setup Reno for generating release notes for Designate Client Change-Id: I37c3a2678095c50760bdfb197acf04b77e38686d
* Improve python-designateclient docsRahman Syed2016-04-201-0/+4
| | | | | | | | | | | | | * Improve index page to explain the difference between v1 and v2 CLI support. * Add a v2 examples page * Add all supported commands to v2 shell page * Add a tox task to build the docs * Fix a bug building the docs with an invalid html_static_path config Change-Id: Ie1e65c2d0cc8ad1b8b258e03114e19a943d1d19c Closes-Bug: 1572217
* Run the functional tests in a more verbose modePaul Glass2016-04-071-1/+2
| | | | | | | | Previously, the cli functional tests would not display each test case as they ran. This fixes that, similar to how the api functional tests do this. Change-Id: I899bafa4923dc9c80cad35cdb1f86cbf2e93038d
* 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: If022a76b2ee9a290033abc544c5fa56f1ea1e0ae Closes-bug: #1489059
* 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: I1d4edcdaba562d3c86aa58d2f4c84c455b655ebd
* Pass environment variables of proxy to toxsonu.kumar2015-12-041-0/+1
| | | | | | | | | When a development environment is under a proxy, tox is failed even if environment variables of the proxy are set. This patch fixes this problem. Change-Id: I9bc55bd2ebb546c783df38751c2cb16dbffcb7a5 Closes-Bug: #1465086
* Clearing out .pyc file before a tox runsonu.kumar2015-11-181-0/+4
| | | | Change-Id: I8d6ff9c2d29f0a3429d3e7bdffd4bd97f8024b3c
* Layout some functional tests for the V2 CLIPaul Glass2015-09-231-0/+10
| | | | Change-Id: Ib2d1261bcb0362c586c0aae4b9c5a8a563f07c71
* Sync tox.ini and add py34Kiall Mac Innes2015-05-291-2/+3
| | | | Change-Id: Ic72211290b8a8a0489c35293645f590b209ecca5
* Enable hacking check H104Christian Berendt2014-07-161-2/+1
| | | | | | | * [H104] Files with no code shouldn’t contain any license header nor comments, and must be left completely empty. Change-Id: Ic02858615833b516fd2c68a859146c8e018ae8e1
* Enabled hacking check H401Christian Berendt2014-07-101-2/+1
| | | | | | * [H401] Docstrings should not start with a space. Change-Id: I1fa248590c7e05ab92b30ae30af1cf107cdd3cc4
* Update hacking package, fix/ignore new style errorsJordan Cazamias2014-07-011-1/+11
| | | | | Change-Id: I49d26c3a9772c409b038b06e8256fb5823169c50 Implements: blueprint update-hacking
* Fix and enable gating on H306Dirk Mueller2013-12-161-1/+1
| | | | | | | | | H306, module imports should be in alphabetical order This hacking check actually improves readability quite a bit, as module imports can be sorted in groups (python stdlibs, external imports, in-module imports) Change-Id: I11dc9155fbfc84389f2a5956f393f705388f83ba
* Ensure beta versions are not downloaded from pypiKiall Mac Innes2013-09-181-1/+2
| | | | Change-Id: I636040826af81b6df4c8631e65876316fa10c081
* Add Hacking checksKiall Mac Innes2013-06-091-5/+10
| | | | Change-Id: I5435e83a8dbe3c3273b59ecb3c5f1be26c9bec96
* Migrate to PBRKiall Mac Innes2013-05-251-3/+2
| | | | Change-Id: I4f32b7c3ca7831becdd49f75a7fa48bfcfa7fe76
* Switch to flake8 and testrEndre Karlson2013-05-241-24/+18
| | | | Change-Id: Ia25ef86786895f376be410f74b9a30e3e8ff4243
* Have tox.ini actually run nosetestsKiall Mac Innes2013-03-041-1/+1
| | | | Change-Id: I3c93a6614ff71bfe2405257e2684fbc0fa05e76c
* Include setup-requires in tox.iniKiall Mac Innes2012-12-111-1/+2
| | | | Change-Id: Ie5e7b7b12e8ddcf82e41f747c25de84f4ccc4743
* Sync tox.ini with moniker repoKiall Mac Innes2012-11-181-4/+10
| | | | Change-Id: I11e972f82648052d48b305685b406af5671844a6
* Add PyFlakes tox envKiall Mac Innes2012-11-181-4/+13
| | | | Change-Id: I91af105b2b8427b71257c492f2b2830c5602aee2