summaryrefslogtreecommitdiff
path: root/tox.ini
Commit message (Collapse)AuthorAgeFilesLines
* bump py37 to py38 in tox.iniwangzihao2020-09-221-1/+1
| | | | | | in 'victoria' cycle, we should test py38 by default. Change-Id: I91257def33d99a0fdebdf01e60e9e031104e81bd
* Update hacking for Python3Andreas Jaeger2020-06-091-1/+1
| | | | | | | | | The repo is Python 3 now, so update hacking to version 3.1.0 which supports Python 3. Fix problems found. Change-Id: I54f9f7c5f6ee87ee886658388541f45e23c7546d
* [ussuri][goal] Drop python 2.7 support and testingGhanshyam Mann2020-06-081-7/+4
| | | | | | | | | | | | | | | | OpenStack is dropping the py2.7 support in ussuri cycle. python-barbicanclient 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: Id55914141099650752027aa9dc0ad8a90528a2e9
* PDF Documentation Build tox targetAlexandra Settle2019-10-011-5/+19
| | | | | | | | | | | | | | | This patch adds a `pdf-docs` tox target that will build PDF versions of our docs. As per the Train community goal: https://governance.openstack.org/tc/goals/selected/train/pdf-doc-generation.html Add sphinxcontrib-svg2pdfconverter to doc/requirements.txt to convert our SVGs. Update docs requirement as well to follow PTI. Change-Id: I0b866b2e57557290533ee7e7e162e56c9c17cf54 Story: 2006072
* docs: Turn on warning-as-errorStephen Finucane2019-10-011-1/+1
| | | | | | | | | | | | | | | | | | | | | There were two main issues here. Firstly, a function was being documented as a class, resulting in: WARNING: error while formatting arguments for barbicanclient.client.Client: 'function' object has no attribute '__mro__' Secondly, a docstring for a common function had an incorrect field list format, resulting in: docstring of barbicanclient.v1.acls.SecretACL.get:4: WARNING: Field list ends without a blank line; unexpected unindent docstring of barbicanclient.v1.acls.ContainerACL.get:4: WARNING: Field list ends without a blank line; unexpected unindent Resolve both. Change-Id: I69ef97cb48c6b5a1add4e89c4a53047420d314f4 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* add python 3.6 unit test jobVieri2018-11-281-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: I91a737a5a204bc202faadccd22bafa4aee5e7332 Story: #2002586
* Update min tox version to 2.0huang.zhiping2018-11-071-1/+1
| | | | | | | | | The commands used by constraints need at least tox 2.0. Update to reflect reality, which should help with local running of constraints targets. Change-Id: I413110b14dfe294c8a51c1dc23232bd4f09619dd Closes-Bug: #1802030
* Don't quote {posargs} in tox.ini4.8.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: Idf3ecc193e91c65010a0de08a02e01efcf1bd3a7
* Allow fetching by UUID, and respect interfaceAdam Harwell2018-09-111-0/+1
| | | | | | | | | | | | | | When passing a UUID to the client, use the Barbican endpoint from the service catalog to fetch the entity. When passing an href, strip everything before the UUID and use it the same as a passed UUID. This allows for service usage when secrets are created with a public endpoint but must be retrieved from an internal or admin endpoint, and is probably how all usage should have worked to begin with. Change-Id: I90778a2eeefc4cfe42b0e2a48ba09036e3e6d83d Story: 2003197 Task: 23353
* Merge "fix tox python3 overrides"4.7.0Zuul2018-07-181-0/+4
|\
| * fix tox python3 overridesDoug Hellmann2018-06-131-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: I872ea4b71f35c5bad53fe1bcf2a50a6f21b8f9ee Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* | Switch to stestrVu Cong Tuan2018-07-101-1/+5
|/ | | | | | | | | | 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: I3597edc56ac5115347baaf72af72b071976468e7
* Merge "pypy is not checked at gate"Zuul2018-04-161-1/+1
|\
| * pypy is not checked at gateAnusree2018-03-211-1/+1
| | | | | | | | Change-Id: I3d437112f47074e7cd91cac798bd83cfb7c4bfed
* | Merge "Add 'rm -f .testrepository/times.dbm' command in testenv"Zuul2018-04-161-0/+2
|\ \
| * | Add 'rm -f .testrepository/times.dbm' command in testenvrajat292017-09-291-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Running py2* post py3* tests results in error. Add 'rm -f .testrepository/times.dbm' command in testenv to resolve this. Closes-Bug: #1565928 Change-Id: I31fa34e48f24014885668c249eaf8bb62b70fadc
* | | add lower-constraints jobDoug Hellmann2018-04-071-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: I39ad6aa578434d803d481d67c4ae67f06e376834 Depends-On: https://review.openstack.org/555034 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* | Follow the new PTI for document buildNguyen Hai2018-03-201-1/+5
| | | | | | | | | | | | | | | | For compliance with the Project Testing Interface as described in: https://governance.openstack.org/tc/reference/project-testing-interface.html http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html Change-Id: I8bdd2912638e497f3ade79967136d1d6924574f5
* | Avoid tox_install.sh for constraints supportAndreas Jaeger2017-12-021-4/+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: I600fa540b45e8dfddb18c36cae778fcddccff705
* Extend pep8 test coverageJeremy Liu2017-05-021-1/+1
| | | | | | | | We just run pep8 test on barbicanclient directory and functionaltests directory is not included. This patch extends pep8 test coverage and removes the script for running pep8 test. Change-Id: I2b4fe6fadd69884c749a91b390297600bfa40182
* Enable F and H flake8 rulesKaitlin Farr2017-03-291-1/+1
| | | | | | | | | | | Flake8 was configured to ignore F and H rules, which are the PyFlakes rules and OpenStack hacking rules. H202 (tests for the too-general Exception used with assertRaises) is still ignored because some code actually throws a generic Exception and so the unit test must check that Exception is raised. Change-Id: I4c4b67631547cd2db784936287355968a6d3b6c7
* Make test directory more specificJeremy Liu2017-02-261-1/+1
| | | | | | Set test directory to `barbicanclient/tests` to be more specific Change-Id: I158720ee08317b4b84c81438eff675c4d5a7258c
* Remove support for py34Rui Chen2017-02-091-1/+1
| | | | | | | | The gating on python 3.4 is restricted to <= Mitaka. This is due to the change from Ubuntu Trusty to Xenial, where only python3.5 is available. There is no need to continue to keep these settings. Change-Id: If9a737676cd82f5e2170042da71f241ff35a0edb
* Merge "Add Python 3.5 classifier and venv"Jenkins2017-01-091-1/+1
|\
| * Add Python 3.5 classifier and venvTony Xu2016-10-251-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: Ifbd1147a3c8c4d6fa745d210d37a90f5ae8321dd
* | Removed openstack/common from tox.inDeepak2016-11-091-1/+1
|/ | | | | | As openstack/common file is not there in repo. Change-Id: I0cb6b2c16c3de95fa6b8f08d92850bfa9ca882ab
* Support upper-constraints in tox.iniJeremy Liu2016-10-101-1/+1
| | | | | | | | | Since the python-barbicanclient itself is in upper-constraints.txt now, in CI job, we should remove it from the constraints file before applying it, otherwise pip will fail due to python-barbicanclient version conflict. Change-Id: I980a85a3b5cc21d2a5029b0e9d8ac2932aa15ba6 Closes-bug: #1614361
* Fix jenkins failing on coverage reportliujiong2016-08-031-1/+1
| | | | | | | Coverage combine deletes reports and thus jenkins failed saying `no data to report`, this change fixes it. Change-Id: I1d7ea816e82fa81d3edb8ecdbe2d602d3624c126
* 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: I0349f6d3812783391bc74cacae6ad947a4d19622
* 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: Ic8241e55b5f4e3d567156d4c1e8bf8a0303f6d29 Change-Id: I4386dc70e3d467e31963d852726af78fbdbbba38
* Allow tox to be able to run independent functional tests“Fernando2015-11-101-1/+1
| | | | | | | | | Allows tox to be able to run all functional tests in a Class as well as a single functional test. Also runs the tests in verbose mode, as is done in the gate. Change-Id: I1fba43aa8c577c81da07522f84cddc36fd7807e1 Closes-Bug: #1514699
* Remove unneeded dependency in tox.iniSteve Heyman2015-07-291-1/+0
| | | | | | | We no longer need to pip install tempest code, so removing that from tox.ini Change-Id: I4caa8b44299dd3254d6c08f52d873f38f358ff55
* Update functionaltests to be able to run tox -e functionalSteve Heyman2015-02-271-1/+0
| | | | | | | | | | Removed extra "nose" pre-req from tox.ini as it is already in test-requirements.txt, and it causes a "double requirement" error when running via tox. Also fixed relative directory reference to ensure we pick up the right etc/functional_tests.conf file. Change-Id: Iffb2891012ff0a4bb13a34bd7f8784104453b150
* Merge "update tox.ini files to run functional tests"Jenkins2015-02-181-0/+9
|\
| * update tox.ini files to run functional testsSteve Heyman2015-02-161-0/+9
| | | | | | | | | | | | | | Updated tox.init to add a test environment "functional". You can run using "tox -e functional" from a command line. Change-Id: Id3ac2b52ade9b7e683ae74e2f9e3efc2dbceb6f1
* | Remove py33 tox environmentDouglas Mendizábal2015-02-131-1/+1
|/ | | | | | | | | | | Remove Python 3.3 tox environment because Infra changed all Python 3 gates to Python 3.4. References: http://lists.openstack.org/pipermail/openstack-dev/2015-February/055775.html Change-Id: I355323aa0e03580f86b46fb2d7ab41da3f4d59c2
* Enable usage of oslo_debug_helper from toxJuan Antonio Osorio Robles2015-01-171-0/+3
| | | | | | | | | | | | | | | | | | | The script oslo_debug_helper enables the usage of Python's pdb without having to do the tedious listing of test cases from testr and then running it. Only thing that needs to be done now is the adding of "import pdb; pdb.set_trace()" as usual and then one can just call: $ tox -e debug And we will end up in the debugger when that test is hit. Note that you can also give a test_regex such as: $ tox -e debug -- some_test_regex To run only tests that match that regex. Change-Id: I63386e68ac3ef5c05bc8290d889efa7f71b33cf1
* Enable passing test regex to testr from toxJuan Antonio Osorio Robles2015-01-051-1/+1
| | | | | | | | | | | | | This will enable us to pass a regex to tox (such as we already can for testr) of what tests we want to execute. So we can do stuff like this: $ tox -e py27,py33 -- test_barbican Which will execute the tests that match that "test_barbican" argument (which will actually be the tests in the test_barbican module) on the given environments. Change-Id: Id81b8ab4829c25454ee049b22e3e13a551055946
* Add sphinx docsDouglas Mendizabal2014-10-271-8/+8
| | | | | | Added sphinx documentation source skeleton from cookiecutter. Change-Id: I7c9fa2c0668b93dd00eecca90617121fdae304ea
* Work toward Python 3.4 support and testingJeremy Stanley2014-09-031-1/+1
| | | | Change-Id: Ie06e59518306124e60ab9b741036015f9e977840
* Update tox.ini to match rest of project2.2.1Monty Taylor2014-07-151-0/+7
| | | | | | | | There's a few things - most notably the missing venv env, but also getting tox to skip the sdist step in builds that will align python-barbicanclient with the rest of the project. Change-Id: I7b3c8f992040c0a7f0cace1452a93f4958d0cd2a
* Added PyPy env to tox.iniAlex Gaynor2014-06-031-1/+1
| | | | Change-Id: I095b7027b61594947ee04f041d66cd05268adee2
* Added py33 to toxAlex Gaynor2014-06-021-1/+1
| | | | Change-Id: I0822a7da1206729b9149f0d4ee3195a50e6873c6
* port tests to testtools, add branch coverage, omit openstack commonPaul Kehrer2014-03-201-20/+5
| | | | Change-Id: I364dcaac1db1922cc815ece455a69734aa6c51f6
* Migrate to pbrDonald Stufft2014-01-031-2/+2
| | | | Change-Id: Id914183a5098e2fdc3f325fc83ecc5161886733d
* Added auth param to Client.Douglas Mendizabal2013-08-301-2/+2
|
* Update tox to run pep8 by default.Douglas Mendizabal2013-08-291-2/+2
|
* Implement secret and order list pagingArash Ghoreyshi2013-06-141-1/+7
| | | | | | | | Update the unit tests to reflect all changes made rename the command line tool to "keep" and add it to setup.py Add nosetest to tox
* remove last marconi refsPaul Kehrer2013-05-311-1/+1
|
* First stab at packagingJarret Raim2013-05-301-4/+8
|