Commit Graph

157 Commits

Author SHA1 Message Date
Stephen Finucane b68be4b70e Bump hacking, other flake8 plugins
Address the couple of small issues it highlights.

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I0b0b8ff96d024cc3432ce902e781fff7e594924e
2023-12-18 10:20:25 +00:00
Stephen Finucane 9df23dc6a8 Bump bandit
Address incompatibility with Python 3.8, which happens due to the older
bandits use of the private '_ast' module instead of 'ast' [1] and the
deprecated 'Num' having been removed from the former. The bump requires
an additional nosec for a line that is misidentified as a hardcoded
password.

A note about requirements ordering is removed as it hasn't been relevant
since pip 20.3 introduced the new dependency resolver.

[1] 09b0207e2b

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: Icaaa3a2e24429bba5cf70c04062cfa5820c8a1bf
2023-12-18 10:17:14 +00:00
Hervé Beraud 11faa0e67d Fix linters and bindep on jammy
Bump linter requirements - follow the changes
made in keystone in commits
6dfde5b48b388e32e34a385c3a9ef48da7c7c49b and
5c71ebd7a92d25df83e2e7cc5fad9990e9eebbf5 in
order to fix compatibility with Python 3.10.

Remove python-dev from bindep - it's no longer
supported by jammy and lead us to the following
errors with the announce-release job:

```
No package matching 'python-dev' is available
```

Co-Authored-By: Herve Beraud <hberaud@redhat.com>
Change-Id: If687a2678733ce018bd31c602140f073ab1a1a65
2022-12-01 12:14:33 +00:00
Sean McGinnis 8915fabc38
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: I228212d8347a33a6bc2735a8506acffe58bee2ec
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-06-10 06:42:37 -05:00
Zuul e96c2102ad Merge "Use unittest.mock instead of third party mock" 2020-06-05 04:21:48 +00:00
Zuul 7d03b2b2f4 Merge "Switch to newer openstackdocstheme and reno versions" 2020-05-29 18:59:56 +00:00
Sean McGinnis edc2ae4249
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: I07d61e1a8f18d65acdf86cdd61f7d9e28157f1d7
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-05-29 10:37:58 -05:00
Ghanshyam Mann fdd4078202 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.

Cap pycodestyle also  as flake8-import-order does not cap the pycodestyle
and pull its latest version and break things.

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

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

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

Change-Id: I003f8f63e06c5263ef88df9dab90bbd74cb62ea5
2020-05-22 09:38:27 -05:00
Andreas Jaeger 5b98e12acb 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.

Disable openstackdocs_auto_name to use 'project' variable as name.

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: I23798a960616d53d1cc54342640e670fc677738d
2020-05-21 12:53:08 +02:00
Monty Taylor ae534646b3 Re-add python3.5 testing
keystoneauth is a little special in the world, in that it's an user
facing library and takes pride in staying compatible. As such it
doesn't change much, so the likelihood that patches will land that
break python3.5 is really low in the first place.

Although the overall openstack python3 support goal puts a min of
python3.6 - which is a great choice, keystoneauth has a big user,
OpenStackSDK, that is keeping python3.5 because OpenStackSDK has
a big user - Zuul, that still supports python3.5.

To be friendly to everyone, keep the py35 unit tests just to make
sure nobody lands f-strings or anything.

Once Zuul drops python3.5 we can circle back around and drop it
here too.

Remove openstackdocstheme from test-requirements.txt. It only
needs to be in doc/requirements.txt.

Change-Id: If380bbf77b757655b1dc55322f4636ef83986fe5
2020-04-19 10:33:33 -05:00
Andreas Jaeger 1accaf2d8a Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
  know about the requirement
- Remove obsolete sections from setup.cfg
- Update classifiers
- Update requirements, no need for python_version anymore
- Cleanup doc/source/conf.py to remove now obsolete content.
- Use newer openstackdocstheme and Sphinx versions
- Remove install_command from tox.ini, the default is fine
- Remove hacking from doc/requirements, we don't need to autodoc it.
- Remove Babel, this repo does not use it.

Change-Id: I8ad7b5e6ef11ea51c587ff58bfc54aee4fcda9da
2020-04-17 18:46:54 +02:00
Andreas Jaeger c096099416 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Update local hacking checks for new flake8.

Remove hacking and friends from lower-constraints, those are not
needed for co-installing.

Change-Id: I59f0854c089a6ed4f0c4dad7755f946dc95ada3a
2020-03-31 20:11:31 +02:00
Colleen Murphy b56a2a82d5 Cap bandit
Pin bandit to <1.6.0 because subsequent releases don't work for us.

