... because hacking 3.0.x is too old.
A few checks are disabled because these detect invalid problems.
Change-Id: I268ae097eecd4c3562b1005658cf2927579659d0
This updates the test-requirements to a more recent flake8-docstrings
version. I also added an ignore for __init__ methods, this may be
something that we want to revisit but are not needed for now.
We also slip in a little change that renames whitelist to
allowlist. It is also a gate failure and thus is circular with
the pep8 fix: neither can be merged separately.
Change-Id: Id12f6e3b5d603531744d02f7bafab0b80696751e
Switch to openstackdocstheme 2.2.1 version. Using
this version will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems
Update Sphinx version as well.
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.
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: I6c6775f75235dab2b9ed7820bfc5102bf5b04965
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: Ib3d13c83dcc9f660d89669c53c7782ca68da8e64
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Blacklist W503, W504
Fix other problems found
Change-Id: Ic0391ae45b9d6d1ee5e2c1df81d85e655250a51d
Now that we don't need to support py27 we can use the standard library
unittest.mock module instead of the third party mock lib.
Change-Id: I1dfdb05ddf78cd8243f31956ccf8173b2059ad33
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.
Change-Id: Ibc5757b36d6a5b8c342d959087136064ed5ab6f5
Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
Include small cleanups:
* remove install_command from tox.ini, this is the default
* Use sphinx-build as modern way to run sphinx, remove setup.cfg
settings for build-sphinx
* Use sphinxcontrib-apidoc for docs with newer sphinx
* Remove obsolete doc/source/conf.py broken
* Add python-requires to setup.cfg to make Python 3.6 requirement
explicit
* Remove obsolete pbr setup-hooks
Co-Authored-By: Andreas Jaeger <aj@suse.com>
Change-Id: Iec8c47b82022b616b8361651bf23f853b0ce5624
This file was added in the previous commit, but if it doesn't appear
in setup.cfg it won't be installed.
Change-Id: I4498aaf0b646046611291ccca7536f9099b97446
A temporary fix was added to get around a bug in how pbr handles
its autodoc_tree_index_modules setting. Since this bug is fixed we no
longer need the work around.
This change is needed since the workaround is now incompatible with the
latest version of Sphinx.
See also[1][2].
[1] https://review.opendev.org/191633
[2] https://review.opendev.org/121667
Change-Id: Idf9dc73d99b4233f49effe24aa047959b1a2ef2c
With python3.7 jobs added to the Zuul jobs,
it makes sense to add this to the tox config
too so that developers can run python3.7 tests
as well.
Python 3.5 was the target runtime for the Rocky release.
The current target py3 runtime for Stein is Python 3.6,
so there is no reason to keep testing against the older version.
Change-Id: Icada08448d9bf3cc0f1d522d93b07d8789adad14
The use of MD5 was removed in Icaeb3305c788db2913fe99792ea6311d218b3410.
This just adds a release note to communicate that to consumers.
Change-Id: I6a6487335852a71c3f5591c9bfc7acd6bd14cd0d
FIPS does not allow md5, some systems like RHEL needs to have FIPS
compliance, in order to execute some routines like when try to
use keystone-manage. As a general rule, we should avoid using md5
if we can and move over to SHA wherever possible.
Change-Id: Icaeb3305c788db2913fe99792ea6311d218b3410
Closes-Bug: #1767024
Quotes around {posargs} cause the entire string to be combined into one
arg that gets passed to stestr. This prevents passing multiple args
(e.g. '--concurrency=16 some-regex')
Change-Id: Ib74244eea0ff4fa37dc3308360691059c6fa448b
Small cleanups:
* Use openstack-tox-cover template, this runs the cover job
in the check queue only. Remove individual cover jobs.
* Use openstack-lower-constraints-jobs template, remove individual
jobs.
* Sort list of templates
Fix cover job, $project is not expanded in tox.ini and thus the job
fails. Use "pycadf" instead.
Change-Id: I72da23a0d6c6b3cc87e66d94c419668fce66e704
This is a mechanically generated patch to add a functional test job
running under Python 3 as part of the python3-first goal.
See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html
Change-Id: I3cf9c67c603496ea777b07fe266df1bb65727206
Story: #2002586
Task: #24304
This is a mechanically generated patch to switch the documentation
jobs to use the new PTI versions of the jobs as part of the
python3-first goal.
See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html
Change-Id: Ie60add7e0451511d661bc98f7c41170e7289e93f
Story: #2002586
Task: #24304
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.
Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.
Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.
See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html
Change-Id: If97c62d66c86cd0cd62f647155178ed63dbc4db0
Story: #2002586
Task: #24304
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.
[1] https://etherpad.openstack.org/p/YVR-python-pti
Change-Id: Ib4c7bb59c92946c3e8b257cbf1ce2f44cb1c40ed