Commit Graph

15 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov f9fffa27a4 Define constraints file for docs and renos
Right now we are not using any constraints for docs and releasenotes builds.
This has resulted in docs job failures once Sphinx 7.2.0 has been released.

The patch will ensure that constraints are used an we should not face
simmilar issue again.

TOX_CONSTRAINTS_FILE is updated by Release bot once new branch is created,
so it should always track relevant constraints.

Some extra syntax-related changes can apply, since patch is being passed
through ConfigParser, that does not preserve comments and align indenting.


Change-Id: I7ad481f26903519c5f1d9ab0e075ef56d7e9f091
2023-08-17 16:32:27 +02:00
Marc Gariepy c7cb1b149e Cleanup setup.py config
Change-Id: I61f0295e488b560c6cbbac2958a231d148b7ef30
2022-03-31 10:41:05 -04:00
likui 46162be8e4 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: I641fc11045b02451c3d6d46f058eba7beef68da4
2021-07-03 21:33:55 +08:00
zhoulinhui 11a5ce2991 Replace deprecated UPPER_CONSTRAINTS_FILE variable
UPPER_CONSTRAINTS_FILE is deprecated and TOX_CONSTRAINTS_FILE is
the new environment variable name that replaces it [1].

This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

[1] https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file
[2] https://review.opendev.org/#/c/722814/

Change-Id: Ie4ad1a28953ceee0c7029b63a7b892ba8f2ca1dd
2020-12-27 05:02:22 +00:00
Ghanshyam Mann e2ee23a7b0 [ussuri][goal] Updates for python 2.7 drop
OpenStack is dropping the py2.7 support in ussuri cycle.

Only update required is in tox to define common baspython as py3 os that
all tox env including [testenv:functional] will use py3 instead of py2.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: I238a0342269ce3e71050594425ed2c5876ce9b54
2020-03-01 19:23:42 -06:00
jacky06 399db8a94e tox: Keeping going with docs
1. Sphinx 1.8 introduced [1] the '--keep-going' argument which, as its name
suggests, keeps the build running when it encounters non-fatal errors.
This is exceptionally useful in avoiding a continuous edit-build loop
when undertaking large doc reworks where multiple errors may be
introduced.
2. Remove the unnecessary blank line for tox.ini

[1] https://github.com/sphinx-doc/sphinx/commit/e3483e9b045

Depends-On: Ie837d376bb1a1d93367369d25140dd8a9d5ac14e
Change-Id: I91d9104335ca7d432966b5c19f27dead6f8f57f1
2019-12-21 06:26:51 +00:00
Dmitriy Rabotyagov c462c02e38 PDF Documentation Build tox target
This patch adds a `pdf-docs` tox target that will build
PDF versions of our docs. As per the Train community goal:

  https://governance.openstack.org/tc/goals/selected/train/pdf-doc-generation.html

Add sphinxcontrib-svg2pdfconverter to doc/requirements.txt
to convert our SVGs.

Change-Id: I43fb85532d1bbf0316a10664116a3bbbd9fdc66a
Story: 2006105
2019-11-07 15:01:00 +00:00
chenke 3551a3afbb Switch to the new canonical constraints URL on master
Reference:
1. http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: If1c35513a02a4162db05fcea5a68d643c2c21e83
2019-06-28 09:44:23 +08:00
melissaml 5123fcda0f Replace git.openstack.org URLs with opendev.org URLs
Change-Id: Ib975a6d7e81bad87bc7025b0e682081ceeff8da1
2019-05-06 19:30:47 +08:00
huang.zhiping 5576155a8b 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: Ib12c795adf06d34e02eb2942f65c0789a3b6621b
Closes-Bug:  #1801657
2019-01-12 03:20:09 +00:00
Doug Hellmann 2cf9fd4456 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: Icb7395e2003053690b5ba77da207b62ff3014a56
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:44:42 -04:00
Jesse Pretorius 2f73146e0c Clean up role tests
Now that we're using the general templates, we can slim down
the role test definitions. We can also remove tests which are
not being watched, or which are fundamentally broken. With
this we can also remove unused scripts/plays.

We do the following:

1. We revert the use of project templates to using job config
   directly, given that nothing other than Ubuntu Xenial is
   currently working.
2. We remove the unused tox targets.

Change-Id: I695dcdbef6eb5f2cec69697a9cff50e03aeff1e2
2018-09-09 11:47:07 +01:00
Jesse Pretorius 63b0b0a596 Use the TESTING_BRANCH env var for constraints
The TESTING_BRANCH environment variable is provided by the
run_tests.sh script and is derived from the .gitreview file.

This ensures that once the master branch becomes a stable
branch, the constraints from the stable branch in the
integrated repository will automatically get used once the
.gitreview file is updated.

To ensure that the required environment variables are present
we export them appropriately in run_tests.sh and modify the
tox configuration to pass them into the tox test.

Change-Id: Id60990bad2e47d89190eaf6cbe3fe1faf69af734
Needed-By: https://review.openstack.org/579371
2018-08-16 18:28:51 +01:00
Jesse Pretorius 6b17bc38d0 Use tests repo for common role test requirements
Using tox for requirements management requires in-repo
requirements files for all our repositories. Rather than
do that, we make use of the tests repo to capture our
common requirements and use this to install them.

This reduces our review requirement rate and simplifies
maintenance for us for the tox config. It also makes it
usable with 'Depends-On', which is marvellous!

The tox requirements definitions for docs/releasenotes
builds are left in-place as those are standard entries
across the community. If that changes at some point, we
can re-assess those entries too.

Depends-On: https://review.openstack.org/579208
Change-Id: I13c1433377d8697162ac57122651a370c0971f6f
2018-07-02 15:51:51 +00:00
Kevin Carter daf9f9d60a
first commit
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-06-05 15:36:33 -05:00