Commit Graph

111 Commits

Author SHA1 Message Date
Stephen Finucane 2b7a679a42 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: Could not find a version that satisfies the requirement
  hacking<3.1.0,>=3.0.1
  ERROR: No matching distribution found for hacking<3.1.0,>=3.0.1

Resolve this by moving the 'hacking' and 'flake8-import-order'
dependencies from 'test-requirements.txt' to 'tox.ini' since we don't
need to use our constraints machinery for linters.

While we're here, also drop 'bandit' from 'test-requirements.txt'. This
was introduced in change I691829c1224557d1d239c9f665ac539d0f13c4d3 but
commit f78173f0e1 (there's no change ID)
removed the 'bandit' testenv from 'tox.ini' meaning we no longer use
this anywhere.

Change-Id: I744efd75c4cbf8c630c5f95dc254acff581be959
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2021-01-11 10:35:42 +00:00
songwenping b58bf34e71 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.

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

Change-Id: I0833fad1c605994a774a486d15c50033ba4ae690
2020-10-12 16:44:17 +08:00
Stephen Finucane c666fcefb3 requirements: Drop os-testr
We've switched to stestr.

Change-Id: If5c2395e66322fbb38a6cbfa0196aa8edfc5c442
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2020-07-09 11:33:48 +01:00
Andreas Jaeger eac4ac1267 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.

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 and test-requirements, 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: I67fd82bf3755ee6942f8c97a05cd939225ddf5ad
2020-05-31 20:42:26 +02:00
Riccardo Pittau 20b922357e Add pep8 import order check
Set flake8-import-order version to 0.17.1
Full py3 compatible version.
Add all Python3 modules to stdlib list.

Change-Id: I787202eee18c99aaa659e0267235f4c413a389e9
2020-05-01 23:11:56 +02:00
Riccardo Pittau 2d98486d06 Use mock from unittest
Since mock is part of unittest std lib now, we can just use it and
remove the external dependency.

Change-Id: Id71c701b8053af5f8ab26c9f6fa66140e76aa8fc
2020-05-01 20:28:01 +02:00
Andreas Jaeger 2ade7e7c10 Update to hacking 3.0
Hacking 3.0 was just released with minor changes, update to the new
version.

Change-Id: I819d31d7c44942bbe24b8d743776991a12149728
2020-03-30 17:42:55 +02:00
Andreas Jaeger 592d80ac1c Update hacking for Python3
The repo is Python 3 now, so update hacking to version 2.0 which
supports Python 3.

Blacklist:
W504 line break after binary operator

Fix:
E305 expected 2 blank lines after class or function definition, found 1

Change-Id: I713186061d5484ee2cd5317eb9192646fd3a1099
2020-03-28 08:08:20 +01:00
OpenStack Proposal Bot 106478d53e Updated from global requirements
Change-Id: I4e071c86a7b0ba933b93682918a1e77be361277f
2018-02-17 10:05:38 +00:00
OpenStack Proposal Bot 3927428115 Updated from global requirements
Change-Id: I30424ec68ecfec9c535468868879865cad361f0a
I574427b11f9773cfc4b277dc856510ab306c69d9
2018-01-24 02:15:28 +00:00
OpenStack Proposal Bot a883bd566a Updated from global requirements
Change-Id: Iffe9d46e697f57baa622ad689fae2104e3004bfb
2017-11-16 11:20:44 +00:00
OpenStack Proposal Bot 026f05678f Updated from global requirements
Change-Id: I7f26059c77170d0cf049adccdf15745188cc508c
2017-09-13 13:00:26 +00:00
OpenStack Proposal Bot 0bafd1fcd0 Updated from global requirements
Change-Id: I376c065f2a44287658e96d39aac80673c49e07dc
2017-09-11 21:46:45 +00:00
OpenStack Proposal Bot cad406de2c Updated from global requirements
Change-Id: I28d3e707399a0be2e4847493d0846438a5f13dc7
2017-08-18 11:39:44 +00:00
OpenStack Proposal Bot 2dc5d886e6 Updated from global requirements
Change-Id: I5bdfc1fcbdd68a899a0e845bdf938eda78ea7440
2017-07-27 20:30:51 +00:00
OpenStack Proposal Bot a5996213cf Updated from global requirements
Change-Id: Id3cb0e7141fe0c11424e431fa8a656bfd47aec13
2017-06-27 12:19:52 +00:00
Doug Hellmann 8e164af6bb switch from oslosphinx to openstackdocstheme
Change-Id: Ifa30f6c05cc2e6fd5467c4d3b20fd76218c3c90a
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-06-22 14:47:09 -04:00
OpenStack Proposal Bot 2c9d95912e Updated from global requirements
Change-Id: I5697430ab8af3119acc47c8cac42cf00cda63896
2017-05-23 11:57:41 +00:00
OpenStack Proposal Bot 8b5f50dae3 Updated from global requirements
Change-Id: I8b41ce7a64a615b14cc87893eb79465186a5ad91
2017-02-10 05:57:24 +00:00
OpenStack Proposal Bot 1e063ad34c Updated from global requirements
Change-Id: Ie4debf60dfcabefcab3ceb5b838e874b6fcb0cdf
2016-11-09 20:12:13 +00:00
OpenStack Proposal Bot bde65666b4 Updated from global requirements
Change-Id: I0b48c51f749aa8037636b6b9cb79ec58fe4e615e
2016-10-22 01:25:46 +00:00
OpenStack Proposal Bot 1833c66da6 Updated from global requirements
Change-Id: Ia119ebf7fef915c410be2263d943023555089d61
2016-09-30 10:23:02 +00:00
OpenStack Proposal Bot 32cab47ab2 Updated from global requirements
Change-Id: I57b03fcd377dcd08ef5b2c7abfda8f4175ac9101
2016-09-28 16:59:24 +00:00
OpenStack Proposal Bot 58dd24f001 Updated from global requirements
Change-Id: I0db3086f38bb683cc2f70d9370b7059bc6a66f21
2016-09-27 10:06:11 +00:00
OpenStack Proposal Bot 433ddf03bc Updated from global requirements
Change-Id: I5e78d325a686705fad14811b685782cec7ebb640
2016-09-26 04:25:55 +00:00
OpenStack Proposal Bot 13cee0cf85 Updated from global requirements
Change-Id: I8a1fb12721fd0c55e34deb130e0a177ef9471d97
2016-08-18 05:55:40 +00:00
OpenStack Proposal Bot 703dc2fb89 Updated from global requirements
Change-Id: I8b1cca6efd39863afe6994bb9bd52fbb2e456790
2016-07-30 01:23:05 +00:00
qtang 40e1536043 Add reno for osc-lib release notes management
Change-Id: I95e2df49503e1bce6cf1a329e86a428ddf5db426
2016-07-29 13:04:25 +08:00
Jenkins ef4a4f143b Merge "Remove unused releasenotes infrastructure" 2016-07-28 13:15:51 +00:00
Thomas Bechtold 13850bc044 Remove discover from test-requirements
It's only needed for python < 2.7 which is not supported

Change-Id: I1768a58068e41789d5df432ecc198db189052077
2016-07-14 07:46:07 +02:00
Andreas Jaeger 63b84519f2 Remove unused releasenotes infrastructure
There is no releasenotes directory, so the tox releasenotes environment
always fails.

Remove the environment and the reno dependency since both are completely
unused.

Change-Id: I721797f7a53965243ab1d4650c994336e36804dc
2016-07-13 09:44:15 +02:00
Thomas Bechtold ed86f63774 Remove tempest from test-requirements.txt
It's not used anywhere in the codebase.

Change-Id: I99f2b64b6a08eee30836041b1a75fdd20ac9a61a
2016-07-06 09:31:32 +02:00
OpenStack Proposal Bot 051f8f49b3 Updated from global requirements
Change-Id: Ia659383daec061d77e0c8429d737979b26c14035
2016-07-01 04:23:22 +00:00
OpenStack Proposal Bot c0ee3b1830 Updated from global requirements
Change-Id: I9e690bcd2fa34a2a5618c5a0eb51f78005c7f523
2016-06-24 03:16:21 +00:00
OpenStack Proposal Bot f06ed11284 Updated from global requirements
Change-Id: Ie33d06ca50fcb986aa1736f99012c922e38f08d8
2016-06-23 15:46:44 +00:00
OpenStack Proposal Bot e0084e35a1 Updated from global requirements
Change-Id: Ie4a21278f28d721d6202d4871771b5d31fe1074e
2016-06-21 18:04:12 +00:00
OpenStack Proposal Bot 619859009a Updated from global requirements
Change-Id: I70ab422fd0e1dc5fcc06a087d9a4f08c4b8be378
2016-06-02 21:10:21 +00:00
OpenStack Proposal Bot 6c8f414003 Updated from global requirements
Change-Id: I3e79863301b76d9b77d2ef4f4920643109513e42
2016-05-30 20:44:46 +00:00
OpenStack Proposal Bot e8d95be561 Updated from global requirements
Change-Id: I993d983ad5db523cb16d7bae3c32c909005b398c
2016-05-26 17:03:37 +00:00
Dean Troyer 641ae6bccb Trim requirements.txt and test-requirements.txt 2016-05-12 16:07:24 -05:00
Jenkins f3176b04d4 Merge "add a bandit environment to tox" 2016-05-02 14:03:29 +00:00
Daniel Gonzalez 970a2965fc Replace tempest-lib with tempest.lib
tempest-lib is deprecated, so replace it with tempest.lib.

Co-Authored-By: Sheel Rana <ranasheel2000@gmail.com>

Change-Id: I0495eba110bb7581623fbcf49dc63a27e9cb6d64
Closes-Bug: #1553047
2016-04-29 08:33:45 +00:00
Michael McCune fdb2d16236 add a bandit environment to tox
This change is being proposed as part of the OpenStack Security Project
working session at the Austin 2016 summit. It adds support for running
the bandit[1] security linting tool against the python-openstackclient
codebase. This change adds a targetted environment for bandit and also
adds bandit as part of the pep8 job.

The bandit configuration has been tailored to exclude tests that are
currently producing warning against the codebase. These issues will be
followed up with bug reports and patches.

[1]: https://wiki.openstack.org/wiki/Security/Projects/Bandit

Depends-On: Iccd81c17e84df03d249c1012277dad9cb68c5845
Change-Id: I691829c1224557d1d239c9f665ac539d0f13c4d3
2016-04-28 14:52:33 -04:00
OpenStack Proposal Bot 0d3f1c26ce Updated from global requirements
Change-Id: I8e2060cd483262c88c76b49a060aa7288fa2bbb6
2016-04-20 14:41:58 +00:00
OpenStack Proposal Bot 55a7d39f2f Updated from global requirements
Change-Id: I9fe06c9739c3625abd7cb03ac97c58bb9cdbc5bd
2016-04-08 00:33:16 +00:00
OpenStack Proposal Bot c3fd814d83 Updated from global requirements
Change-Id: I2af3dc17e6f2c4cada96f1ff08627a3b41196f4d
2016-04-07 17:33:22 +00:00
OpenStack Proposal Bot f589f795e8 Updated from global requirements
Change-Id: Icaa101bded765c81774d73d84d552d41e40fec72
2016-03-20 15:47:37 +00:00
Steve Martinelli eb19946cb6 update docs with status of plugins
several other projects have joined the bandwagon, let's add them
to the list, these include:

python-ironic-inspector-client
python-muranoclient
python-senlinclient
python-tripleoclient
python-searchlightclient

Change-Id: I9165daf64bf817b9e12ee8fc27ce6e11ebe01e5e
2016-03-17 19:10:44 -04:00
OpenStack Proposal Bot 1be4acaab9 Updated from global requirements
Change-Id: If9408d7057b7936427b4b6842318c583ebad828e
2016-03-16 19:20:30 +00:00
OpenStack Proposal Bot 681f4d6e98 Updated from global requirements
Change-Id: Icc45c24eebbdd524254dc3200b016fe75b621b15
2016-03-02 19:23:53 +00:00