summaryrefslogtreecommitdiff
path: root/tox.ini
Commit message (Collapse)AuthorAgeFilesLines
* Remove sixTakashi Kajinami2022-05-181-1/+0
| | | | | | | | This library no longer supports Python 2, thus usage of six can be removed. This also removes workaround about pickle library used in Python 2 only. Change-Id: I19d298cf0f402d65f0b142dea0bf35cf992332a9
* Merge "Use TOX_CONSTRAINTS_FILE"Zuul2021-04-161-1/+1
|\
| * Use TOX_CONSTRAINTS_FILEHervé Beraud2020-11-041-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>. [1] https://review.opendev.org/#/c/722814/ [2] https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file Change-Id: If9ddf23af3a63ae89ccd8af95fd34a074ce91812
* | Merge "Use py3 as the default runtime for tox"Zuul2021-04-161-1/+1
|\ \
| * | Use py3 as the default runtime for toxHervé Beraud2020-11-041-1/+1
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moving on py3 as the default runtime for tox to avoid to update this at each new cycle. Wallaby support officially the following runtimes [1]: - Python 3.6 - Python 3.8 During Victoria Python 3.7 was used as the default runtime [2] however this version isn't longer officially supported. [1] https://governance.openstack.org/tc/reference/runtimes/wallaby.html#python-runtimes-for-wallaby [2] https://governance.openstack.org/tc/reference/runtimes/victoria.html#python-runtimes-for-victoria Change-Id: I51a863bb5baeb51d5ec7488ddc9dd518ab56a002
* | Remove lower-constraints remnantswu.shiming2021-02-201-4/+0
|/ | | | | | These were missed in change: Ide5deeb1313552e76468281971f72b7db11d3801 Change-Id: I46311cfaee098dabdb063d6e97145424f707f21f
* Adding pre-commitHervé Beraud2020-09-081-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduced changes: - pre-commit config and rules. - Add pre-commit to pep8 gate, Flake8 is covered in the pre-commit hooks. - Applying fixes for pre-commit compliance in all code. Also commit hash will be used instead of version tags in pre-commit to prevend arbitrary code from running in developer's machines. pre-commit will be used to: - trailing whitespace; - Replaces or checks mixed line ending (mixed-line-ending); - Forbid files which have a UTF-8 byte-order marker (check-byte-order-marker); - Checks that non-binary executables have a proper shebang (check-executables-have-shebangs); - Check for files that contain merge conflict strings (check-merge-conflict); - Check for debugger imports and py37+ breakpoint() calls in python source (debug-statements); - Attempts to load all yaml files to verify syntax (check-yaml); - Run flake8 checks (flake8) (local) For further details about tests please refer to: https://github.com/pre-commit/pre-commit-hooks Change-Id: I3640bb690c552a428ae0e8250adffbc3a51a310e Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
* 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: I15b8430b4749bd68b5866f6041dd6c9166e795b1 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* [ussuri][goal] Drop python 2.7 support and testing4.0.0Andreas Jaeger2020-02-031-13/+5
| | | | | | | | | | | | | | | | OpenStack is dropping the py2.7 support in ussuri cycle. 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 Remove cruft from setup.cfg. Update hacking so that it works with python3 and silence new warnings. Change-Id: Id224fc09ac36d2a84e82347530bb5e5d30665803
* Add Python 3 Train unit testsCorey Bryant2019-07-051-9/+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: Iee35ef61a46fd6a318f9b0b1d4e6436d5fd3c008 Story: #2005924 Task: #34234
* Add local bindep.txtElod Illes2019-06-261-0/+12
| | | | | | | | | | | | | As it was announced [1] global bindep-fallback.txt was removed and now projects need to have a local bindep.txt to be able to install binary dependencies for testing. In test jobs the script tools/test-setup.sh is called which requires mysql and postgres servers and clients to be installed. [1] http://lists.openstack.org/pipermail/openstack-discuss/2019-June/007272.html Change-Id: I08797a99c7ba019a4b2dd640a83f45fea8e589bd
* update git.openstack.org to opendev3.7.0liuwei2019-05-221-1/+1
| | | | Change-Id: Ie9f1ca14eed287f3c25553d029d4a4b2ca5274d0
* Dropping the py35 testingGhanshyam Mann2019-05-221-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: I0fb9547a3156199a6d2ca66258f7c6afab6d0753
* Remove unsused tools/tox_install.shAndreas Jaeger2019-05-091-3/+0
| | | | | | | | | | | | The file is not used anymore, remove it. The last usage of the file was removed in I4dae402fe37015f0f512d5e9a6426d5f39526347. Remove also some variables from tox.ini that were used for tox_install in the past. Change-Id: I5797efabe1e32df0ad53513400288bd26f833315
* add python 3.7 unit test jobSahid Orentino Ferdjaoui2019-02-261-0/+1
| | | | | | | | | | | See ML discussion here [1] for context. [1] http://lists.openstack.org/pipermail/openstack-dev/2018-October/135626.html Story: #2004073 Co-authored-by: Corey Bryant <corey.bryant@canonical.com> Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com> Change-Id: Ibc7749261119752c4e3a4854c7ce5be52a3b5d26
* add proper pydot3 dependencyDoug Hellmann2018-08-141-12/+0
| | | | | | | | | Move the dependency out of tox.ini and into requirements.txt where it can be managed properly. Depends-On: https://review.openstack.org/590103 Change-Id: Ic69a4c5beb1aed2e49d2f767cb46c324fe0df0f5 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* Switch to use stestr for unit testHa Manh Dong2018-08-131-2/+9
| | | | | | | | | | | According to Openstack summit session [1], stestr is maintained project to which all Openstack projects should migrate. So we should switch to stestr. [1] https://etherpad.openstack.org/p/YVR-python-pti Depends-On: https://review.openstack.org/#/c/589728/ Change-Id: I943a73e22eb23bd52c3a96e75c98b88665474e67
* Add pydot test dependencyDirk Mueller2018-08-091-1/+10
| | | | | | | | | | | We need to use pydot rather than pydot3 because of a broken version comparison in networkx, where it rejects the lower version number of pydot3. Without this patch the taskflow unit tests which use dot for rendering graphics are no longer runnable. Change-Id: I676e4d76627b3ecd0e4a9b896b2b93d652ebb25d
* Merge "give pep8 and docs environments all of the dependencies they need"Zuul2018-06-061-1/+2
|\
| * give pep8 and docs environments all of the dependencies they needDoug Hellmann2018-05-141-1/+2
| | | | | | | | | | Change-Id: Iebd7a1cd0a1ff9eee44fb2a20909f56db90d6430 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* | Merge "Drop py34 target in tox.ini"Zuul2018-06-061-1/+0
|\ \
| * | Drop py34 target in tox.iniwangqi2018-05-281-1/+0
| |/ | | | | | | | | | | | | We support py35 now.so it is no need to keep the supoort for py34. Change-Id: I3dbc5d63c0a4ad5ae9860983cf4d06fb91f1a151
* | fix tox python3 overridesDoug Hellmann2018-06-061-1/+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: Id7f0cc773ddc6bdcf464574fc7faa9216db71e09 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* stop using tox_install.shDoug Hellmann2018-04-181-2/+3
| | | | | | | | | | | | Duplicate the dependencies that are listed in extras and place them in a test-requirements.txt file so we can install them using the constraints list. In order to add the new requirements file, we have to make the constraints and requirements match each other and the global settings. Change-Id: I4dae402fe37015f0f512d5e9a6426d5f39526347 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* only run doc8 as part of pep8 test jobDoug Hellmann2018-04-171-1/+0
| | | | | Change-Id: Id7e8b29fe5ffb9aa410985ce0e5914bdcf4e4df0 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* standardize indentation in tox.iniDoug Hellmann2018-04-171-27/+37
| | | | | | | Try to tidy up the formatting of the configuration file. Change-Id: Ic492ee63f228b486da492088cd7fcb71d784b2e3 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* set default python to python3Doug Hellmann2018-04-171-7/+3
| | | | | | | | | | | | | | | | | | Set the default python to python3 except for the py27 environment. We have to set that explicitly to override the new default. Have py27 and py3* jobs run same commands by removing the commands entry for py27. The pep8 rules under python 3 are different, so we need to fix a couple of issues with blank space. The E721 rule is ignored entirely because we are not yet using a version of flake8 that supports ignoring individual rules on specific lines, although the instructions for that are added so that when we upgrade flake8 to a newer version we can remove the global rule. Change-Id: Id236b0632a83a188958130d04f1e9c476c5ace65 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* add lower-constraints jobDoug Hellmann2018-03-241-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: I1a0941d79d112b6f4fde22885df985e7caaeb2c3 Depends-On: https://review.openstack.org/555034 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* Add doc8 to pep8 environmentAndreas Jaeger2017-12-201-1/+10
| | | | | | | | | | | | | | | OpenStack CI does not run the docs environment, it's just for developer convenience. Add the doc8 to the general linter environment so that it's run during automatic testing. The general linter environment is pep8. Disable testing of history.rst since generated ChangeLog file gives an error: "doc/source/user/history.rst:150: D000 Inline emphasis start-string without end-string." Readd sphinx to test environment so that doc8 passes tests. Change-Id: Ia81eac686ff3a82273b1d306596c4731c86c36e6
* Use doc/requirements.txtAndreas Jaeger2017-12-201-2/+6
| | | | | | | | | | | | | | | The infra jobs expect documentation requirements in either doc/requirements.txt or test-requirements.txt. Since neither is available, they currently fail. Move doc requirements to doc/requirements.txt and use that to fix releasenotes build. Note that doc/requirements.txt needs some requirements for code analysis of taskflow. For the docs environment - which is a developer convenience - use the same command that is used by OpenStack CI. Change-Id: Iec65211e5059a4afdd88a45e2c1ac535b8ec97fe
* Add Constraints supportTony Breeds2016-12-211-2/+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 taskflow. Change-Id: I89a14733295748fff2a30f038084d75596204083
* Fix typo in tox.iniChuck Short2016-11-031-1/+1
| | | | | | | Fix typo in tox.ini Change-Id: I442441cdef8623afda7e5d7b91b50ddc562a06e8 Signed-off-by: Chuck Short <chuck.short@canonical.com>
* Add reno for release notes managementChuck Short2016-10-251-0/+3
| | | | | | | | The release management team have indicated this is their preferred way to collect release notes in future. Change-Id: I98383e53b1d78b0bb01b16642d8b8a1b69ad3769 Signed-off-by: Chuck Short <chuck.short@canonical.com>
* Change dependency to use flavorsJoshua Harlow2016-07-261-1/+3
| | | | | | | This makes sure we install the correct and only the correct dependencies when installing taskflow, based on the driver one wants to use. Change-Id: Id40f73412c76a16152b9a2f853ef9cbbd9e9e231
* Add Python 3.5 classifier and venvChangBo Guo(gcb)2016-07-121-0/+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: I006650a6e67fd54c4823ef560ee26322c2c13428
* 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: I1f758ea8dbac08cef1fa5fc34c0fd21d55a71385
* Remove python 2.6 and cleanup tox.iniDavanum Srinivas2015-11-161-7/+1
| | | | | | | | | | | | | | | | * 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: I3564e6d2dfaf64b573382d776e6a79a442750139
* Merge "Remove dummy/placeholder 'ChangeLog' as its not needed"Jenkins2015-09-251-2/+2
|\
| * Remove dummy/placeholder 'ChangeLog' as its not neededJoshua Harlow2015-09-241-2/+2
| | | | | | | | | | | | | | | | Just enforce that `python setup.py build_sphinx` will be the way to build docs (which also builds a 'ChangeLog') so we don't need to maintain a dummy file here anymore. Change-Id: Icec9173c7970d84c105f151ac74dc9080ab3b1f7
* | Remove ./taskflow/openstack/common as it no longer existsJoshua Harlow2015-09-241-1/+1
|/ | | | Change-Id: I3123a6d7cf4323fb111c2b4c5545fd6a1d2fd77b
* Move doc8 to being a normal test requirement in test-requirements.txtJoshua Harlow2015-07-161-10/+2
| | | | Change-Id: I6d81cc86d422be359f1b2339943bdfe6067ee5da
* Remove customized pyX.Y tox requirementsJoshua Harlow2015-05-291-18/+0
| | | | | | | | | | | | | | | | Instead of having custom pyX.Y that test a specific set of requirements and similar with other tox envs, just enable more test-requirements directly, in a later change we will use environment markers to denote the differences. Also tweaks the jobboard example to bypass/hack a needed eventlet fix into it so that it actually runs without breaking/never finishing. A TODO note has been left to eventually (someday?) remove this hack when it is no longer needed. Part of fix for bug 1445827 Change-Id: I0fb669f0bdfbe4fe81d89234173f2c3ac4d06de6
* Remove custom py26/py27 tox venvs no longer usedJoshua Harlow2015-05-121-13/+0
| | | | Change-Id: I522ce82923837e9fd9d0dcf90e70916e85bc65ad
* Remove tox py33 environment no longer usedJoshua Harlow2015-05-091-6/+0
| | | | | | | | | This py33 environment is no longer being tested with in an automated fashion (since the py34 environment replaces it) so we should just remove it from the tox ini file. Change-Id: I3a4040b8a3c656b93b7e0ff2c20bed4119ac7c74
* Fix post coverage job option not recognizedJoshua Harlow2015-05-021-1/+1
| | | | | | | | | | | Remove option --coverage-package-name as it does not appear to be a currently valid option. Example broken jenkins job: https://jenkins05.openstack.org/job/taskflow-coverage/68 Change-Id: I63c501c2e4b1f83c5ca0efe192d9534cc156903d
* Add states generating venv and use pydot2Joshua Harlow2015-04-161-0/+7
| | | | | | | | Make it easier for others to create the states diagrams and use a non-broken pydot fork that is actually being maintained (pydot2). Change-Id: Ia16c53a513159a8f15c5d7c75e22553dc1273b37
* Just unify having a single requirements.txt fileJoshua Harlow2015-03-291-8/+3
| | | | | | | | | The difference between the py2 and py3 requirements file is marginal and it does not harm py3 from having additional dependencies that aren't used anyway so just have a single requirements file. Change-Id: I969ea61f68a2c7c2d7fb4d38e6e1d3daa59b0d40
* Ensure we have a 'coverage-package-name'Joshua Harlow2015-03-151-1/+1
| | | | Change-Id: I0963d1e1a02e03ef20edc7cdb1373f4f77b6b1a9
* Move to hacking 0.10Joe Gordon2015-02-121-2/+0
| | | | | | | | Release notes: http://lists.openstack.org/pipermail/openstack-dev/2015-January/054165.html Remove deleted hacking rules from tox.ini (H904) Change-Id: I9a7130c700e2e49ee95fd16bf48af4697e78312d
* Fix coverage environmentIvan Melnikov2015-01-231-0/+1
| | | | | | | To run coverage report we need 'coverage' package, which should be added to dependency list for corresponding tox environment. Change-Id: I546b5afb1501773351fc2233bb12858497970105