As per the current release tested runtime, we test
python version from 3.8 to 3.11 so updating the
same in python classifier in setup.cfg
Change-Id: I9650983079df2d97f620902a2ba6d797bcf4a544
sphinx-feature-classification was declared python-3-only by change
I0f3e9d980c25545a in release 1.0.1 (2020-04-07 10:02:33 +0000).
It's never had six in requirements.txt despite importing six in
two files. Now that consuming projects are all python-3-only,
six is not being pulled in by some other project's requirements.
So convert six usage to pure python 3.
Change-Id: I1917fda331860332242774019ac7ca54512430e3
In Zed cycle testing runtime, we are targetting to drop the
python 3.6/3.7 support, project started adding python 3.8 as minimum,
example nova:
- 56b5aed08c/setup.cfg (L13)
Also indicates that we support python 3.9.
Change-Id: I76db9a8881ca53f0c43afaf588bd2302fb2a6f5c
Introduced changes:
- pre-commit config and rules
- Add pre-commit to pep8 gate, Flake8 is covered in the pre-commit hooks.
- Applying fixes for pre-commit compliance in all code.
Also commit hash will be used instead of version tags in pre-commit to
prevend arbitrary code from running in developer's machines.
pre-commit will be used to:
- trailing whitespace;
- Replaces or checks mixed line ending (mixed-line-ending);
- Forbid files which have a UTF-8 byte-order marker (check-byte-order-marker);
- Checks that non-binary executables have a proper
shebang (check-executables-have-shebangs);
- Check for files that contain merge conflict strings (check-merge-conflict);
- Check for debugger imports and py37+ breakpoint()
calls in python source (debug-statements);
- Attempts to load all yaml files to verify syntax (check-yaml);
- Run flake8 checks (flake8) (local)
For further details about tests please refer to:
https://github.com/pre-commit/pre-commit-hooks
Change-Id: Iefe2534c4b71444aafcb9cd2286fc766224c468f
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
A release note was added in the wrong location, so it was missed for
that release. Since moving it to the correct location now would cause it
to show up in the next release's release notes, potentially causing
confusion, this just removes the note.
Added over a year ago in:
I0f2bdee6eb67753f5f365b2681c4c7e3ae35c3ec
Change-Id: If9e97bfea07b66a213e39fc9b4877fde9f8f30e5
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
- openstackdocstheme is only needed for docs builds. Move this and some
missing doc-related requirements into the current convention of
doc/requirements.txt so they are not installed when just using the
library.
- oslotest is not used directly. It only helped pick up self.useFixture
from testtools. Since nothing else is needed, just use testtools
directly.
Change-Id: Ibfda6fbe91deaa846b62732c38eef93c393c926f
This switches to the victoria template to pick up py38 and drop py37
unit tests. With the addition of py38 testing, it also adds that
metadata to the package.
Change-Id: I11afa559bdaae91766c0d3bbaaaf5619151553af
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
This updates the extension to return values to indicate it can be run
multithreaded. This allows consumers of the extension to use multiple
threads when building documentation, since sphinx either requires all
projects are thread safe, or else it emits a warning that many of our
projects then fail the build on with treating warnings as errors.
Change-Id: Ie7ce3a3d1c592debf302117fce2c0f3fae0b19a2
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
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_version to not auto-version the documents.
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.
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: I68f27622bc107b956556128b5808e15325e639f9
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Update sphinx requirement, since skipping 1.5.1 is not part of
global-requirements.
Change-Id: Iea521113d66647a8d2d7e129268efb22ca2226c1
Switch to using modern sphinx-build.
Remove obsolete install_command from tox.ini.
Remove cruft from setup.cfg.
Change-Id: I0f3e9d980c25545a0085d406bf4f45fc6d6f4fbd
...per Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
At the same time, set ignore_basepython_conflict
Automatic envs (pyXX) will only use the python version appropriate to
that env and ignore basepython inherited from [testenv] if we set
ignore_basepython_conflict.
Change-Id: I5ab48fe70e49d104290f1c01014e4aa6420e300f
Despite some of the infrastructure being in place, the 'api' key in an
[operation.*] section was being ignored. This commit adds the code to
look for it so it's reported as expected in the output.
Change-Id: I36bde39742f7f3ee60ee10240d836c7083cfa0fd
on_build_finished was operating under the assumption that the
_static directory always exist. This is not a valid assumption if
there are no files there for sphinx to copy prior to the execution
of the 'sphinx_feature_classification.support_matrix' extension.
This patch utilizes the copy_asset() utility to copy files as it
is consistent with other sphinx extensions.
Change-Id: Iba538f7cb595c58a0a401e54edf50dc83c5a72d2
This patch fixes the summary table border to render properly when
other CSS content uses no border for tables.
It also sets the table font size to medium, improving the space used
by the summary table as well as the look of the table.
Change-Id: I0f2bdee6eb67753f5f365b2681c4c7e3ae35c3ec
This patch adds code that copies the CSS file into the _static
directory on build. Previously the CSS file was not included in the
built docs.
Change-Id: Ic7cc52b007b0c40b3aa85a242544c3c6aac16c02
The sphinx add_stylesheet() method was renamed in sphinx 1.8 to
add_css_file()[1]. This patch replaces the use of add_stylesheet()
with add_css_file().
[1] https://github.com/sphinx-doc/sphinx/commit/ \
3afc72fba41f945610263be79d14c95d21478248
Change-Id: Id6eb1f81928fe397352e9daf3673df46aadcc1dd
This patch fixes driver links to render properly in the summary table.
Previously, when a "link" was defined for a driver, the driver titles
were not clickable and the driver link was not used.
Change-Id: I08c45e4f1bd7b206cdc3896ee4dc049bbc4347a2
I don't think these are actually published anywhere but fix it all the
same.
Change-Id: I642d12515a05dfc669d2b270642c8e31c309e7f9
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This is a mechanically generated patch to add a unit test job running
under Python 3.7 and drop the Python 3.5 unit test job.
python3.5 was the only supported python3 version on Xenial. Now that
we have Bionic nodes supporting python3.6 and python3.7, let's switch
to testing with python3.7 in addition to python3.6 in Stein and
beyond.
See ML discussion here [1] for context.
[1] http://lists.openstack.org/pipermail/openstack-dev/2018-October/135626.html
Change-Id: I9a72540b03b41378600c85691b99b5e0e497f846
Story: #2004073
Task: #27440
The drivers listed under the feature details are in a semi-random order.
This adds sorting so they match the order they are listed in the table.
Co-Authored-By: Eric Fried <openstack@fried.cc>
Change-Id: Iabd960dda370df8301aa886ccbe0a7fd5011d5bb
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
The readfp call was deprecated in Python 3.2 in favor of the new
read_file call. This call did not exist in Python 2, so in order to get
rid of deprecation warnings when building feature matrix output, this
aliases read_file in Python 2 to readfp but uses the new call when
supported.
Change-Id: Ia67752ddd898374983c0de38b97122aa31e98441
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
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: I70b974803233fe22bfd61b55b9d6d1c540701254
Story: #2003250
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.
See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html
Change-Id: I7deacb2fdec623b9ad120eb47330551264e17515
Story: #2003250
This seems to have been missed in the import from nova.
Change-Id: Ic38c16aca1e94a9a06ad6efc7f53772b660b68da
Signed-off-by: Stephen Finucane <stephen@that.guru>