Commit Graph

172 Commits

Author SHA1 Message Date
Stephen Finucane 8b0e467355 Remove invalid note from requirements files
This isn't true with the new dependency resolver introduced in pip 20.3.

Change-Id: Ie28fe625663c960fbffa12efb1503b8c9f8c0581
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2022-08-24 11:03:52 +01:00
Stephen Finucane 20769cd7b2 Fix lower-constraints job
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>
2020-12-08 10:55:57 +00:00
Doug Hellmann 870cf01148 switch to stevedore for entry points
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>
2020-07-06 08:44:31 -04:00
Monty Taylor 7696593dc1 Remove os-client-config references
We've depended on openstacksdk for config for ages now, clean up
after ourselves and stop installing it in tests.

Change-Id: I66b3ec2a36bc462d2f1ac151e95ccbdc946076b8
2020-06-08 16:20:28 -05:00
Zuul 4886b02380 Merge "Use unittest.mock instead of third party mock" 2020-04-17 21:37:39 +00:00
Sean McGinnis 725e004d32
Use unittest.mock instead of third party mock
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>
2020-04-03 17:11:40 -05:00
Igor Malinovskiy f03cb68ad8 Add 'address_scope' type support to network rbac commands
Change-Id: I6a4b7219934805c1bbd1e88fcc670ae231d9ac37
Partial-Bug: #1862968
Depends-On: https://review.opendev.org/709122
2020-03-26 12:40:12 +00:00
Zuul cf76a00251 Merge "Raise flake8-import-order version to latest" 2020-01-13 18:24:20 +00:00
Sean McGinnis 69db9fe73c
Raise flake8-import-order version to latest
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>
2020-01-10 14:21:47 -06:00
Sean McGinnis 90ca67bdae
Raise hacking to more recent 2.0.0
Change-Id: I3cf36ed4d8fb5d003acae762820a8d80f75a11e9
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-01-10 11:43:07 -06:00
Eric Fried abdec78fa3 Remove plugin projects from test-requirements.txt
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
2019-10-21 16:37:41 -05:00
Eric Fried 8cdc7348d1 Add placement to known plugins
Add the osc-placement project (osc plugin for the placement service) to
the list of known plugins.

Change-Id: I77b614b38ecf872d0d93473b834994913930b76f
2019-10-21 16:11:09 -05:00
Hongbin Lu 7549d260aa Bump lower constraint of python-zunclient
Projects that depends on python-zunclient should use the latest
version as lower constraint.

Change-Id: Idc865788f35427cc0f2926b31089ec4097831334
2019-09-01 22:36:34 +00:00
Stephen Finucane 6419533f43 Bump hacking version
Pick up newer versions of this library. Thankfully no serious changes
are needed.

Change-Id: I69e523844529fc1c8aa0c1ce764182dbe29cfeb6
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2019-08-27 17:12:15 -05:00
Dean Troyer 6385d64237 Blacklist Bandit 1.6.0 due to directory exclusion bug
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>
2019-05-09 16:47:46 -05:00
OpenStack Proposal Bot 26b1732a7c Updated from global requirements
Change-Id: I8c400b12269f00fcf9fcaac27098ca55cdc27ac4
2018-03-28 10:36:59 +00:00
OpenStack Proposal Bot 395f640bc7 Updated from global requirements
Change-Id: Idf311a7fa08e8738bb4c70b0d84f8a4121606f56
2018-03-13 07:28:18 +00:00
OpenStack Proposal Bot 2ef279ab71 Updated from global requirements
Change-Id: I7febe9ca4d4c9ac5044208ff1816eab8f1d9452e
2018-01-29 00:35:35 +00:00
OpenStack Proposal Bot 951956a799 Updated from global requirements
Change-Id: I72c81c299759b883e316b450716d1528bdb06308
2018-01-19 12:49:58 +00:00
OpenStack Proposal Bot 551278eb85 Updated from global requirements
Change-Id: I72311597c1b62d985282cef5e219c16cd6745b42
2018-01-16 04:32:02 +00:00
OpenStack Proposal Bot f02f95f063 Updated from global requirements
Change-Id: I90df2e58bb83239f5b041982844516eb34cb5656
2018-01-15 11:00:35 +00:00
OpenStack Proposal Bot cc47c075a0 Updated from global requirements
Change-Id: Ic85eb65f3f143fdfbf2b6fa71d7cdd6961b24c76
2018-01-09 16:21:50 +00:00
Guoqiang Ding 42e0037cd0 Update new documentation PTI jobs
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
2017-12-28 16:16:28 +00:00
Masayuki Igawa bafe5357c2
Switch to use stestr directly
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
2017-12-27 16:18:49 +09:00
OpenStack Proposal Bot 4cff01a2be Updated from global requirements
Change-Id: I6d09649d109445bee8ec541a1366dfcf49fd6563
2017-11-21 15:52:35 +00:00
OpenStack Proposal Bot c0f910d613 Updated from global requirements
Change-Id: I714dbe5326ed99c4edab6c63ecea4dc6a72b57e7
2017-11-16 11:25:40 +00:00
OpenStack Proposal Bot aafbb69cfb Updated from global requirements
Change-Id: I2c8a5132f6078609ad0d46093642a1b361115c5c
2017-11-15 01:53:52 +00:00
Lin Yang 5b034ef653 Add python-rsdclient into plugin list
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
2017-10-27 16:00:22 -07:00
OpenStack Proposal Bot 953d74b5d6 Updated from global requirements
Change-Id: I9509fb386bc28eaaeab8d27f4cfc7109ec261b73
2017-09-21 03:50:03 +00:00
Hongbin Lu e785570406 Add python-zunclient plugin
This patch adds the "appcontainer" commands to the docs and sets
up the document generation for the python-zunclient plugin

