summaryrefslogtreecommitdiff
path: root/test-requirements.txt
Commit message (Collapse)AuthorAgeFilesLines
* Fix lower-constraints jobStephen Finucane2020-12-081-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pip 20.3 finally includes a proper dependency resolver. Its use is causing the following error messages on the lower-constraints job: ERROR: Cannot install ... because these package versions have conflicting dependencies. The conflict is caused by: bandit 1.1.0 depends on PyYAML>=3.1.0 cliff 3.4.0 depends on PyYAML>=3.12 openstacksdk 0.52.0 depends on PyYAML>=3.13 Bump our lower constraint for PyYAML to resolve this issue. With that resolved, we see a new issue: ERROR: Could not find a version that satisfies the requirement cryptography>=2.7 (from openstacksdk) ERROR: No matching distribution found for cryptography>=2.7 This is less self-explanatory but looking at the lower-constraints for openstacksdk 0.52.0 shows a dependency on cryptography 2.7 [1], meaning we need to bump this also. Next up, flake8-import-order seems to cause the dependency resolver to go nuts, eventually ending with the following error message in a Python 3.6 environment: Using cached enum34-1.1.2.zip (49 kB) ERROR: Command errored out with exit status 1: command: ... cwd: ... Complete output (9 lines): Traceback (most recent call last): File "<string>", line 1, in <module> File ".../lib/python3.6/site-packages/setuptools/__init__.py", line 7, in <module> import setuptools.distutils_patch # noqa: F401 File ".../lib/python3.6/site-packages/setuptools/distutils_patch.py", line 9, in <module> import re File "/usr/lib64/python3.6/re.py", line 142, in <module> class RegexFlag(enum.IntFlag): AttributeError: module 'enum' has no attribute 'IntFlag' ---------------------------------------- A quick Google suggests this is because the enum34 package is not complete [2]. We shouldn't even be using it since our base virtualenv should at least use Python 3.6, but I guess some dependency doesn't properly restrict the dependency to <= Python 3.4. This is moved from 'test-requirements.txt' to 'tox.ini' since we don't need to use our constraints machinery for linters. Finally, the versions of bandit and hacking that pip is bringing in both requires in a newer version of babel, which in turn requires a new version of pytz. Collecting hacking>=2.0.0 ... ERROR: Cannot install oslo.i18n because these package versions have conflicting dependencies. The conflict is caused by: babel 2.9.0 depends on pytz>=2015.7 babel 2.8.1 depends on pytz>=2015.7 babel 2.8.0 depends on pytz>=2015.7 babel 2.7.0 depends on pytz>=2015.7 Seeing as we shouldn't be tracking bandit in lower-constraints, I'm not sure why we're want to bump these dependencies for just that. As above, we move these dependencies out of 'test-requirements' and into 'tox.ini' since we can do that for linters. [1] https://opendev.org/openstack/openstacksdk/src/tag/0.52.0/requirements.txt#L19 [2] https://github.com/iterative/dvc/issues/1995#issuecomment-491889669 Change-Id: I8ec738fbcabc8d8553db79a876e5592576cd18fa Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* switch to stevedore for entry pointsDoug Hellmann2020-07-061-1/+0
| | | | | | | | | | | | | | | Importing pkg_resources scans every installed distribution to find all of the entry points. Stevedore is adding a new caching layer using importlib.metadata, which will not. Switching to the stevedore should eventually speed up load times, especially for command line apps. This change makes the switch now to ensure API compatibility. We were already using stevedore for tests, so this moves the dependency from test-requirements.txt to requirements.txt and raises the minimum version to something more recent. Change-Id: I3e3632783bc745979b6db73e610df8a77ffaceb0 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* Remove os-client-config referencesMonty Taylor2020-06-081-1/+0
| | | | | | | We've depended on openstacksdk for config for ages now, clean up after ourselves and stop installing it in tests. Change-Id: I66b3ec2a36bc462d2f1ac151e95ccbdc946076b8
* Merge "Use unittest.mock instead of third party mock"Zuul2020-04-171-1/+0
|\
| * Use unittest.mock instead of third party mockSean McGinnis2020-04-031-1/+0
| | | | | | | | | | | | | | | | Now that we no longer support py27, we can use the standard library unittest.mock module instead of the third party mock lib. Change-Id: Ibd39328c27b68190e2edbf1f52fcea52db3ae791 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* | Add 'address_scope' type support to network rbac commandsIgor Malinovskiy2020-03-261-0/+1
|/ | | | | | Change-Id: I6a4b7219934805c1bbd1e88fcc670ae231d9ac37 Partial-Bug: #1862968 Depends-On: https://review.opendev.org/709122
* Merge "Raise flake8-import-order version to latest"Zuul2020-01-131-1/+1
|\
| * Raise flake8-import-order version to latestSean McGinnis2020-01-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | We had this library capped at a release that is a few years old. Now that we have dropped py2 testing, we can pick up the latest version. This uncovered a few things to clean up. Mostly the fact that mock is now a part of the StdLib unittest since Python 3.3. Change-Id: I27484dd4c25378413ff16e97a35a1a46062357bc Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* | Raise hacking to more recent 2.0.0Sean McGinnis2020-01-101-1/+1
|/ | | | | Change-Id: I3cf36ed4d8fb5d003acae762820a8d80f75a11e9 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* Remove plugin projects from test-requirements.txtEric Fried2019-10-211-23/+0
| | | | | | | | | | | | Plugin projects were listed in test-requirements.txt ostensibly to pull them in for autodoc building. However, test-requirements.txt wasn't being used for that purpose -- doc/requirements.txt was, so [1] added them there. So this commit removes them from test-requirements.txt where they're unused. [1] Id9be39971110fd2eb4519a0582c9bf2514cdcacd Change-Id: Ia89888ee05e17da636ee46894232624e0178d6bc
* Add placement to known pluginsEric Fried2019-10-211-0/+1
| | | | | | | Add the osc-placement project (osc plugin for the placement service) to the list of known plugins. Change-Id: I77b614b38ecf872d0d93473b834994913930b76f
* Bump lower constraint of python-zunclientHongbin Lu2019-09-011-1/+1
| | | | | | | Projects that depends on python-zunclient should use the latest version as lower constraint. Change-Id: Idc865788f35427cc0f2926b31089ec4097831334
* Bump hacking versionStephen Finucane2019-08-271-2/+1
| | | | | | | | Pick up newer versions of this library. Thankfully no serious changes are needed. Change-Id: I69e523844529fc1c8aa0c1ce764182dbe29cfeb6 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* Blacklist Bandit 1.6.0 due to directory exclusion bugDean Troyer2019-05-091-1/+1
| | | | | | | | | | | Bandit 1.6.0 introduces a regression[0] with the -x option, a fix is expected to be included in 1.6.1 soon. [0] https://github.com/PyCQA/bandit/issues/488 [1] https://github.com/PyCQA/bandit/pull/489 Change-Id: I110829ef960e3ee146f47871ef076491244bf4fa Signed-off-by: Dean Troyer <dtroyer@gmail.com>
* Updated from global requirementsOpenStack Proposal Bot2018-03-281-4/+4
| | | | Change-Id: I8c400b12269f00fcf9fcaac27098ca55cdc27ac4
* Updated from global requirementsOpenStack Proposal Bot2018-03-131-2/+2
| | | | Change-Id: Idf311a7fa08e8738bb4c70b0d84f8a4121606f56
* Updated from global requirementsOpenStack Proposal Bot2018-01-291-1/+1
| | | | Change-Id: I7febe9ca4d4c9ac5044208ff1816eab8f1d9452e
* Updated from global requirementsOpenStack Proposal Bot2018-01-191-1/+1
| | | | Change-Id: I72c81c299759b883e316b450716d1528bdb06308
* Updated from global requirementsOpenStack Proposal Bot2018-01-161-1/+1
| | | | Change-Id: I72311597c1b62d985282cef5e219c16cd6745b42
* Updated from global requirementsOpenStack Proposal Bot2018-01-151-1/+1
| | | | Change-Id: I90df2e58bb83239f5b041982844516eb34cb5656
* Updated from global requirementsOpenStack Proposal Bot2018-01-091-1/+1
| | | | Change-Id: Ic85eb65f3f143fdfbf2b6fa71d7cdd6961b24c76
* Update new documentation PTI jobsGuoqiang Ding2017-12-281-3/+0
| | | | | | | | | | For compliance with the Project Testing Interface as described in [1]. For more detailed information, please refer to [2]. [1] https://governance.openstack.org/tc/reference/project-testing-interface.html [2] http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html Change-Id: I7e8c47dead1e019e8705db3ff7559dd39b1d90d9
* Switch to use stestr directlyMasayuki Igawa2017-12-271-2/+1
| | | | | | | | This commit makes to use stestr instead of ostestr directly. ostestr>1.0.0 has started to use stestr instead of testrepository. So there is no reason to use ostestr anymore. Change-Id: I6327d50c9f6dd19f1de24b9b51532104fb3e916e
* Updated from global requirementsOpenStack Proposal Bot2017-11-211-1/+1
| | | | Change-Id: I6d09649d109445bee8ec541a1366dfcf49fd6563
* Updated from global requirementsOpenStack Proposal Bot2017-11-161-1/+1
| | | | Change-Id: I714dbe5326ed99c4edab6c63ecea4dc6a72b57e7
* Updated from global requirementsOpenStack Proposal Bot2017-11-151-1/+1
| | | | Change-Id: I2c8a5132f6078609ad0d46093642a1b361115c5c
* Add python-rsdclient into plugin listLin Yang2017-10-271-0/+1
| | | | | | | | | | | | Intel RSD is new architecture that disaggregates compute, storage, and network resources, and provide the ability to dynamically compose resources based on workload-specific demands [1]. The python-rsdclient project provide specific RSD plugin to allow user to invoke RSD API through OpenStackClient. So Added it into existing plugin list. [1] https://www.intel.com/content/www/us/en/architecture-and-technology/rack-scale-design-overview.html Change-Id: Ic49efddfb003c89ece6d782905b27fb46402b3ab
* Updated from global requirementsOpenStack Proposal Bot2017-09-211-1/+1
| | | | Change-Id: I9509fb386bc28eaaeab8d27f4cfc7109ec261b73
* Add python-zunclient pluginHongbin Lu2017-09-151-0/+1
| | | | | | | This patch adds the "appcontainer" commands to the docs and sets up the document generation for the python-zunclient plugin Change-Id: I58bd208e98bd059d9df03ee71dcb83779044f83a
* Updated from global requirementsOpenStack Proposal Bot2017-09-131-1/+1
| | | | Change-Id: Ibeed9c623a6ef1c641c121a2b5ee75920346056f
* Updated from global requirementsOpenStack Proposal Bot2017-09-131-6/+6
| | | | Change-Id: I30be8748ef78604eb63c61e1dcf5fc5a740822aa
* Updated from global requirementsOpenStack Proposal Bot2017-08-181-3/+3
| | | | Change-Id: I5f7fdc751e6a9078eb1eb55f5b5015a56ff668cc
* Use flake8-import-order pluginAkihiro Motoki2017-08-171-0/+1
| | | | | | | | | | | | | | | | In reviews we usually check import grouping but it is boring. By using flake8-import-order plugin, we can avoid this. It enforces loose checking so it sounds good to use it. This flake8 plugin is already used in tempest. Note that flake8-import-order version is pinned to avoid unexpected breakage of pep8 job. Setup for unit tests of hacking rules is tweaked to disable flake8-import-order checks. This extension assumes an actual file exists and causes hacking rule unit tests. Change-Id: I12b596820727aeeb379bee16c2bc993dee9eb637
* Updated from global requirementsOpenStack Proposal Bot2017-08-071-1/+1
| | | | Change-Id: I6f384b021b5ae73152192c5b4c2bab190db88251
* Updated from global requirementsOpenStack Proposal Bot2017-07-281-1/+1
| | | | Change-Id: Ie45d9ee68e24806b2411359068b6ec6c44dc5845
* Updated from global requirementsOpenStack Proposal Bot2017-07-281-1/+1
| | | | Change-Id: I7906433adde40f76eaccdab186e68e0afcbe49af
* Updated from global requirementsOpenStack Proposal Bot2017-07-271-1/+1
| | | | Change-Id: I1cba44152cf17ab3b50e5e3c423c702dbdf5039e
* Updated from global requirementsOpenStack Proposal Bot2017-07-211-1/+1
| | | | Change-Id: I9acdcf3a966dc7c6f92b077848d65f408fdd07eb
* Updated from global requirementsOpenStack Proposal Bot2017-07-131-2/+2
| | | | Change-Id: I32899a8110c6c4442c454e122d5ed4eedc76a938
* Merge "Add python-octaviaclient plugin"Jenkins2017-06-301-0/+1
|\
| * Add python-octaviaclient pluginMichael Johnson2017-06-291-0/+1
| | | | | | | | | | | | | | | | This patch adds the "loadbalancer" commands to the docs and sets up the document generation for the python-octaviaclient plugin. Depends-On: Ib123383c5f6904b4b00831e8cc7aaa180bd4a506 Change-Id: I48939cc3653cd379a328e0a0973d075019d22b00
* | Updated from global requirementsOpenStack Proposal Bot2017-06-291-1/+1
|/ | | | Change-Id: Ifc46dfac0578144329675c2c75da1e6ddfa862a3
* switch to openstackdocsthemeDoug Hellmann2017-06-261-2/+2
| | | | | | Change-Id: Iee591504ba5d7506ba41a9faaa1c293a5fe2db6a Depends-On: Ifc5512c0e2373cf3387e0e0498268eab092e52bb Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* Add support for Karbor Pluginchenying2017-06-151-0/+1
| | | | | | | | | | | | | | | The patch[1] about OSC plugin has been submitted to karbor project. And the plan list commend has been implemented. With more dataprotection commands being supported, another patch adding more commands to the docs will be proposed later. [1] https://review.openstack.org/#/c/473508/ Depends-On: I4dfac08fd2b04f9ac254d3aa8fdadc3a1691de0a Change-Id: I2266525650f5c2e241373493dcd09474478c2ba6
* Updated from global requirementsOpenStack Proposal Bot2017-06-101-1/+1
| | | | Change-Id: Ic49fc0fcd068d03f2dad5b49e3de4d98702866dc
* Updated from global requirementsOpenStack Proposal Bot2017-06-051-1/+1
| | | | Change-Id: If85aea646119bf12090074edf198f64a8719c949
* Updated from global requirementsOpenStack Proposal Bot2017-06-021-1/+1
| | | | Change-Id: Iad391c3f10f90cd238de99e6ca94c3de0edc986b
* Updated from global requirementsOpenStack Proposal Bot2017-06-011-1/+1
| | | | Change-Id: I5b8daf5b9e177b368678a605997e52eff04a0999
* Updated from global requirementsOpenStack Proposal Bot2017-05-311-1/+1
| | | | Change-Id: Ica0de1e6a275fee4761dca1f128caf073bcfb92b
* Updated from global requirementsOpenStack Proposal Bot2017-05-171-1/+1
| | | | Change-Id: I32427e2a3b8012ed516ecaf23b6881eddc28cecb