Commit Graph

14 Commits

Author SHA1 Message Date
Anand Bhat c7f6f5d1fa Changed minversion in tox to 3.18.0
The patch bumps min version of tox to 3.18.0 python in order to
replace tox's whitelist_externals by allowlist_externals option:
https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Change-Id: Icea0fbbd3e389800d7fcfdd6ecd11f3b05b2a892
2021-05-06 20:02:50 +05:30
Martin Kopec 08199218df Update min tox version to 2.0
To avoid "unkown environment variable 'TOX_CONSTRAINTS_FILE'"
error, tox needs to be >=2.0.

Closes-Bug: #1801484
Change-Id: Ia22d544297578c1fe3d2efa5dcc944ac1db026a9
2021-03-18 20:29:16 +00:00
Lukas Piwowarski 7e12fcc0be Create tox environment to build pdf documentation
This patch enables building .pdf documentation using new 'pdf-docs'
tox environment. The newly created tox environment creates latex
source codes using sphinx-build and then builds the pdf
documentation using make.

Story: 2006070
Task: 35463

Change-Id: Ie5f522d0561d52206eabf400f4a53f67a8997eca
2020-09-24 10:54:53 +02:00
Andreas Jaeger 8c942bf565 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
- Remove install_command from tox.ini, the default is fine
- move basepython into testenv
- use TOX_CONSTRAINTS_FILE instead of obsolete UPPER_CONSTRAINTS_FILE
- update pbr to current versions

Change-Id: Iae3f34e63d5a7d84bcc74716e490bd3b02bcab52
2020-05-22 16:37:26 +02:00
Andreas Jaeger 627e8117ef Cleanup docs building
* Remove settings that openstackdocstheme now defaults to.
* Switch completly to openstackdocstheme to be in sync with
  other OpenStack projects.
* Use sphinx-build.
* Change tools/generate-grenade-plugins-list.py to use opendev URLs.

Change-Id: Ic6dd19d8695f4d8db6655e7cac7a6eb7736cd4c1
2020-02-23 16:16:17 +01:00
Eric Fried d67a48d127 Use upper constraints
Use upper constraints in the main [testenv] and in the docs build.

Change-Id: I3d696e7603f7d1aa56ac9546892a5930488e67be
2020-01-22 13:18:54 -06:00
Eric Fried 0d5042b0ce Make docs build again
Docs build was broken with:

TypeError: __init__() got an unexpected keyword argument 'handle_io_errors'

Upgrade sphinx requirements to those of a recent decade, and replace
the oslosphinx extension and requirement with openstackdocstheme.

At the same time, split the deps for the docs build out of
test-requirements.txt and put them in docs/requiremenst.txt as the gods
intended.

Change-Id: I6f82b5c37217ca2bdcf85c1ce07293b3d1026370
2020-01-21 23:10:20 +00:00
Doug Hellmann 872a8481e8 fix tox python3 overrides
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: I0570d5b3c2f8401566bf2eecf41af2035b44650c
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:47:43 -04:00
Masayuki Igawa 7518301120 Generate plugin list for registry document
This commit makes to generate a plugin list for the registry
document and, also fixes a python3 incompatibility and docs warnings
in generate-grenade-plugins-list.sh.
And this commit also removes doc/source/plugin-registry.rst because
it's generated by the script.

Change-Id: I391ca452f2e99e899ded8e4bcb5649a4511a7696
2018-03-01 17:18:23 +00:00
Matthew Treinish 3825ab8ac7
Add a venv tox job
The docs CI job is failing on trying to run tox -evenv to run build
sphinx. However this job was not defined anywhere. THis commit adds the
job definition to hopefully unbreak the job. To enable the jobs to work
we also need to install the sphinx deps to build the docs. This was
previously done in the tox.ini but this commit moves it to
test-requirements.txt to ensure that all the tox jobs are able to build
docs.

Change-Id: I5457f3e442fe673a81925a8ed2f36f4eab0639cb
2017-11-29 14:50:37 -05:00
Sean Dague 647cdf2629 remove use of sphinx diag tools
This drags in pillow, but isn't actually used anywhere. Let's dump it
until it's used.

Change-Id: I8107aef4eb9468816d84f8e33faae42c5a93b6e2
2015-10-02 11:56:50 -04:00
Matthew Treinish 359352e80b
Add docs building support to grenade
This commit adds basic docs building support to grenade. Previously
we just had rst files in the root of the repo and relied on github
or something else to render them. After this commit we'll support
sphinx built docs.

The next step after this is to add a docs publishing job to infra so
we'll have hosted grenade documentation like other projects.

Change-Id: I505c1d5e250d103b6e0f9da008f44d3ce28df94f
2015-08-28 19:15:17 -04:00
Andreas Jaeger 22ca55fbbd Rename bash8 to bashate
bash8 has been renamed to bashate.

Change-Id: Id4781f8174ae34cf4cc69da607806583f0056242
2014-08-13 12:59:45 +02:00
Sean Dague e3b58e67dc add bashate (nee bash8) test support
style checks can now be run with 'tox'. This does not yet integrate
this to the gate, but it does clean up all the existing code to
work with the currently released bash8 pip.

Done as an easy example to create a pattern for other shell programs.

Change-Id: I5ecf28cfa2551f0cf3502263a379242c8803252c
2014-06-19 17:14:47 -04:00