Change-Id: I58bd208e98bd059d9df03ee71dcb83779044f83a
2017-09-15 18:24:12 -04:00
OpenStack Proposal Bot c7671dd9a4 Updated from global requirements
Change-Id: Ibeed9c623a6ef1c641c121a2b5ee75920346056f
2017-09-13 13:02:59 +00:00
OpenStack Proposal Bot 95378bb37d Updated from global requirements
Change-Id: I30be8748ef78604eb63c61e1dcf5fc5a740822aa
2017-09-13 00:15:31 +00:00
OpenStack Proposal Bot 05c66f5bb6 Updated from global requirements
Change-Id: I5f7fdc751e6a9078eb1eb55f5b5015a56ff668cc
2017-08-18 11:42:09 +00:00
Akihiro Motoki f3bbf52b3c Use flake8-import-order plugin
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
2017-08-17 06:55:00 +00:00
OpenStack Proposal Bot a709c151e6 Updated from global requirements
Change-Id: I6f384b021b5ae73152192c5b4c2bab190db88251
2017-08-07 00:53:48 +00:00
OpenStack Proposal Bot 6fdce13165 Updated from global requirements
Change-Id: Ie45d9ee68e24806b2411359068b6ec6c44dc5845
2017-07-28 21:47:55 +00:00
OpenStack Proposal Bot 25e6c31d2a Updated from global requirements
Change-Id: I7906433adde40f76eaccdab186e68e0afcbe49af
2017-07-28 05:26:04 +00:00
OpenStack Proposal Bot d25f68f3ba Updated from global requirements
Change-Id: I1cba44152cf17ab3b50e5e3c423c702dbdf5039e
2017-07-27 20:33:15 +00:00
OpenStack Proposal Bot 26ec06e281 Updated from global requirements
Change-Id: I9acdcf3a966dc7c6f92b077848d65f408fdd07eb
2017-07-21 05:07:46 +00:00
OpenStack Proposal Bot db7d0723f0 Updated from global requirements
Change-Id: I32899a8110c6c4442c454e122d5ed4eedc76a938
2017-07-13 14:24:35 +00:00
Jenkins fc051b145b Merge "Add python-octaviaclient plugin" 2017-06-30 21:28:33 +00:00
Michael Johnson 2bd124731a Add python-octaviaclient plugin
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
2017-06-29 17:21:11 +00:00
OpenStack Proposal Bot ca4b9be8a2 Updated from global requirements
Change-Id: Ifc46dfac0578144329675c2c75da1e6ddfa862a3
2017-06-29 02:28:44 +00:00
Doug Hellmann cf60df4261 switch to openstackdocstheme
Change-Id: Iee591504ba5d7506ba41a9faaa1c293a5fe2db6a
Depends-On: Ifc5512c0e2373cf3387e0e0498268eab092e52bb
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-06-26 17:01:19 -04:00
chenying 7653cff5e6 Add support for Karbor Plugin
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
2017-06-15 19:10:34 +08:00
OpenStack Proposal Bot e54fcd0a5c Updated from global requirements
Change-Id: Ic49fc0fcd068d03f2dad5b49e3de4d98702866dc
2017-06-10 21:48:48 +00:00
OpenStack Proposal Bot c912717e42 Updated from global requirements
Change-Id: If85aea646119bf12090074edf198f64a8719c949
2017-06-05 21:58:44 +00:00
OpenStack Proposal Bot adac738f17 Updated from global requirements
Change-Id: Iad391c3f10f90cd238de99e6ca94c3de0edc986b
2017-06-02 22:07:23 +00:00
OpenStack Proposal Bot 16eedeb965 Updated from global requirements
Change-Id: I5b8daf5b9e177b368678a605997e52eff04a0999
2017-06-01 22:21:20 +00:00
OpenStack Proposal Bot d034b980ab Updated from global requirements
Change-Id: Ica0de1e6a275fee4761dca1f128caf073bcfb92b
2017-05-31 16:45:37 +00:00