summaryrefslogtreecommitdiff
path: root/tox.ini
Commit message (Collapse)AuthorAgeFilesLines
* Add py37 check/gate jobs; add py37 to default tox env listTim Burke2019-02-271-1/+1
| | | | Change-Id: Ifbc6dc731df20b4bba905a110e71ea5c9cc52c0f
* Merge "Update hacking version"Zuul2019-02-221-1/+1
|\
| * Update hacking versionZhijunWei2019-01-031-1/+1
| | | | | | | | | | | | | | 1. update hacking version to latest 2. fix pep8 failed Change-Id: Ifc3bfeff4038c93d8c8cf2c9d7814c3003e73504
* | Merge "Add python 3.6 unit test job"Zuul2019-02-141-1/+1
|\ \ | |/ |/|
| * Add python 3.6 unit test jobNguyen Hai Truong2018-11-061-1/+1
| | | | | | | | | | | | | | | | | | | | This is a mechanically generated patch to add a unit test job running under Python 3.6 as part of the python3-first goal. See the python3-first goal document for details: https://governance.openstack.org/tc/goals/stein/python3-first.html Change-Id: Iae4acab507e45a379c8af129912e13621a2a553b
* | Merge "Update reno for stable/rocky"Zuul2018-11-091-1/+1
|\ \ | |/ |/|
| * Update reno for stable/rockyOpenStack Release Bot2018-11-091-1/+1
| | | | | | | | Change-Id: I840f4363dfdb3b485dbaf768c71fbcc5227c330f
* | Switch to stestrVu Cong Tuan2018-11-051-6/+17
| | | | | | | | | | | | | | | | | | | | 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: Ic098f8560599554e0b6bb16ae326d4d30a8a5504
* | py2 functional testingJohn Dickinson2018-09-271-0/+6
| | | | | | | | Change-Id: I24ff8fb28969a0b074313bc9491b299afac3b49c
* | fix tox python3 overridesDoug Hellmann2018-09-051-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: I86d24104033b490a35178fc504d88c1e4a566628 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* add lower-constraints jobDoug Hellmann2018-04-251-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. Update the dependencies needed to make the unit tests pass while constrained to the lower bounds. See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html for more details. Co-Authored-By: Nguyen Hai <nguyentrihai93@gmail.com> Change-Id: I2a8f465c8b08370517cbec857933b08fca94ca38 Depends-On: https://review.openstack.org/555034 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* Merge "Remove trailing white space in tox.ini"Zuul2018-04-121-1/+1
|\
| * Remove trailing white space in tox.iniKota Tsuyuzaki2018-04-121-1/+1
| | | | | | | | Change-Id: I706b69b7230390234ab255682478e8f69261cafe
* | Remove py34 from envlist in tox.iniNguyen Hai2018-04-061-1/+1
|/ | | | | | py35 is enough. Change-Id: Iebd7a6741dd60ed2fb11d1758bfec8e03e30a086
* Revert "Add Constraints support"Tim Burke2018-01-171-7/+3
| | | | | | | | | | | | Per http://lists.openstack.org/pipermail/openstack-dev/2017-December/125348.html > For many projects, tox_install.sh is not needed at all Let's see if that holds for python-swiftclient! This reverts commit f2f278fcbec3ad52a1726bb5a3f775d13bcc99dc. Change-Id: I0462c50ec71d87bac226f83a0d0942871ef5a0e7
* Make tox runnable in a directory with spacesTim Burke2017-11-281-2/+3
| | | | | | | | | | | I noticed a disturbing lack of quote-wrapping in change I7cb4b44952713752435e1faf0f63bf0d37e7dda6 but as I poked at it, I realized that trouble runs rampant. This seems to clean it all up, though I haven't tested *every* environment we define. Change-Id: I1454eb113e5bd9125d39f2e57e2ed96f6ddc42fc
* Update tox_install.sh to align for sphinx jobsMonty Taylor2017-11-221-2/+1
| | | | | | | | | | | | The updates to the sphinx docs jobs in support of the updates to the PTI wound up exposing an unintended interface. There are two flavors of the tox_install.sh file out there, and we basically need to collapse them into one flavor. Update the tox_install.sh script to match the constraints-as-first-argument form. Change-Id: I7cb4b44952713752435e1faf0f63bf0d37e7dda6
* Add releasenotes tox envTim Burke2017-08-081-0/+3
| | | | | | | | | | | | After this, we need to * add release notes jobs for python-swiftclient in openstack-infra/project-config * add release notes links for python-swiftclient in openstack/releases For the corresponding change in the swift repo, see I4e5f1ce1fcfbb2943036c821a24a0b4a3a2d9fc8 Change-Id: Iea6ed2ee26873edb3ef10146cdc906cf1a236255
* Add Constraints supportTony Breeds2016-12-271-4/+9
| | | | | | | | | | | | 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-swiftclient. Change-Id: I3947a6165eaa9f5cb62a7df4f5a2c16065da2f1d
* Merge "Enable code coverage report in console output"Jenkins2016-11-041-1/+2
|\
| * Enable code coverage report in console outputshashi.kant2016-10-191-1/+2
| | | | | | | | | | | | | | Modified swift-client tox.ini configuration to enable code coverage report in console output. Change-Id: I60276d6a87c62f4a112b01d97ab35a545d4e5462
* | add pypy to the bindep "test" profileJohn Dickinson2016-09-231-0/+9
|/ | | | | | | | | | According to the bindep docs (http://docs.openstack.org/infra/bindep/readme.html#profiles), we can specify profiles for each entry listed. Also added a bindep env to tox.ini. Change-Id: Ifb59d3ef2934c3d72ba84b337c38bb7eb14774bb
* Move python-keystoneclient to "extras"Tim Burke2016-03-071-0/+1
| | | | | | | This should make it more clear to users that they may want to install it. Change-Id: I8bb4f3eba1fc6d2b7b23c3bd51663678e755a69e
* Merge "Drop *.dbm* before running tests"Jenkins2016-03-041-2/+2
|\
| * Drop *.dbm* before running testsPete Zaitcev2016-03-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | See change I74fb5122e80a223aaa70afaeec7a7c585aa33577 for the previous discussion. But basically, if you run tox -e py27 then tox -e py34, the latter fails with "db type could not be determined", because of stuck .testrepository/times.dbm. This patch fixes it by clearing the *.dbm*. Should be safe as long as periods aren't used commonly in stable file names. Change-Id: I617eca308261f291c510c8cbd432779f1c00b182
* | Merge "Drop py33 support"3.0.0Jenkins2016-03-031-1/+1
|\ \ | |/ |/|
| * Drop py33 supportshu-mutou2016-02-231-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: Ia8f2b26e446175b0d892a11952ef3dc11dcdc73c Closes-Bug: #1526170
* | Have tox manage LANG environmental varPaul Belanger2016-02-241-1/+3
|/ | | | | | | | | | | | | | | | We need to do this because some of the py34 testing that python-swiftclient uses depends on this variable. The reason we don't see the issue in the gate, is because current bare-trusty images have this set on the jenkins shell user. When we move to just using DIBs, the variable won't be setup by default and python3 tests will fail. For more information: https://review.openstack.org/282898 Change-Id: Id9017f31b0543bccac9c07b83237b909e2bd2b0c Signed-off-by: Paul Belanger <pabelanger@redhat.com>
* Merge "Deprecated tox -downloadcache option removed"Jenkins2015-12-151-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: I95015c79049633ed97714d6de8dd8f231bd15a03
* | Merge "Delete python bytecode before every test run"Jenkins2015-12-151-1/+5
|\ \ | |/ |/|
| * Delete python bytecode before every test runshu-mutou2015-12-141-1/+5
| | | | | | | | | | | | | | | | | | | | Because python creates pyc|pyo files and __pycache__ directories during tox runs, certain changes in the tree, like deletes of files, or switching branches, can create spurious errors. Change-Id: Ibaac514521bab11bbf552e0310d1203230c0d984 Closes-Bug: #1368661
* | Remove py26 supportricolin2015-12-021-1/+1
|/ | | | | | | | | | | As of mitaka, the infra team won't have the resources available to reasonably test py26, also the oslo team is dropping py26 support from their libraries. sine we rely on oslo for a lot of our work, and depend on infra for our CI, we should drop py26 support too. Closes-Bug: 1519510 Depends-On: I37116731db11449d0c374a6a83a3a43789a19d5f Change-Id: I776847ce77dfe82880f34d0b7804514e5aed3f8d
* Add py35 to default tox environmentsTim Burke2015-10-011-1/+1
| | | | Change-Id: Ib10eab87b791da561b82c9522ba2686d24966c2d
* Drop flake8 ignores for already-passing testsTim Burke2015-08-191-8/+1
| | | | Change-Id: I5fb349b2f7808a3f97d95fc7db6b5cf5842a9f7c
* flake8 ignores same hacks as swiftHiroshi Miura2015-08-181-10/+16
| | | | | | | | | | | - blacklisted flake8 hacking - fix against E122 continuation line missing indentation or outdented Closes-bug: #1475516 Change-Id: I708d0a3466a1f85c84e478873e142821ce0774cb Signed-off-by: Hiroshi Miura <miurahr@nttdata.co.jp>
* change deprecated assertEquals to assertEqualHiroshi Miura2015-08-061-1/+2
| | | | | | | | | | fix against H234: assertEquals() logs a DeprecationWarning in Python3.x. use assertEqual() instead. Closes-bug: #1480776 Change-Id: Iffda6bb5f2616d4af4567eeea37bb26531e34371 Signed-off-by: Hiroshi Miura <miurahr@nttdata.co.jp>
* fix old style class definition(H238)Hiroshi Miura2015-08-041-1/+2
| | | | | Change-Id: Ib5be06fa544f5eb3061c6a3077a3b9986382ecfe Signed-off-by: Hiroshi Miura <miurahr@nttdata.co.jp>
* Block comment PEP8 fix.Ondrej Novy2015-07-301-1/+1
| | | | Change-Id: I999425902a5c82f7af129a8a1b6998d80edb225a
* Add passenv to tox.ini to make functests run with tempauthAlistair Coles2015-06-031-0/+1
| | | | | | | | | | | | | | Since tox version 2.0.0 env vars are not passed to the test env, which means that the SWIFT_TEST_CONFIG_FILE var is not passed in to tox -e func env. That means that both times tox -e func runs it is using keystone auth, and never using tempauth. Related-Bug: 1455102 Co-Authored-By: Christian Schwede <cschwede@redhat.com> Change-Id: I23dcdbcde0bf8adc9429eb2d294a2c778005d136
* add functional tox targetSean Dague2015-02-171-0/+10
| | | | | | | | move the contents of the functional test hook into tox for consistency. Change-Id: I730f1bb530215ba7c30bf32a1c3bbc16edd5c217 Required-By: https://review.openstack.org/#/c/156676
* Work toward Python 3.4 support and testing2.3.0Jeremy Stanley2014-09-031-1/+1
| | | | Change-Id: Ie213bec8d12e277d8c3d18ccc127831004d710a9
* Add a tox job for generating docsSteve Martinelli2014-07-241-0/+4
| | | | | | | Add a tox job to make it easier for developers to generate their own docs before submitting a patch. Change-Id: I86dbfc64a9d174697048c254c6d3d042a62350b4
* Removed now unnecesary workaround for PyPyAlex Gaynor2014-05-311-5/+0
| | | | Change-Id: I7bf6346edc399ec29b125b50eb7ac2cfbb87cdfa
* Fix running the unittests under py3Chmouel Boudjnah2014-05-091-1/+1
| | | | | | | Since we added the tests.functional the py3 tests wasn't running properly fixing it with some voodoo testr magic. Change-Id: Id301adb32ba739f05591c4c352e0cf7d87576755
* Add functional tests for python-swiftclientChristian Schwede2014-05-051-1/+1
| | | | | | | | | Coverage for swiftclient.client is 71% with these tests. Unit tests have been moved into another subdirectory to separate them from functional tests. Change-Id: Ib8c4d78f7169cee893f82906f6388a5b06c45602
* Make bin/swift testable part 1Christian Schwede2014-03-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | To make bin/swift importable for testing it needs to be renamed/moved. The final idea is to move it to swiftclient/shell.py and add only a stub in bin/swift to import swiftclient/shell.py. However, doing this in a single step makes reviewing very hard, because now there are > 1400 lines deleted from bin/swift and added to swiftclient/shell.py - Gerrit doesn't detect the moved file. For example: https://review.openstack.org/#/c/73710/2/ This patch first moves the code to swiftclient/shell.py and uses setup.py/cfg to create the stub file in bin/swift. A follow up (https://review.openstack.org/#/c/76489/) will then add the stub itself in bin/swift (and remove the entry in setup.py). The change to tox.ini is related to bug 1290562 and can be removed in the future. Change-Id: Id86392ccaf09e1d80a5d808fb49827d6d18c2588
* Fix temporary pypy gate issue with setuptoolsChmouel Boudjnah2014-03-191-0/+5
| | | | | | | | | Adding a fix proposed in bug 1290562 to avoid continuous gate failures because of setuptools issue reported in the bug linked above. Temporary Fixes-bug: #1290562 Change-Id: Ia8616d1939e664fc82de030b6384acb235e5c101
* Only run flake8 on swiftclient codeSamuel Merritt2014-02-131-2/+1
| | | | | | | | | In particular, this skips the "build" directory, which is prone to containing stuff that doesn't comply with all the hacking checks. The actual code we care about all lives in three places, so let's only check those. Change-Id: I4a3be59913ad85a5a9e91d254f4d3f4b0b1cc7b7
* Remove tox locale overridesJeremy Stanley2014-02-101-3/+0
| | | | | | | | | | | | | | | * tox.ini: The LANG, LANGUAGE and LC_ALL environment overrides were introduced originally during the testr migration in an attempt to be conservative about the possibility that locale settings in the calling environment could cause consistency problems for test runs. In actuality, this should be unnecessary and any place where it does cause issues ought to be considered an actual bug. Also, having these in the configuration actively causes older pip to have problems with non-ASCII content in some package metadata files under Python 3, so drop it now. Change-Id: If4e025e22248d06b77e9d4d8f4e4815776428b9d Closes-Bug: #1277495