Commit Graph

16 Commits

Author SHA1 Message Date
likui ebeabb0df6 tox: Remove basepython
Python 2 is EOL. No environment should be defaulting to it. Our CI
environments certainly aren't.

Change-Id: Ie3ba58bf0d4f33e47d5563de131ac126507c516c
2023-08-02 17:00:37 +08:00
likui ac74ce9a1b Changed minversion in tox to 3.18.0
The patch bumps min version of tox to 3.18.0 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: Ic61e349773efbe99ee8afb22228d7d102adb516f
2021-06-03 16:56:33 +08:00
Riccardo Pittau 43398c0c47 Update tox config
Update tox min version to something more contemporary.
Default basepython to python3.
Update dependencies of docs and pdf-docs to include upper-constraints.
Move to stestrs and remote os-test from requirements.

Change-Id: I30313dda1a3f56eff2f54632c46cfbdd03aa3cb7
2021-05-12 17:31:27 +02:00
Andreas Jaeger 3de1d4cec1 Cleanup py27 support
Make a few cleanups:
- Remove obsolete sections from setup.cfg
- Update requirements, no need for python_version anymore
- Require newer pbr
- Remove install_command, the default is fine

Change-Id: I975a7012c42b8ee2c30d3a33fc63a083738d8007
2020-04-08 11:50:56 +02:00
Kaifeng Wang d04b5f6d80 Build pdf doc
The is one of community goals that each project could produce a
single PDF file. The pdf should be in the output of openstack-tox-docs
job.

TeX packages are required to build PDF locally, following is recommended:

* inkscape
* texlive-latex-base
* texlive-latex-extra
* texlive-fonts-recommended

More about the goal:
https://governance.openstack.org/tc/goals/train/pdf-doc-generation.html
https://etherpad.openstack.org/p/train-pdf-support-goal
https://etherpad.openstack.org/p/pdf-goal-train-common-problems

Change-Id: Iade8e60f5e272d70b2bbfdcd8429a19e1f95f365
2019-09-05 11:42:30 +08:00
wanghui 8a1c9650f5 Update tox minversion to 2.0
The commands used by constraints need at least tox 2.0. Update to reflect reality, which should help with local running of constraints targets

Change-Id: I2fa51a8ae20ace445f270355264675ee5d63c767
2018-10-25 19:35:15 +08:00
Doug Hellmann dba3f9100b 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: Id703f49844230c8ee511d63bdf37e2d420488c36
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:54:40 -04:00
Julia Kreger f1f559c313 Fix ironic-specs repo doc builds
Since the documentation PTI job config was implemented
in zuul, the local docs builds no longer matched the builds
performed by zuul in terms of treating warnings as errors.

Adds flag to treat warnings as errors, and addresses the
numerous formatting issues that resulted in errors.

In some cases, the footnote no longer made sense to retain
and was as such removed.

Change-Id: Ie80d9c4480507c52fd0f3eee41fd6478e4c5c758
2018-09-24 11:01:37 -07:00
John L. Villalovos 06514c2b79 Switch tox unit test command to use ostestr
This commit switches the tox command to use ostestr instead of calling
testr through setup.py. The primary advantage here is that it uses the
subunit-trace output filter. ostestr primarily exists as a replacement
for pretty_tox.sh bash scripts which spread like a plague through
OpenStack projects after Nova copied it from Tempest. (although
ostestr also provides some other useful features) Granted ironic-specs
wasn't using that, but this commit makes the switch to enable getting
the subunit-trace output which is generally useful.

Note that this dramatically increases output while running tests.
However, test failures are still at the bottom of the output, so it
shouldn't cause much pain, if any.

Change-Id: I4e0241eea113f994cadf68bdfe647065856d3a6d
2018-03-13 10:08:36 -07:00
Nguyen Hai b932046eb3 Change ironic-specs webpage from oslosphinx to openstackdocstheme
Change-Id: Ib9fdc57813d9812dd6ed69bf5a02076fa4e9db11
Closes-Bug: #1755165
2018-03-13 02:03:36 +09:00
Vladyslav Drok 52f6e6d07e Remove py27 env from tox.ini
Now that our jobs switched to using linters env, remove py27 from
the list.

Change-Id: I68829954d05ffea10ab85c9a7c4706d904c2e10a
2017-10-25 17:54:59 +03:00
Vladyslav Drok 46dea12a9a Run spec validation in linters job instead of py27
The default py27 job ignores the changes to *.rst files. The
linters jobs does not, and it makes more sense to include the
validation we do to the specs in it.

py27 is still left in the list of tox envs so that zuul does not
complain about it missing. It will be removed when we switch py27
to linters in project-config.

Change-Id: Ib14c2a3318dc171be8c8ed8207524ab9774c5ccd
2017-10-24 21:00:08 +03:00
Lucas Alvares Gomes 9666454132 Pin the python version for tox -edocs
The tox -edocs command do not work with Python3 becauseethe command
depends on a library called "feedformatter" which only supports Python
2 for now.

Partial-Bug: #1669466
Change-Id: Ie087df8843fee228325e88f20b248d96a88862a1
2017-03-02 15:07:54 +00:00
Lucas Alvares Gomes 30b4868fa1 Add doc8 check on priorities/
This patch is extending the doc8 check to also look at the .rst files
under the priorities/ directory.

Change-Id: Id9f7671e534c4d7c41dd4526f2134c1a0d566bf4
2016-05-04 14:07:49 +01:00
Ruby Loo db259bfc1b Use doc8 style checker
This uses the doc8 style checker to check that the documents
conform to certain requirements, as documented at
https://pypi.python.org/pypi/doc8.

In particular, we no longer need to check for these in our test code
since they are checked via doc8:
- lines don't exceed 79 chars
- there are no trailing spaces
- there are no carriage returns

Some existing specs were modified because they had tabs or no newlines
at the end of the file.

Change-Id: If27281c7efd60c9f15ca07c723dd94a7d086c325
2015-09-30 20:29:50 +00:00
Devananda van der Veen 161a82f218 Initial commit
This imports the structure, unit tests, and template from nova-specs, creating
a functional specs repository without any approved specs.

Some modifications were made to the template to make it more applicable to
Ironic, eg. by adding sections and comments to existing sections where relevant
to bare metal provisioning.

Change-Id: I0b1ccd4a283d1c670a6ce497677dea8f47457f00
2014-05-22 15:51:33 -07:00