summaryrefslogtreecommitdiff
path: root/tox.ini
Commit message (Collapse)AuthorAgeFilesLines
* Fix pep8 gateDave Wilde2023-04-211-2/+3
| | | | | | | | | | | | This updates the test-requirements to a more recent flake8-docstrings version. I also added an ignore for __init__ methods, this may be something that we want to revisit but are not needed for now. We also slip in a little change that renames whitelist to allowlist. It is also a gate failure and thus is circular with the pep8 fix: neither can be merged separately. Change-Id: Id12f6e3b5d603531744d02f7bafab0b80696751e
* Add doc/requirementsHervé Beraud2022-09-161-0/+2
| | | | | | | | | | | | | | | | | | | | | | | We need to specify doc requirements in doc/requirements.txt to avoid problems with the pip resolver [1] for the release team [2][3]. Removing specific doc requirements from test-requirements.txt. The problem here is that this repos haven't doc/requirements.txt file and by default in this case zuul will use the test-requirements.txt file to pull requirements [4]. This requirements file contains extra requirements like flake8 that collided with those allowed in our job environment and so the new pip resolver fails to install these requirements and the job exits in error. This project meet the conditions leading to the bug. [1] http://lists.openstack.org/pipermail/release-job-failures/2021-January/001500.html [2] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019611.html [3] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019612.html [4] https://opendev.org/zuul/zuul-jobs/src/branch/master/roles/ensure-sphinx/tasks/main.yaml#L36 Change-Id: I11c1f9816ad93f7c3a7d9de5894746d48154e18d
* Drop lower-constraints.txt and its testingGhanshyam Mann2022-04-301-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: Ia3f66b6805704c254295fd663f0260d5d963ed66
* Update hacking for Python3Andreas Jaeger2020-03-301-1/+3
| | | | | | | | | | The repo is Python 3 now, so update hacking to version 3.0 which supports Python 3. Blacklist W503, W504 Fix other problems found Change-Id: Ic0391ae45b9d6d1ee5e2c1df81d85e655250a51d
* Drop python 2.7 support and testingpengyuesheng2020-02-031-10/+9
| | | | | | | | | | | | | | | | | | Ussuri Communtiy-wide goal: https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html Include small cleanups: * remove install_command from tox.ini, this is the default * Use sphinx-build as modern way to run sphinx, remove setup.cfg settings for build-sphinx * Use sphinxcontrib-apidoc for docs with newer sphinx * Remove obsolete doc/source/conf.py broken * Add python-requires to setup.cfg to make Python 3.6 requirement explicit * Remove obsolete pbr setup-hooks Co-Authored-By: Andreas Jaeger <aj@suse.com> Change-Id: Iec8c47b82022b616b8361651bf23f853b0ce5624
* Update the constraints urlpengyuesheng2019-09-291-1/+1
| | | | | | For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html Change-Id: I57071420ae34395f9c56ffe50481138417bbe632
* 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 Depends-On: https://review.opendev.org/669543 Change-Id: I3555792aff294a1ea533464ef78a1cc8bf545c82 Story: #2005924 Task: #34215
* Add py37 tox env and drop py35Vishakha Agarwal2019-02-281-1/+1
| | | | | | | | | | | | With python3.7 jobs added to the Zuul jobs, it makes sense to add this to the tox config too so that developers can run python3.7 tests as well. Python 3.5 was the target runtime for the Rocky release. The current target py3 runtime for Stein is Python 3.6, so there is no reason to keep testing against the older version. Change-Id: Icada08448d9bf3cc0f1d522d93b07d8789adad14
* Merge "Use templates for cover and lower-constraints"Zuul2018-10-121-1/+1
|\
| * Use templates for cover and lower-constraintsAndreas Jaeger2018-09-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Small cleanups: * Use openstack-tox-cover template, this runs the cover job in the check queue only. Remove individual cover jobs. * Use openstack-lower-constraints-jobs template, remove individual jobs. * Sort list of templates Fix cover job, $project is not expanded in tox.ini and thus the job fails. Use "pycadf" instead. Change-Id: I72da23a0d6c6b3cc87e66d94c419668fce66e704
* | 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: Ib74244eea0ff4fa37dc3308360691059c6fa448b
* Switch to stestrVu Cong Tuan2018-07-241-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: Ib4c7bb59c92946c3e8b257cbf1ce2f44cb1c40ed
* fix tox python3 overridesDoug Hellmann2018-06-061-0/+5
| | | | | | | | | | | | | | | 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: I370e66f1a4f4a0af629afa109d51d095a4700327 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* add lower-constraints jobDoug Hellmann2018-05-101-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: I44a46d05b5818c30657f123ae714b4189c506aae Depends-On: https://review.openstack.org/555034 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* Avoid tox_install.sh for constraints supportqueens-em2.7.0Andreas Jaeger2017-12-021-6/+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: I4e847f5ec2eb8ab9ff552618985b88bc1b4f8aca
* Remove references to Python 3.4ocata-em2.5.0Eric 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: I381f8582b79d691aba2a4e98b1611f0ddcd78e73
* 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 pycadf. Change-Id: I385d89d2ce2ecc85532f4acc31ff1c975a150178
* Clean oslo.i18nTony Xu2016-09-271-4/+0
| | | | | | Remove pycadf/_i18n.py file Change-Id: Iffccecba9d4579a4f75acfbde8f5ed58d18a42f2
* Don't include openstack/common in flake8 exclude listlilintan2016-07-111-1/+1
| | | | | | | | The directory openstack/common was used to keep codes from oslo-incubator, we have retired oslo-incubator, so don't use this directory any more. Change-Id: I52f0a8a12c37615669853535bff403c2728aee43
* Add docstring validationDolph Mathews2016-02-121-1/+15
| | | | | | | | | | | | This introduces a linter for PEP257 to avoid trivial nitpicking of docstrings in code reviews. Because flake8_docstrings simply provides a plugin to add pep257 to flake8, you can run it via `tox -e pep8`. PEP257 checks which we are currently violating are ignored in tox.ini. We can remove them from the ignored list as they are fixed. Related-Bug: 1501544 Change-Id: I01ebad7b70cf61dd80d3c06c6808d8178fbdd634
* remove suport for py33reedip2016-01-061-1/+1
| | | | | | | | Python 3.3 is not supported from Mitaka, as per Infra, therefore removing the support for the same. Change-Id: I27436e05e373c6a5d1d71ff60cd15e0db05e87df Closes-Bug: #1526170
* 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: I461e4f0d931a9bbc37670dc2cd70d94f86acfb24 Closes-bug: #1489059
* Remove python 2.6 and cleanup tox.iniDavanum Srinivas2015-11-161-8/+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: I49d14fc878521e2b6fd4bd13dfd12f99a245b1fd
* Document and update existing hacking violationsDolph Mathews2015-10-021-1/+3
| | | | | | | There were no violations of H409, so I removed it from the list of ignored violations. Change-Id: If01de70cf83a4ca4830e2236582cbe72f15b85b4
* sync oslogordon chung2014-12-101-1/+4
| | | | | | | | | this patch also corrects an issue where we incorrectly referenced common._i18n this patch syncs to: Ia1820495a989f4f84530ab83f2d87d53a9f761df Change-Id: Ia192869d7e92732000b9033b09b97316ba5d5028
* Use correct name of oslo debugger scriptSteve Martinelli2014-10-211-1/+1
| | | | | | | As of oslotest 1.2.0 the oslo debugger script dropped the .sh extension. This patch corrects the use the script name in tox.ini Change-Id: I0b814f5136e2858ac53ba45db523790d220a6b88
* Remove dependencies from docs test env in tox.iniSteve Martinelli2014-10-021-2/+0
| | | | | | | | Because the docs environment inherits from the greater 'testenv', which has the dependencies already mentioned, there is no need to have them listed again for the 'docs' environment. Change-Id: I83830e47b44cab2a9d44a67827f3f28b687c5fdd
* Use oslo_debug_helper and remove our own versionSteve Martinelli2014-09-111-2/+1
| | | | | | | | | With the latest version of oslotest, we can now take advantage of a common oslo_debug_helper script. We can now remove our own homebrewed version, minor changes to tox.ini were needed. Change-Id: Ifd5d0454e424ecfca0db30d3d3f6350ba7db1b60
* Work toward Python 3.4 support and testingJeremy Stanley2014-09-031-1/+1
| | | | Change-Id: I52b161c8612df50174cb877424aaeb805622211c
* Merge "Enable PEP8 checks E128, E251 and E265"Jenkins2014-08-111-1/+1
|\
| * Enable PEP8 checks E128, E251 and E265Christian Berendt2014-08-011-1/+1
| | | | | | | | | | | | | | | | * E128 continuation line under-indented for visual indent * E251 unexpected spaces around keyword / parameter equals * E265 block comment should start with '# ' Change-Id: Ie4b7d8a392c8e8bed58c171b5fc1b9db308036bc
* | Debug env for toxBrad Topol2014-07-281-0/+4
|/ | | | | | | | | | | | | | | | | | Running a test with pdb was difficult because tox captures output and causes pdb prompt to quit. Tips for how to run with debug are provided here: https://wiki.openstack.org/wiki/Testr#Debugging_.28pdb.29_Tests This change puts these commands into a debug env in tox.ini so you can do a command like tox -e debug pycadf.tests.test_cadf_spec and when it hits your breakpoint you'll get the debug prompt. Change-Id: I53893d618cd60c0456368088497542db7e4a6eac Co-Authored-By: Brant Knudson <bknudson@us.ibm.com>
* Enabled hacking checks H305 and H307Christian Berendt2014-07-171-1/+1
| | | | | | | * H305 imports not grouped correctly * H307 like imports should be grouped together Change-Id: Ied0e83b9b37dcb7a7a60a653093c3fa0d8e56226
* Bump hacking to 0.9.x seriesDavanum Srinivas2014-06-121-0/+1
| | | | | | | | In order to keep this patch to just a requirements bump, ignore new and stricter hacking rules that are being triggered. Fixing up the code and turning these on is out of scope of this patch and is for future patches. Change-Id: Id92d86233774000012f325c981df6772f64c33dd
* pycadf documentationGordon Chung2014-03-171-0/+5
| | | | | | | | add basic documentation on CADF spec. Closes-Bug: #1279951 Change-Id: Ie1703d9b5109d8275377857e5362e3b09385f647 Implements: blueprint document-pycadf
* oslo common code sync and requirements cleanupGordon Chung2014-02-201-1/+1
| | | | | | | clean up requirements and pull in oslo code required for audit middleware Change-Id: Ia9c5bb9b6468e9d859d6b1f5a88798e72b3dc8ae
* Updated from global requirementsGordon Chung2013-10-221-2/+1
| | | | Change-Id: I93b64953819fb83af78bd34a93c51419da599e90
* update tox to 1.6Gordon Chung2013-09-171-1/+4
| | | | | | | | ceilometer uses 1.6, let's utilise it as well to avoid any incompatibility when manually running tests. Change-Id: I9a3323310020381ceeebe7aa86219eff32b92ec1 Fixes: Bug#1226853
* initial project setupDoug Hellmann2013-08-021-0/+25
Change-Id: I1bbe058cf162549a517814e02a3e8bed70b5dbf8