Commit Graph

25 Commits

Author SHA1 Message Date
Jay Faulkner b8b28551a2 Update to hacking v6
Hacking now using version 6.0.0. No code changes needed to comply with
new flake8 directives.

Change-Id: Ie04cfb0e946616e28fb5d52ef392bfb3f5428ad6
2023-04-21 12:42:44 -07:00
Hervé Beraud eb5f038b13 Add doc/requirements
This project isn't released but uniformization can't hurt.

The origin of these changes was that we need to specify doc requirements
in doc/requirements.txt to avoid problems with the pip resolver [1]
for the release team [2][3].  Removed specific doc requirements
from test-requirements.txt.

The problem here is that this repos haven't doc/requirements.txt file
and by default in this case zuul will use the test-requirements.txt file
to pull requirements [4].

This requirements file contains extra requirements like flake8 that
collided with those allowed in our job environment and so the new pip
resolver fails to install these requirements and the job exits in error.

This project could meet similar conditions leading to the bug.

[1] http://lists.openstack.org/pipermail/release-job-failures/2021-January/001500.html
[2] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019611.html
[3] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019612.html
[4] https://opendev.org/zuul/zuul-jobs/src/branch/master/roles/ensure-sphinx/tasks/main.yaml#L36

Change-Id: Ie0c8db6331630c5d3a379a9c8c2d87eb0a8fd207
2021-01-07 10:49:37 +01:00
Andreas Jaeger 3d154b5f7a Switch to newer openstackdocstheme version
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.

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: I611663fd224ddbd8a315732966c60ca67a5ffc40
2020-06-03 20:46:55 +02:00
zhangboye 0e717c1fda Fix hacking min version to 3.0.1
Change-Id: I0a425edb633a9421be5c515cff546ee28a742ac5
2020-05-22 10:37:00 +08:00
Andreas Jaeger 7931f9818d Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove obsolete sections from setup.cfg
- Use newer openstackdocstheme and Sphinx versions for Python3
- Cleanup */source/conf.py to remove now obsolete content.
- Remove install_command from tox.ini, the default is fine
- Move python3 to testenv in tox.ini
- Switch to hacking 3, fix problems found.

Change-Id: I26fcab3b288b5ed64c74f7a6725b43036f195d44
2020-04-17 17:33:47 +02:00
pengyuesheng c3e50690d7 Sync Sphinx requirement
Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.

Change-Id: Iac69ce000f71425acf476816024ed4bb94777780
2019-07-29 11:38:42 +08:00
Doug Hellmann 5a4e76328b add module for fetching and parsing governance data
Change-Id: I7279023e5d81554e19f315fe12ab6fdb988af934
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-11-07 08:30:27 -05:00
Zane Bitter bf83ea4b27 Inherit openstackdocstheme for TC site
Rather than use a fully custom theme for the TC site,
inherit from openstackdocstheme. This uses the new
display_global_toc_section and root_title options to
make it look closer to what we currently have, and
introduces a governance-specific sidebar TOC dropdown.

Change-Id: I160e31389fae571d45a35444c281507d8aef345e
2018-09-28 13:03:26 +02:00
Doug Hellmann 26700d3bbc move the team badge generation to the end of the build
Newer versions of Sphinx load the extensions before creating any of
the output directories, so the os.mkdir() call in the badge extension
was failing. Fix the problem by tying the badge step to the
build-finished event Sphinx emits when it reaches the end of its
build.

This change also uncaps Sphinx in the requirements file, since that
cap is not honored in the CI job anyway.

Change-Id: Ia6c232c5bc8c4015e00efe0b3b4182da2490acc7
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-05-14 10:51:00 -04:00
Doug Hellmann 76868e8a50 add redirect for renamed top-5-list file
Add the redirect instructions and add whereto as a step in the linters
build to ensure that all redirects are being tested.

Change-Id: Ib8ea0be2e063a7972f3a6ad71c32921512796136
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-12-15 10:38:58 +01:00
Doug Hellmann 636a939002 cap sphinx below 1.6.1
The new sphinx causes an issue with pbr. Cap the allowed range to
exclude the bad version.

Change-Id: Ia29abe93254e12443e4351d67e998908baf97086
Related-Bug: #1691129
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-05-16 15:15:36 -04:00
Thierry Carrez a177306d5d Revert "Blacklist Pillow 4.1.0"
This reverts commit 5ddcdce53a.

According to wiredfool on the GitHub issue[1], this was an issue
with manylinux wheels as (non-)uploaded to PyPI and should be
fixed now. Let's see.

[1] https://github.com/python-pillow/Pillow/issues/2478

Change-Id: I6ca17860cd73feda5715589adc31f31c506edf31
2017-04-05 12:45:32 +02:00
Thierry Carrez 5ddcdce53a Blacklist Pillow 4.1.0
Pillow 4.1.0 as released on April 4 is generating import
errors from the badge generation code:

ImportError: The _imagingft C module is not installed

This triggers test/gate failures on the docs job.  Blacklist
this version to unblock governance while we figure out where
the issue exactly comes from.

