Commit Graph

83 Commits

Author SHA1 Message Date
Eric Harney edcf5d6ff6 Support hacking>=6.0.0
Removes a direct dependency on pycodestyle which we
no longer need.

Change-Id: I5a8cfb5d44324f1b7822728829b3362921933117
2023-08-17 15:37:04 -04:00
Eric Harney 2241a07f6b Bump mypy to 1.2.0
Change-Id: I128de9ac7195adb5fc1467607abe8c1f40f47d16
2023-05-02 09:35:21 -04:00
Eric Harney e04d0de40b Bump mypy to 1.1.1
Change-Id: I50944c3efc7e2010d3c6475dd4c79a27c9f94cf6
2023-03-21 09:50:37 -04:00
Eric Harney 653c4c5c77 Update hacking to 5.0
Update hacking to 5.0 release.

Change-Id: I1c13d2d1effc1b6a91602199f42d59d5bf21ceec
2023-02-10 11:47:43 -05:00
Zuul 65f922b167 Merge "Update minimum requirements in os-brick" 2023-02-10 15:28:42 +00:00
Zuul 4f335d410a Merge "Bump bandit to release 1.7.0" 2023-02-09 22:36:06 +00:00
Rajat Dhasmana 35ea8e3eb6 Update minimum requirements in os-brick
This patch updates os-brick requirements of related OpenStack projects.
Following are the updates:

oslo.concurrency: 4.5.0 -> 5.0.0, released: 4 Aug '2022, u-c: 5.0.1
oslo.config: 8.1.0 -> 9.0.0, released: 12 July '2022, u-c: 9.1.0
oslo.context: 3.4.0 -> 4.1.0, released: 17 Feb '2022, u-c: 5.0.0
oslo.log: 4.6.1 -> 4.8.0, released: 5 May '2022, u-c: 5.0.0
oslo.privsep: 2.6.2 -> 3.0.0, released: 12 July '2022, u-c: 3.0.1
oslo.serialization: 4.2.0 -> 4.3.0, released: 16 Feb '2022, u-c: 5.0.0
oslo.utils: 4.12.1 -> 6.0.0, released: 23 June '2022, u-c: 6.1.0
oslo.win: 5.5.0 -> 5.7.0, released: 18 May '2022, u-c: 5.8.0
oslo.vmware: 3.10.0 -> 4.0.0, released: 17 June '2022, u-c: 4.0.1

Change-Id: I8c19fad8e4a2bcc6756c46cf5ef56367823e5a17
2023-02-09 15:55:40 +00:00
Eric Harney 0bc4771ee5 Bump hacking to 4.1.0
Bump hacking dependency to the 4.1.0 series.

Change-Id: I8c3792db91fbb253f6a0c89ea9587c3bd43db294
2023-02-01 09:45:18 -05:00
Eric Harney e43cdf6e1e Bump bandit to release 1.7.0
Use bandit 1.7.0.

Disables B101 globally and allows one instance of B604.

Change-Id: I82a39400520784adb8d26a355cd0e077ad58a530
2023-01-25 10:17:21 -05:00
Eric Harney 6ac170cbc1 Bump mypy version to 0.982
Change-Id: I16548244e6c6d019e8adeeb643a4b1544994ae5b
2023-01-20 12:55:16 -05:00
Eric Harney acefd44df0 Remove eventlet from requirements
Eventlet hasn't actually been a direct os-brick
requirement since Ussuri Change-Id I9684db.

Leave it in test-reqs since we have a unit test
that mocks it.  (Used via oslo.service.)

Change-Id: I9a72d41c9bb70ad568e5cd9218730b93b226b202
2022-11-09 10:48:12 -05:00
Eric Harney 2a071914f5 Bump mypy version to 0.960
Change-Id: Ic79f2cb18c32b0670abb2a531259e0e217db0734
2022-08-18 18:37:50 +00:00
Brian Rosmaita e768fb5ca6 Add flake8-logging-format extension
Automated logging format checking was added to cinder in ussuri
by change I1dedc0b31f78f518c, but it wasn't added to os-brick and
a few infelicities have crept into the code.  Enable the extension
and correct the issues.

