[openstack-dev] [python3][tc][infra][docs] changing the documentation build PTI to use tox

Doug Hellmann doug at doughellmann.com
Thu Jul 5 20:46:21 UTC 2018


I have a governance patch up [1] to change the project-testing-interface
(PTI) for building documentation to restore the use of tox.

We originally changed away from tox because we wanted to have a
single standard command that anyone could use to build the documentation
for a project. It turns out that is more complicated than just
running sphinx-build in a lot of cases anyway, because of course
you have a bunch of dependencies to install before sphinx-build
will work.

Updating the job that uses sphinx directly to run under python 3,
while allowing the transition to be self-testing, was going to
require writing some extra complexity to look at something in the
repository to decide what version of python to use.  Since tox
handles that for us by letting us set basepython in the virtualenv
configuration, it seemed more straightforward to go back to using
tox.

So, this new PTI definition restores the use of tox and specifies
a "docs" environment. I have started defining the relevant jobs [2]
and project templates [3], and I will be updating the python3-first
transition plan as well.

Let me know if you have any questions about any of that,
Doug

[1] https://review.openstack.org/#/c/580495/
[2] https://review.openstack.org/#/q/project:openstack-infra/project-config+topic:python3-first
[3] https://review.openstack.org/#/q/project:openstack-infra/openstack-zuul-jobs+topic:python3-first



More information about the OpenStack-dev mailing list