Change-Id: I8ab8e00ddebfce8ed432405eec6a246352b41a47
2017-04-05 10:28:59 +02:00
Doug Hellmann 42a2de44e0 update sphinx and treat warnings as errors
Sphinx 1.5.0 and pbr 2.0 include a feature to let us pass the flag to
treat warnings as errors through setup.cfg. Update the version of Sphinx
we're using explicitly, and rely on an unbounded pbr specification to
give us the latest version on every run.

Also fix the one warning that caused the build to fail.

Change-Id: Ie93a3adf82b8f568a3cc4357c1e78da22ddc92c0
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-03-15 17:47:34 -04:00
Doug Hellmann 1c98c456b5 add flake8 to the linter job
Turn on flake8 for code style checks, like in our other repos. Fix or
explicitly ignore various issues to allow the linter job to pass.

Change-Id: I7bfd8cf5e9c00dfa83c0393a4307fd54d2113047
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-03-15 17:47:28 -04:00
Doug Hellmann 9dd06cd380 import theme locally
Rather than relying on oslosphinx to provide the theme, move the files
here. This allows us to make local customizations for the governance
site.

Change-Id: I43440a0528e6b2d91b8cdc6b3389448d51834dac
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-02-14 17:27:12 -05:00
Thierry Carrez fb52770578 Skip docutils 0.13.1
docutils 0.13.1 breaks our doc build in creative ways.
This was merged in requirements as [1].

[1] https://review.openstack.org/#/c/409529

Change-Id: I450e9cea26713e538739e86e4c9bae5f4c62bfe3
2016-12-12 14:17:18 +01:00
Flavio Percoco da2ceddf9d Generate badges for teams and deliverables
Adds a plugin for sphinx for generating badges for teams and
deliverables to use in READMEs, docs sites, etc. A badge corresponds
to a tag.

This plugin generates an `svg` image containing team tags and the
deliverable tags for each repo listed. Each tag corresponds to an SVG
image. All the tags are bundled in the same SVG image whose filename
corresponds to the repo name.

Each badge points to the tag link in the governance website.

This not handled yet:

- This doesn't handle "unofficial" projects, which would be nice to
  have.  If a project tries to access `project-team.svg` tag, instead of
  returning 404, we could return a `project:unofficial` badge.

- Specialized colors for some tags. We might want to use different colors
  for some groups. Team tags could be orange, etc.

- Group/Order tags generation by tag groups

Here's a dummy repo created as an example of how this work would be
consumed (or look like):

- https://github.com/flaper87/badges-tester

Change-Id: Ic70c17b60c0107e40b78bf21dc3a68c558eee06f
2016-11-09 09:16:31 -08:00
Adrien Vergé 47c32a7f36 Lint YAML files
Currently most OpenStack code is linted, but YAML files are not.
This patch enables linting in tox tests using the yamllint tool [1].

It also corrects some indentation misalignments and a line longer
than 80 chars; the new CI test will prevent new errors from coming in.

[1]: http://yamllint.readthedocs.org/

Change-Id: Ie33e2636be97a09f27e519be185382be82fa19f2
2016-01-25 16:32:54 +01:00
Joe Gordon 00c03a24c5 Add team:single-vendor tag
Objectively communicates when project teams are driven by a single
organization, so that this fact can be taken into account in project
adoption decisions.

Change-Id: I399046ab7c3266b08c2a48382abfb89c33aab146
2015-11-12 18:12:37 +01:00
Doug Hellmann 72b8b9a74d Build list of teams from YAML file
Render the YAML file contents as the list of official teams and create a
directive to render the list of projects with a given tag to avoid
having to update that data in two places.

Change-Id: I7c6effe6e440f2147f8c68df090152e716c38fba
2015-02-24 18:15:04 -05:00
Doug Hellmann 5415f89796 update doc build requirements
Update the versions of the tools used to build the docs and turn on
strict error checking.

Change-Id: Iae7c85aae0c2fbe1690d1e3d9cfc0492ff78ab05
2014-10-27 13:44:50 -04:00
Andreas Jaeger dd491c3a37 Remove docutils pin
This was added to work around bug 1091333.  A new sphinx has been
released and so this is no longer necessary.

Change-Id: I9107884d964757a9154bdd1feb4ea6df4e9df43e
2014-08-27 12:18:25 +02:00
Andreas Jaeger 5e57f52d27 Change oslo.sphinx to oslosphinx
oslo.sphinx project has been renamed to oslosphinx.
Adopt usage.

Partial-Bug: #1277168

Change-Id: I271179bebbac68cb68419a7bff43336a28bba66c
2014-02-18 21:12:05 +01:00
Sean Dague 051215303a provide infrastructure for publishing docs to html
this brings over the pbr infrastructure for publishing rst files
to html with the oslo.sphix style. We'll need to move around
and reformat some of the documents for them to fully take effect
but this would be the first step in getting there.

Updated with our latest knowledge on how to do the right tox.ini
changes to handle sphinx issues.

This will then get used by another publish job to go to some
online repository.

Change-Id: I0dd3ecf0a9b3e356a4a2980a305b421b7d7b8602
2014-01-07 15:29:11 -05:00