To be consistent with cinder, we don't enable G200 ("Logging
statement uses exception in arguments").

Change-Id: I650b92bde5509b654d16301ffe50056e1e5ba579
2022-08-09 16:19:32 -04:00
Eric Harney 1d50e6713e Bump mypy version to 0.942
Sync with the max version specified by
openstack dependency constraints.

This brings in a handful of fixes and features
over 0.910.

Change-Id: Ia074945de1003cd88f86018bb8cb5ef02d5c4500
2022-04-11 10:39:07 -04:00
Brian Rosmaita 8fb0282630 Update requirements minima for Yoga release
Had to raise min oslo.vmware to 3.10.0 or can't run on py3.9.
So while I was in there, looked at the other requirements.
Updated most of the openstack libraries, left the third party
ones alone (see notes below).

requirements
------------
pbr>=5.5.1                -> >=5.8.0      in u-c for 3 months
oslo.concurrency>=4.4.0   -> >=4.5.0      in u-c for 4 months
oslo.context>=3.1.1       -> >=3.4.0      in u-c for 4 months
oslo.log>=4.4.0           -> >=4.6.1      in u-c for 4 months
oslo.i18n>=5.0.1          -> >=5.1.0      in u-c for 5 months
oslo.privsep>=2.4.0       -> >=2.6.2      in u-c for 6 months
oslo.serialization>=4.1.0 -> >=4.2.0      in u-c for 6 months
oslo.service>=2.5.0       -> >=2.8.0      in u-c for 1 month
oslo.utils>=4.8.0         -> >=4.12.1     in u-c for 3 weeks
os-win>=5.4.0             -> >=5.5.0      in u-c for 6 months

eventlet >=0.30.1  ->  >=0.30.1,!=0.32.0
- 0.33.0 has been in u-c for about 3 months
- 0.32.0 breaks ironic
- no reason to raise the min right now

requests >=2.25.1  ->  unchanged
- 2.27.1 has been in u-c for 1 month
- 2.26.0 drops py3.5 support
- no reason to raise the min right now

test requirements
-----------------
castellan>=3.7.0          -> >=3.10.0     in u-c for 4 months
oslo.vmware>=3.8.0        -> >=3.10.0     in u-c for 4 months
oslotest>=4.4.1           -> >=4.5.0      in u-c for 5 months
stestr>=3.1.0             -> >=3.2.1      in u-c for 4 months

coverage>=5.5  ->  unchanged
- 6.3: stopped supporting py3.6; u-c caps py3.6 at 6.2
- current is 6.3.1 which is also the u-c cap for py3.8
- no reason to raise the min right now

Change-Id: Iec14833ab502b4bb342938d5477c57742068f1b8
2022-02-14 09:34:06 -05:00
Brian Rosmaita 98c0916336 Update mypy infrastructure
Port cinder change Id69cb519ee7300b33ff087de4e7d46cdad67d162
to os-brick.

Change-Id: I57ce2aea95fa0d307a2cab89366f8f780a109535
2021-07-15 14:08:28 -04:00
Eric Harney f18a33b322 Introduce mypy
This adds the "tox -e mypy" environment which works
the same way we have introduced mypy in Cinder.

Files added to mypy-files.txt are validated with mypy.

Change-Id: I6d09422dbdf5ea58661aad7a63c4d4d7a2839833
2021-05-21 16:58:22 -04:00
Hemna eb566ce245 Enable bandit runs for tox
This patch adds tox settings for running tox -ebandit
to look at potential security issues.

Current issues:
  scaleio connector disables SSL cert verification.

Change-Id: I79bec423a051eb12ab53042840a519bd4a77b4da
2021-04-16 10:37:25 -04:00
Brian Rosmaita 9a59547a4b Update requirements for wallaby release
Raise the minimum versions in the various requirements files to
reflect what we're actually testing with right now.

Change-Id: Ie7dcc859e1291bd1d50b1ae516be38d8732de836
2021-03-04 21:03:58 -05:00
tushargite96 7faaf75948 Move os-brick to new hacking 4.0.0
Change-Id: I24704ab5b74b2f5bdc5b2343ed5ea1ae6acfe973
2021-03-04 13:54:44 -05:00
Zuul c710f37d70 Merge "Enforce import order with flake8-import-order" 2021-03-04 17:48:07 +00:00
Eric Harney 55376b85ff Enforce import order with flake8-import-order
Use flake8-import-order to enforce the correct
order of imports (stdlib, third-party, project).

