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: I4869426a4c39071a9e6d60c02ed13f8e5bb72536
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.
Set openstackdocs_auto_name to use 'project' as name.
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.
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.
See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html
Change-Id: I628af06b3702925bef790b3b3d1c47c2d7c7cbb0
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: I76d48e28a9c0a987acde2bb8262fc02aded302ef
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py
- Remove obsolete sections from setup.cfg
- Update classifiers
- Use newer openstackdocstheme and Sphinx versions
- Cleanup */source/conf.py to remove now obsolete content.
- Remove install_command from tox.ini, the default is fine
Change-Id: Ib70fcdc751a1e84d3160558361a76bbd328f4625
The repo is Python 3 now, so update hacking to version 2.0 which
supports Python 3.
fix issues found by flake8.
Change-Id: I2f14cb6f67a0c9b4c0dcbf8d93c26eb99b9b9d33
This commit adds PDF documentation build target 'pdf-docs' that will
build PDF versions of our docs. And this commit also updates 'docs'
target to use sphinx-build command as well as 'pdf-docs' target.
This is one of the Train community goals:
https://governance.openstack.org/tc/goals/selected/train/pdf-doc-generation.html
Change-Id: Iae6bc9ae92fe61385c424923eaad35dc449880e9
Story: #2006070
Task: #35455
This commit separates the requirements libraries for the docs job in
tox.ini. The latest sphinx doesn't work in Python2 environments anymore.
So, we need to split that into the test and docs jobs.
Change-Id: I7255cd9af0dfb5c1f66c1aa65d0ddfb144079836
This commit updates envlist in tox.ini and adds Python3.7 in classifier.
We should have py37 instead of pypy.
Change-Id: I2f7a6b7eb8099cfd34f0fe84bb01f23c115c9dda
This commit introduces doc8 package to sanity the documents. As a
result, one minor doc8 violations were found and fixed.
Change-Id: I0e9d6212536e59e438a14f632c4fc6016c31cc60
This commit adds metadata column to the coverage table. This should be
useful to filter results in the future.
Change-Id: I224d340b70ddd2c3cf7923f517281020470a9e45
This commit add *.db to .gitignore to ignore the files for testing. We
don't need to track such files.
Change-Id: If2cdc7169453c46324d0f6e100448b07b9ffd68c
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.
We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.
We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.
Change-Id: I22f6e478534a5fd90af565812dc81a0fac2f2132
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.
We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.
We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.
Change-Id: I66d77a977b76118d3a7b74f1f5b238370b43a38d
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Use openstack-tox-cover template, this runs the cover job
in the check queue only.
Remove jobs and use template instead.
Change-Id: I998c864f6d63921d6b424f81b0d38561edf5675c
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: I5ece9bc05363937be7e0cfda8d73098129ad6fe9
Story: #2002586
Task: #24327
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: Ie230833a7a49ccd49c67a3969adb0a0ff7b798b7
Story: #2002586
Task: #24327
This commit switches to use stestr instead of os-testr. It should be
better to reduce the test runner complexity.
Change-Id: Ia16ad5ed6d9ed7be9dc6902f875b0144b24a938a