summaryrefslogtreecommitdiff
path: root/tox.ini
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Bump tox minversion to 3.18.0"5.0.0Zuul2022-06-031-3/+3
|\
| * Bump tox minversion to 3.18.0Takashi Kajinami2022-05-221-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Since tox 3.18.0, the whitelist_externals option has been deprecated in favor of the new allow_list_externals option[1]. This change bumps the minversion of tox so that we can replace the deprecated option. [1] https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23 Change-Id: I5aa8d079fc8e132cd90293b889ed53cb7d46da19
* | Merge "Use TOX_CONSTRAINTS_FILE"4.5.0Zuul2022-05-061-1/+1
|\ \
| * | Use TOX_CONSTRAINTS_FILEzhangboye2022-04-291-1/+1
| |/ | | | | | | | | | | | | | | 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: I432a16bad7fbba98a72a5c8dd5129c837097e619
* | Drop lower-constraints.txt and its testingGhanshyam Mann2022-04-301-5/+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: I2eea42d3909896ea8606dc9cde681b2cc1cfb62f
* Merge "Update the minversion parameter."Zuul2020-05-181-4/+2
|\
| * Update the minversion parameter.Daniel Bengtsson2020-04-101-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | 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: I8c6081d58e22db10c62e2706a8fcddfccb3fa69d
* | 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: I35b2404890339a4e1f18adf49a2de58d45bb1523 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* | Fix docs publishingAndreas Jaeger2020-04-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Use sphinx-build so that the output happens in the right place. Remove ChangeLog, instead link to the release notes. Use apidoc for API doc building. Fix main index page display so that title has higher level, use link to OpenDev. Change-Id: Iaa8d7f2143d411be31ad10b546455f18015566f3
* | Hacking: Fix F601Andreas Jaeger2020-03-311-2/+1
|/ | | | | | | Fix F601 failures: F601 dictionary key '...' repeated with different values Change-Id: I4c12f5a2348371966215e1ae05b726e6d04b0c8f
* Update hacking for Python3Andreas Jaeger2020-03-311-1/+3
| | | | | | | | | The repo is Python 3 now, so update hacking to version 3.0 which supports Python 3. Fix problems found. Change-Id: Ic161a8f88c28d88898863e5b9d9380016fbb0d08
* [ussuri][goal] Drop python 2.7 support and testingVishakha Agarwal2020-01-221-13/+4
| | | | | | | | | | | | | | | | OpenStack is dropping the py2.7 support in ussuri cycle. python-keystoneclient 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://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html Change-Id: Ib6b6f7ca394dfa78cd5c8aeac0941dd625efef3b
* Generate pdf documentationVishakha Agarwal2019-09-041-0/+12
| | | | | | | | | This patch adds a new tox job/command for building the pdf version of documentation. tox -epdf-docs Change-Id: I0c0ef99190ea2a834bfdb47eb443b88a93bc802c
* Update the constraints urlpengyuesheng2019-07-031-1/+1
| | | | | | For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html Change-Id: Ia23ddddb2c1488ea6bc036507f13e6adcf52108e
* Add Python 3 Train unit testsCorey Bryant2019-06-281-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: I88c28ddf9601bb7b69b663a44562ab2c118050de Story: #2005924 Task: #34215
* Replace git.openstack.org URLs with opendev.org URLsjacky062019-04-241-1/+1
| | | | | Change-Id: Ifdc21541715cc03b0f6eac5a27a7ee3009d53046 Closes-Bug: #1826197
* Update the min version of toxVishakha Agarwal2019-04-091-1/+1
| | | | | | | | | In Train, we will use python3.6 and 3.7 for which the minimum tox version required is 2.5[1] [1]https://tox.readthedocs.io/en/latest/changelog.html#v2-6-0-2017-02-04 Change-Id: Idb9a12258fb47a20b4afea7a2d9780b776d7a990
* Drop py35 jobsVishakha Agarwal2019-03-011-1/+1
| | | | | | | | | | | | 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. Also correct setup.cfg and tox.ini to reflect the current supported Python versions. https://governance.openstack.org/tc/reference/runtimes/stein.html#python-runtime-for-stein Change-Id: I67c892e0b5afaf8e603a77102e06567a1bfe2eb6
* Merge "Add py36 tox environment"Zuul2018-11-191-1/+1
|\
| * Add py36 tox environmentColleen Murphy2018-11-061-1/+1
| | | | | | | | | | | | | | | | We already run python3.6 unit tests in CI. Add the py36 environment to the tox file so that developers with python3.6 available locally can opt into running that version too. Change-Id: I28e96e5922b73f270b0e77fff91e4343ad06a852
* | Use python3 for functional testsColleen Murphy2018-11-061-0/+1
| | | | | | | | | | | | | | | | | | | | Switch to python3 for the tox basepython and for the devstack setup for functional tests to fulfill the python3-first goal[1]. We still have unit test coverage for python2. [1] https://governance.openstack.org/tc/goals/stein/python3-first.html Change-Id: If82196ce6a2fffe6a43bb59077c6bdd712276958
* | 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: Ie0b56212cad8d9756c2043a4483c607101491a14
* Switch to stestrVu Cong Tuan2018-07-111-3/+9
| | | | | | | | | | 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: I6484b605b1a7b8bcc4589170d2645f7cb0ca66f6
* fix tox python3 overridesDoug Hellmann2018-06-081-0/+8
| | | | | | | | | | | | | | | | 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: I0637976fc3097ff5052e38cf8a9afc7a3330034f Depends-On: I2cbf2e63a9d93c232b6928acf002a45b7fbcec8e Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* add lower-constraints job3.16.0Doug Hellmann2018-04-091-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: I27d40ced965e35f5edcb1200faa5d1693cc12544 Depends-On: https://review.openstack.org/555034 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* Create doc/requirements.txtQinglinCheng2017-12-191-2/+3
| | | | | | | | | | | | For compliance with the Project Testing Interface as described in: https://governance.openstack.org/tc/reference/project-testing-interface.html Refer to: http://lists.openstack.org/pipermail/openstack-dev/2017-November/124815.html Change-Id: Iaa1530f19049883fc9fbce66f1fcc82ded559a07
* 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: Iee9939776d5552b818aec5cab0b8c2a1133f74b9
* Merge "remove hacking checks from keystoneclient"Jenkins2017-01-061-1/+0
|\
| * remove hacking checks from keystoneclientSteve Martinelli2017-01-061-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the only hacking check in keystoneclient is related to older versions of oslo libraries, which are no longer supported by keystoneclient, for example: $ pip freeze | grep oslo.utils oslo.utils==3.18.0 $ python >>> import oslo.utils Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named oslo.utils >>> import oslo_utils >>> Let's just remove the hacking check since theres no way someone could incorrectly import the older versions. Closes-Bug: 1652458 Signed-off-by: Adam Williamson <awilliam@redhat.com> Change-Id: I14165903b46d2fc26e8c9de591917893f58516db
* | 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: Id32fca50f5f1834175b6003be61f2cc4c8b9aeeb
* Add Constraints supportTony Breeds2016-12-211-3/+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 python-keystoneclient. Change-Id: I8933945ab8948c43022963ba6cff4d38cec5a04f
* Enable code coverage report in console outputpawnesh.kumar2016-11-101-0/+1
| | | | | | | | | Change the behaviour of tox -e cover to also print the coverage report to the console, rather than only creating html files that contain the report. This is a convenience change and should provide a better user experience. Change-Id: I10dca81fa600083ec5e0471e88aaa712a1e68bf6
* List system dependencies for running common testsAndreas Jaeger2016-06-281-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: Ifa3d417d9c3f8c172980a593c0a5a4a29987366a
* PEP257: Ignore D203 because it was deprecatedDolph Mathews2016-06-031-1/+2
| | | | | | | | | | | | | PEP257's D203 check ensures that you have a blank line before class docstrings. This rule directly conflicts with D211 (no blank lines before class docstrings), which is intended to supersede D203. The original language in PEP257 which D203 was based on was actually removed from PEP257 by Guido here: https://hg.python.org/peps/rev/9b715d8246db Change-Id: Icc048b947acea8f655d00540c221123b906e7545
* Trivial: ignore openstack/common in flake8 exclude listChangBo Guo(gcb)2016-05-111-1/+1
| | | | | | | The directory openstack/common doesn't exist any more, so remove it from flake8 exclude list. Change-Id: I4ec588c5c0a2cf1b3bf06b4754889dc27d391b33
* Fixing D105 PEP257Navid Pustchi2016-05-041-2/+1
| | | | | | | | Currently tox ignores D105. D105: Missing docstring in magic method. This change removes it and make keystoneclient docstring compliant with it. Change-Id: I34dfc164891880425f542f8f8aa3426ec8640c96
* Fixing D200 PEP257 violation.Navid Pustchi2016-05-041-2/+1
| | | | | | | | Currently tox ignores D200. D200: One-line docstring should fit on one line with quotes. This change removes D200 ignore in tox and fix violations. Change-Id: Icbf8cc1d4f1c00daeedeffe4397369f9e468b191
* Fixing D202 and D203 PEP257 violation.Navid Pustchi2016-05-041-3/+1
| | | | | | | | | Currently tox ignores D202 and D203. D202: No blank lines allowed after function docstring. D203: 1 blank required before class docstring. This change removes D202 and D203 ignores in tox and fix violations. Change-Id: I97ef88c9cfd56774e47f789cbbcf8ccfe85d7737
* Fixing D204, D205, and D207 PEP257 violation.Navid Pustchi2016-05-041-4/+1
| | | | | | | | | | Currently tox ignores D204, D205, and D207. D204: 1 blank required after class docstring. D205: Blank line required between one-line summary and description. D207: Docstring is under-indented. This change removes D204, D205, and D207 ignores in tox and fix violations. Change-Id: Id20d216fbd7647d468859b960088aac61c582d9b
* Fixing D208 PEP257 violation.Navid Pustchi2016-05-031-2/+1
| | | | | | | | Currently tox ignores D208. D208: Docstring is over-indented. This change removes D208 ignore and fix violations. Change-Id: Ifec21c7602468b2a60727b64d27e7f14d765638c
* Fixing D211 PEP257 violation.Navid Pustchi2016-05-021-2/+1
| | | | | | | | Currently tox ignores D211. D211: No blank lines allowed before class docstring This change removes D211 ignore and fix violations. Change-Id: I79404110896ced7f79999b8c099e2a70b01ec968
* Fixing D301 PEP257 violation.Navid Pustchi2016-05-021-2/+1
| | | | | | | | Currently tox ignores D301. D301: Use r”“” if any backslashes in adocstring. This change removes D301 ignore and fix violations. Change-Id: I9dbe2c9d59e2c2d8585a53840a579a9b9c57a09c
* Fix D400 PEP257 violation.Navid Pustchi2016-04-231-2/+1
| | | | | | | | Currently tox ignores D400. D400: First line should end with a period. This change removes it and make keystoneclient docstrings compliant with it. Change-Id: I29ecb4c58bb03c0b9a3be0b7a74d18fb06a350f2
* Fix D401 PEP257 violation.Navid Pustchi2016-04-231-2/+1
| | | | | | | | Currently tox ignores D401. 401: First line should be in imperative mood. This change removes it and make keystoneclient docstrings compliant with it. Change-Id: If34ff12d18390b357342cf29f2d116dd3c86a44d
* Removing bandit.yaml in favor of defaultsChristopher J Schaefer2016-04-191-2/+2
| | | | | | | | | | | Removing old configuration options for build-in defaults of latest bandit functionality. Also, marking flagged items with _# nosec_ with a descriptive comment on why the code is acceptable as is. Co-Authored-By: Christopher J Schaefer <cjschaef@us.ibm.com> Co-Authored-By: Tom Cocozzello <tjcocozz@us.ibm.com> Change-Id: I138ebd46a8be195177361a9c3306bb70423b639d
* Add back a bandit tox jobEric Brown2016-02-181-0/+5
| | | | | | | | The bandit project uses an integration test to ensure it doesn't break other projects by introducing new changes. To run this integration, it is necessary to have a common tox target of 'bandit' Change-Id: If44008f6a48134a8af38e6794fb87ae09aac57b4
* Make pep8 *the* linting interfaceAndreas Jaeger2016-02-101-9/+2
| | | | | | | | | | According to the PTI (=Python Test Interface, http://governance.openstack.org/reference/cti/python_cti.html), pep8 is the interface for codestyle checks. Move all tests from linters to pep8. Change-Id: If50b7471112151245d383b4a1d0056ce9041adf2 Depends-On: I9346e4bf8c3a50de088c6a157f0d871c0a9333a1
* Bandit profile updatesBrant Knudson2016-01-271-1/+1
| | | | | | | | | | We'd like to use the same "gate" profile for all OpenStack gate jobs, so the "keystone_conservative" profile which we were running as part of the gate is change to "gate. The other profiles that aren't used as part of the gate are removed. Change-Id: I931dc957b4659806027d45dfec5e61e9c7973564
* Merge "Remove bandit tox environment"Jenkins2016-01-271-4/+0
|\
| * Remove bandit tox environmentAndreas Jaeger2016-01-181-4/+0
| | | | | | | | | | | | | | bandit is now part of linters environment, remove it from tox.ini. Depends-On: I67ebec070cd0804d310534712a3a3f382df7e48f Change-Id: Ie59ee56f15a857926eef4a7b466637686e116b07