Commit Graph

111 Commits (58ff270a9c54c591e743092f0002997ba5b62b79)

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>
2 years ago
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
3 years ago
Stephen Finucane c666fcefb3 requirements: Drop os-testr
We've switched to stestr.

Change-Id: If5c2395e66322fbb38a6cbfa0196aa8edfc5c442
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
3 years ago
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
3 years ago
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
3 years ago
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
3 years ago
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
3 years ago
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
3 years ago
OpenStack Proposal Bot 106478d53e Updated from global requirements
Change-Id: I4e071c86a7b0ba933b93682918a1e77be361277f
5 years ago
OpenStack Proposal Bot 3927428115 Updated from global requirements
Change-Id: I30424ec68ecfec9c535468868879865cad361f0a
I574427b11f9773cfc4b277dc856510ab306c69d9
5 years ago
OpenStack Proposal Bot a883bd566a Updated from global requirements
Change-Id: Iffe9d46e697f57baa622ad689fae2104e3004bfb
6 years ago
OpenStack Proposal Bot 026f05678f Updated from global requirements
Change-Id: I7f26059c77170d0cf049adccdf15745188cc508c
6 years ago
OpenStack Proposal Bot 0bafd1fcd0 Updated from global requirements
Change-Id: I376c065f2a44287658e96d39aac80673c49e07dc
6 years ago
OpenStack Proposal Bot cad406de2c Updated from global requirements
Change-Id: I28d3e707399a0be2e4847493d0846438a5f13dc7
6 years ago
OpenStack Proposal Bot 2dc5d886e6 Updated from global requirements
Change-Id: I5bdfc1fcbdd68a899a0e845bdf938eda78ea7440
6 years ago
OpenStack Proposal Bot a5996213cf Updated from global requirements
Change-Id: Id3cb0e7141fe0c11424e431fa8a656bfd47aec13
6 years ago
Doug Hellmann 8e164af6bb switch from oslosphinx to openstackdocstheme
Change-Id: Ifa30f6c05cc2e6fd5467c4d3b20fd76218c3c90a
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
6 years ago
OpenStack Proposal Bot 2c9d95912e Updated from global requirements
Change-Id: I5697430ab8af3119acc47c8cac42cf00cda63896
6 years ago
OpenStack Proposal Bot 8b5f50dae3 Updated from global requirements
Change-Id: I8b41ce7a64a615b14cc87893eb79465186a5ad91
6 years ago
OpenStack Proposal Bot 1e063ad34c Updated from global requirements
Change-Id: Ie4debf60dfcabefcab3ceb5b838e874b6fcb0cdf
7 years ago
OpenStack Proposal Bot bde65666b4 Updated from global requirements
Change-Id: I0b48c51f749aa8037636b6b9cb79ec58fe4e615e
7 years ago
OpenStack Proposal Bot 1833c66da6 Updated from global requirements
Change-Id: Ia119ebf7fef915c410be2263d943023555089d61
7 years ago
OpenStack Proposal Bot 32cab47ab2 Updated from global requirements
Change-Id: I57b03fcd377dcd08ef5b2c7abfda8f4175ac9101
7 years ago
OpenStack Proposal Bot 58dd24f001 Updated from global requirements
Change-Id: I0db3086f38bb683cc2f70d9370b7059bc6a66f21
7 years ago
OpenStack Proposal Bot 433ddf03bc Updated from global requirements
Change-Id: I5e78d325a686705fad14811b685782cec7ebb640
7 years ago
OpenStack Proposal Bot 13cee0cf85 Updated from global requirements
Change-Id: I8a1fb12721fd0c55e34deb130e0a177ef9471d97
7 years ago
OpenStack Proposal Bot 703dc2fb89 Updated from global requirements
Change-Id: I8b1cca6efd39863afe6994bb9bd52fbb2e456790
7 years ago
qtang 40e1536043 Add reno for osc-lib release notes management
Change-Id: I95e2df49503e1bce6cf1a329e86a428ddf5db426
7 years ago
Jenkins ef4a4f143b Merge "Remove unused releasenotes infrastructure" 7 years ago
Thomas Bechtold 13850bc044 Remove discover from test-requirements
It's only needed for python < 2.7 which is not supported

Change-Id: I1768a58068e41789d5df432ecc198db189052077
7 years ago
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
7 years ago
Thomas Bechtold ed86f63774 Remove tempest from test-requirements.txt
It's not used anywhere in the codebase.

Change-Id: I99f2b64b6a08eee30836041b1a75fdd20ac9a61a
7 years ago
OpenStack Proposal Bot 051f8f49b3 Updated from global requirements
Change-Id: Ia659383daec061d77e0c8429d737979b26c14035
7 years ago
OpenStack Proposal Bot c0ee3b1830 Updated from global requirements
Change-Id: I9e690bcd2fa34a2a5618c5a0eb51f78005c7f523
7 years ago
OpenStack Proposal Bot f06ed11284 Updated from global requirements
Change-Id: Ie33d06ca50fcb986aa1736f99012c922e38f08d8
7 years ago
OpenStack Proposal Bot e0084e35a1 Updated from global requirements
Change-Id: Ie4a21278f28d721d6202d4871771b5d31fe1074e
7 years ago
OpenStack Proposal Bot 619859009a Updated from global requirements
Change-Id: I70ab422fd0e1dc5fcc06a087d9a4f08c4b8be378
7 years ago
OpenStack Proposal Bot 6c8f414003 Updated from global requirements
Change-Id: I3e79863301b76d9b77d2ef4f4920643109513e42
7 years ago
OpenStack Proposal Bot e8d95be561 Updated from global requirements
Change-Id: I993d983ad5db523cb16d7bae3c32c909005b398c
7 years ago
Dean Troyer 641ae6bccb Trim requirements.txt and test-requirements.txt 7 years ago
Jenkins f3176b04d4 Merge "add a bandit environment to tox" 7 years ago
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
7 years ago
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
7 years ago
OpenStack Proposal Bot 0d3f1c26ce Updated from global requirements
Change-Id: I8e2060cd483262c88c76b49a060aa7288fa2bbb6
7 years ago
OpenStack Proposal Bot 55a7d39f2f Updated from global requirements
Change-Id: I9fe06c9739c3625abd7cb03ac97c58bb9cdbc5bd
7 years ago
OpenStack Proposal Bot c3fd814d83 Updated from global requirements
Change-Id: I2af3dc17e6f2c4cada96f1ff08627a3b41196f4d
7 years ago
OpenStack Proposal Bot f589f795e8 Updated from global requirements
Change-Id: Icaa101bded765c81774d73d84d552d41e40fec72
7 years ago
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
7 years ago
OpenStack Proposal Bot 1be4acaab9 Updated from global requirements
Change-Id: If9408d7057b7936427b4b6842318c583ebad828e
7 years ago
OpenStack Proposal Bot 681f4d6e98 Updated from global requirements
Change-Id: Icc45c24eebbdd524254dc3200b016fe75b621b15
7 years ago