Change-Id: I5a6d0b7b1e5c9fda4e16b107b026fac2b44a051f
2019-06-19 09:35:49 -07:00
Vishakha Agarwal 70720ff336 Blacklist bandit 1.6.0 & cap sphinx for 2.7
The latest version of bandit has broken directory
exclusion, so multiple test files are getting
flagged. This change blocks version 1.6.0 while
this issue is fixed for 1.6.1.

This change also caps sphinx at <2.0.0 for python version 2.7.

Change-Id: Id4db764200be068df0dbe96306c2d53f79b49af7
2019-05-24 10:06:00 +00:00
Colleen Murphy 3569aa8dd1 Remove os-testr from requirements
keystoneauth is switched to stestr, we don't need to depend on os-testr
anymore.

Change-Id: Ie3fc5e5b03f5c0865bf3f499666f504703cd0b0d
2018-09-05 13:04:16 +02:00
wangxiyuan ebe781a3ea Add minimum version for requirements
OpenStack requirements now checks the minimum
verion for each requirements library[1].

This patch added the missing one to let the CI happy.

[1]: https://review.openstack.org/#/c/574367

Change-Id: I0deaa8f2b3248955d5a7baa7b2cb531516343ffe
2018-06-15 08:51:15 +00:00
Doug Hellmann f41e304849 add lower-constraints job
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.

Also fix the lower bound for requests-kerberos.

Change-Id: Ie5da1d132321b2cffea3eb8522462daad45900b5
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-19 09:54:28 +02:00
Zuul 904fb5b2a0 Merge "Remove tox_install.sh and align with constraints consumption" 2018-03-23 22:00:02 +00:00
Monty Taylor 8ece7fcf2d Remove tox_install.sh and align with constraints consumption
As part of removing reliance on the old and deprecated zuul-cloner, we
need to shift constraints declaration to the deps line. This means we
unfortunately have to duplicate the extras declarations into
test-requirements - because otherwise the contraints for keystoneauth
conflicts with the installation of itself.

Change-Id: If162dde93423a495064c4ae1a5dad4e7eb8f9577
2018-03-23 19:15:31 +01:00
OpenStack Proposal Bot f04d1d0ed6 Updated from global requirements
Change-Id: I9bb8a55936d85d75631d7d729e5205e9faf3c024
2018-03-23 01:02:37 +00:00
OpenStack Proposal Bot ce78397bff Updated from global requirements
Change-Id: I02b333b1cf75419bfad64159976f5aba0f304125
2018-03-15 07:03:34 +00:00
Colleen Murphy 8bd6312ebc Add pep8 import order validation
Add the flake8-import-order library to our test requirements so that we
can avoid these PEP8 violations and maintain consistent import ordering.
Also fix our violations.

This library is in requirements but is blacklisted from being
automatically updated since it is never shipped. For now, don't bother
to pin it.

Change-Id: I4e788292b98b7f2f835cc80081763b2d249fe43e
2018-02-15 20:07:04 +01:00
OpenStack Proposal Bot 932aa61c98 Updated from global requirements
Change-Id: I5cf4332db4fadd403cfa2720be74f028892bc387
2018-01-24 00:57:18 +00:00
OpenStack Proposal Bot ff44f4f242 Updated from global requirements
Change-Id: I01a4608fae8a381ca9dd80a94e0e7d88be173b0c
2018-01-17 20:37:08 +00:00
OpenStack Proposal Bot 4699dac720 Updated from global requirements
Change-Id: Ieb8ee69658654dfd9aed8538ada304b8f77e9421
2018-01-16 04:09:38 +00:00
OpenStack Proposal Bot e1243d924b Updated from global requirements
Change-Id: I609492b0cbe42b5112eb0af6803962c812a801ce
2017-12-21 00:21:57 +00:00
OpenStack Proposal Bot f431ba3981 Updated from global requirements
Change-Id: Ia79679de2b6df43ed8bc806d36a170f72675e757
2017-11-16 11:07:04 +00:00
OpenStack Proposal Bot 38e4a675a1 Updated from global requirements
Change-Id: I64b6a6bacd16ec810943680432fd6a5c459448fb
2017-11-14 19:03:15 +00:00
OpenStack Proposal Bot 7f41c9b9e5 Updated from global requirements
Change-Id: Ib2f4a05998d74ea4db3c8a00a8b68d47245adbcd
2017-09-22 12:52:21 +00:00
Monty Taylor ea3bfb1beb
Migrate to stestr
ostestr has already updated to stestr. Update the files here to make
sure it works properly.