Change-Id: I5cadb10ee418dd1f5e8a7d407a93d95ebcbaedb8
2021-03-03 16:27:33 -05:00
Eric Harney 920a35f524 Add fixtures to test-reqs
This is imported by tests/base.py.

Change-Id: I7097c407c0ad1b8da0637f0a9c5353c313283184
2021-01-20 08:07:04 -05:00
Lucian Petrut 4d4c5e82c9 Update requirements
The latest pip version has a stricter dependency resolver,
which broke the "lower-constraints" job for quite a few openstack
projects, including os-brick and cinder.

This change alings the os-brick dependency version constraints with
the ones used by Cinder, thus fixing the lower constraints job.

Change-Id: I4a6ac7ec0974372dc6f1585a797c7023c2fd8d78
2020-12-14 15:01:54 +00:00
Zuul 47cf8fbff1 Merge "Add doc linting to pep8 target" 2020-08-26 16:09:39 +00:00
Eric Harney e24bf5fd48 Bump hacking to 3.1.0
Change-Id: I8263f2eb7476f80f1d744b7435c48173821eb90e
2020-07-16 10:06:41 -04:00
Sean McGinnis eecfe7294a
Add doc linting to pep8 target
This adds a doc8 check to our pep8 job so both code and docs are lint
checked. This matches what is done in the cinder repo.

Depends-on: https://review.opendev.org/736382

Change-Id: If7b9414b8bbf4a41c0744460f16ff80a1a9cd94c
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-06-22 09:43:03 -05:00
Eric Harney 0804e817de Bump pycodestyle to 2.6.0
This brings in a couple of new checks, and
fixes E741 errors.

Change-Id: I04ad07cd4ea1055c0244e7444d25da6a920c530e
2020-06-09 13:40:48 -05:00
Sean McGinnis d95ebc4ec2 Update lower-constraints versions
This updates lower constraints to versions that will work with py38 so
that when we move to running on focal nodes, which has py38 as its
default py3 runtime, the lower-constraints job will continue to pass.

It also cleans out some secondary requirements that are no longer needed
due to our direct dependencies being updated.

Linters are removed that are kept in the global requirements blacklist
as those are not version tracked and are not relevant for our
lower-constraints unit test runs.

Change-Id: Ic9b2b425a4910809a21bd250a4d9730a30fadf22
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-06-09 13:39:16 -05:00
Andreas Jaeger 76c6b3ad96 Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

Remove docs requirements from lower-constraints, they are not needed
during install or test but only for docs building.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I4ce76439f598b73d0520577bb3b47c7f28ed3663
2020-05-21 17:10:15 +02:00
Ghanshyam Mann b63a85aa5b Fix hacking min version to 3.0.1
flake8 new release 3.8.0 added new checks and gate pep8
job start failing. hacking 3.0.1 fix the pinning of flake8 to
avoid bringing in a new version with new checks.

Though it is fixed in latest hacking but 2.0 and 3.0 has cap for
flake8 as <4.0.0 which mean flake8 new version 3.9.0 can also
break the pep8 job if new check are added.

To avoid similar gate break in future, we need to bump the hacking min
version.

Also removing the hacking and other related dep from lower-constraints file
as theose are blacklisted requirements and does not need to be present
there.

- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html

Change-Id: Icbbd8370dd24882b34e3616030ad4dedd1d565a0
2020-05-15 11:23:40 -05:00
Zuul 76cc87d421 Merge "Raise hacking version to 2.0.0" 2020-02-21 12:24:50 +00:00
Brian Rosmaita e883a65444 Drop requirements for unsupported python versions
We stopped testing against py2 with commit df2a396, so remove
unsupported python versions from the requirements files.

Change-Id: I2aca65d734d7b6089f0e3ad7836f509f4b968098
2020-01-09 09:03:55 -05:00
Sean McGinnis 1448c7ff62
Raise hacking version to 2.0.0
We've kept hacking capped for a long time now. This raises the hacking
package version to the latest release and fixes the issues that it
found.

Change-Id: Ib13a3fe3f1a103b5e24a7c5bb7838ffdae2bf198
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2019-12-21 03:11:27 -06:00
pengyuesheng 99c579c51a Blacklist sphinx 2.1.0 (autodoc bug)
See https://github.com/sphinx-doc/sphinx/issues/6440 for upstream details

Change-Id: Ie1952c7b65542ac493e506c8916da0e1a856e838
2019-08-22 13:40:22 +08:00
pengyuesheng 7465d90254 Bump the openstackdocstheme extension to 1.20
Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.

Change-Id: I2281904c98f574dc5f42f31a12ebf5d1a4bdb48c
2019-08-02 14:59:41 +08:00
jacky06 6cbe27051c Sync Sphinx requirement
1. Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.
2. Remove unncessary "=="

Change-Id: I2c87490faba283c4d4bcb3fbe386955a49601945
2019-07-14 15:02:20 +00:00
ZhijunWei e6ddc92efb Update hacking version
Use latest release 1.1.0 and compatible changes w.r.t pep8

Change-Id: I44910cd34930799dc04166a4e57498c84210f14d
2019-01-18 21:30:00 -05:00
Vu Cong Tuan 5ce69faed0 Remove testrepository
This commit is a follow-up of "switch to using stestr"
which was merged already [1].
After switch to using stestr, testrepository is unnecessary
and should be removed.

[1] https://review.openstack.org/571975

Change-Id: I702720f5fcebbd9b0fa0e7e387c7a4d3f1bf4542
2018-07-11 17:51:51 +07:00
Charles Short 80d222a847 Switch to using stestr
According to Openstack summit session [1] stestr is
maintained project to which all Openstack projects
should migrate.
Let's switch it then.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: I5bfb3f34c27e393197456edf9b16010875fa9b7c
Signed-off-by: Charles Short <zulcss@gmail.com>
2018-06-03 08:19:28 -04:00
OpenStack Proposal Bot b8db5c0af7 Updated from global requirements
Change-Id: I2ea2cca9e9ce833d6661e1eda4fcebe2f3528bbf
2018-03-15 07:43:42 +00:00
OpenStack Proposal Bot fbd282f7d2 Updated from global requirements
Change-Id: I2e9662617252b9a37ccb214a36a8fc63a0590541
2018-03-13 07:19:20 +00:00
OpenStack Proposal Bot 75af502461 Updated from global requirements
Change-Id: I0114cd724a51a0897131afad24a8132a7d502c93
2018-03-10 13:40:06 +00:00
OpenStack Proposal Bot 47f74d42f7 Updated from global requirements
Change-Id: Ib265868dd20eab5b6004f1e742e544549d62dccc
2018-01-27 21:47:41 +00:00
OpenStack Proposal Bot 1760d0f463 Updated from global requirements
Change-Id: Ifc38a4e51999600876cde313eef05d14246ff15a
2018-01-18 03:21:01 +00:00
OpenStack Proposal Bot c4ed763329 Updated from global requirements
Change-Id: I30933d182943b4d74d2ee90a94ec5a2d14ebe3c1
2018-01-16 12:45:11 +00:00
melissaml 2dcc01f3d5 Cleanup test-requirements
python-subunit is not used directly anywhere
and it is dependency of both testrepository
and os-testr
(probably was used by some tox wrapper script before)

Change-Id: I3f54fdbe876b2dd052d15c90dfafecd8baa03c45
2018-01-03 17:26:29 +08:00
OpenStack Proposal Bot 6835b885dc Updated from global requirements
Change-Id: I3d851f3f774336db6af8e31e8893dc50cf5853fc
2017-12-19 02:05:57 +00:00
OpenStack Proposal Bot e8fa8fd7d3 Updated from global requirements
Change-Id: Ia68bad671c55ac56a0b13649741139b1f6c65e6c
2017-11-16 11:19:54 +00:00
OpenStack Proposal Bot fe128f523f Updated from global requirements
Change-Id: I9a2dd3db8c72af01e2ce949a2852deaf6ec80588
2017-09-22 12:59:32 +00:00