Change-Id: I172cbb158f728a74bcb976fa68b78c28589eaa0c
2017-09-20 15:47:15 -05:00
OpenStack Proposal Bot 4b15f5706a Updated from global requirements
Change-Id: I925ed8f1e685c7ae73aabe24312808daf96ecee3
2017-08-26 11:33:45 +00:00
OpenStack Proposal Bot 6be1c5e5a7 Updated from global requirements
Change-Id: I2c969728051add1be0d5f64211e60ec736292c62
2017-07-28 12:50:19 +00:00
Van Hung Pham d8f102779b Switch from oslosphinx to openstackdocstheme
As part of the docs migration work[0] for Pike we need to switch to use
the openstackdocstheme.

[0]https://review.openstack.org/#/c/472275/

Change-Id: I4a7b8cf6f7b3400f4861f1f19ad197cca67efff2
2017-06-30 14:18:48 +07:00
OpenStack Proposal Bot cd7aa77069 Updated from global requirements
Change-Id: Ib3f0146344e19df765d37910f91aa3e1a7ea8afe
2017-06-29 02:19:11 +00:00
OpenStack Proposal Bot 0a62f6acd5 Updated from global requirements
Change-Id: I26d29716fa43216ba2dd0b0f640a0190c9d2e320
2017-06-15 16:24:41 +00:00
OpenStack Proposal Bot aec306a269 Updated from global requirements
Change-Id: Iab707ac32d8baf204abb8d954b14627d549c9446
2017-06-02 21:56:52 +00:00
OpenStack Proposal Bot 408572a58a Updated from global requirements
Change-Id: I9811f8f7f42296db3bb321f96feed6dd266af65e
2017-05-17 03:49:11 +00:00
OpenStack Proposal Bot 7a46ef1076 Updated from global requirements
Change-Id: I6065522d08b5e067f576ac796ac680c5989c275a
2017-05-15 00:45:32 +00:00
OpenStack Proposal Bot 63573d618c Updated from global requirements
Change-Id: I9be7ed12825d2b81ef916d47abc86c735840d4ed
2017-03-13 19:32:47 +00:00
Brant Knudson fdc454c154 Remove unused test requirement pycrypto
This package wasn't used in the tests or anywhere.

Change-Id: Ibf1a671e63ed62bd8f94e752d54efb25136db5bc
2017-03-09 08:06:17 +00:00
OpenStack Proposal Bot c12f070b81 Updated from global requirements
Change-Id: I77d2a6db447269c85582c36b24b6af6694e8d330
2017-03-08 22:46:11 +00:00
ricolin ee36aa3fda Update test requirement
Since pbr already landed and the old version of hacking seems not
work very well with pbr>=2, we should update it to match global
requirement.
Partial-Bug: #1668848

Change-Id: I3f0d5c01f1de5913abfb422846796ad42a98a954
2017-03-02 17:13:44 +08:00
OpenStack Proposal Bot 207c348d54 Updated from global requirements
Change-Id: Ibf2b4d1f742b7ea6bda394da7512b544904055a4
2017-02-11 17:43:23 +00:00
Dirk Mueller 0e6a57621a Remove discover from test-requirements
It's only needed for python < 2.7 which is not supported

Change-Id: I822cca31b7e4282f55d881db53fbfe8de86c55a3
2016-12-15 08:48:10 +01:00
OpenStack Proposal Bot da701f0a39 Updated from global requirements
Change-Id: I9400e4c268baea3b061897a0ae82043e48445222
2016-11-06 01:59:47 +00:00
OpenStack Proposal Bot 868f6c573d Updated from global requirements
Change-Id: I87a71b09301542d886790ec37de39976da99170e
2016-11-02 15:32:50 +00:00
OpenStack Proposal Bot e5b9dbc385 Updated from global requirements
Change-Id: I3cd006656fc47af2819586eef5ed7bcf432017fc
2016-10-27 12:15:00 +00:00
OpenStack Proposal Bot a70a6a1ca9 Updated from global requirements
Change-Id: I5a81cbd4deb4ab006f43afd2a18b48b231d42818
2016-10-22 01:20:08 +00:00
OpenStack Proposal Bot 92bba25391 Updated from global requirements
Change-Id: Ib5314a7feec4eda5158bfa7fede8062c6c0969d6
2016-10-21 00:43:29 +00:00
OpenStack Proposal Bot 1004db07b7 Updated from global requirements
Change-Id: I7c8b691b0290f79c72f86719dff667a61ea5ca9e
2016-09-30 19:59:41 +00:00