Commit Graph

19 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov e6683eac63 Deprecate os_congress role
Since congress service is no longer maintained since [1], we have no
reason to continue maintenance of the corresponding role

[1] https://review.opendev.org/721733

Depends-On: https://review.opendev.org/742515
Change-Id: I8337db363aa954e615b83f595e1c51987bc90368
2020-07-22 20:18:29 +00:00
melissaml 64a11c73b9 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
- Cleanup doc/source/conf.py to remove now obsolete content.

Change-Id: I2cccda32b554f38284c411a12039b9555395be9f
2020-04-14 16:45:58 +08:00
Ghanshyam Mann b459f9efc6 [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: I3a799969b639e009b43a8bc0c1f5d48a064971be
2020-03-01 16:02:58 +00:00
jacky06 41fd32d0bb 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: I17770abeb8157754b9ff3cfd1310502b1e8302c4
2019-12-21 00:43:14 +08:00
Dmitriy Rabotyagov 6ff69c6f56 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: I9d2a55fb50c7786cb3a5df7a2840b8b2bc53ac75
Story: 2006105
2019-10-18 13:36:06 +00:00
melissaml dcddac5576 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I532f294faec7fea18d894e78f3f7667cbc0a9047
2019-07-10 21:29:54 +08:00
huang.zhiping 363e2656fc 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: I535d4a092890b1198e625fa2d5d83635d3ff9731
Closes-Bug:  #1801657
2018-12-24 02:15:10 +00:00
Doug Hellmann 586aa59f77 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: I4855039a86d40a6af6496fa1a06ca26704826afe
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:43:10 -04:00
Zuul 63a9958aca Merge "fix tox python3 overrides" 2018-08-24 10:00:33 +00:00
Jesse Pretorius 5ac7712d80 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: I985d4f8924a8c49ccfd2cbd76927e143a1637322
Needed-By: https://review.openstack.org/579371
2018-08-16 15:41:50 +01:00
melissaml 4dcb4b723a 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: Idb45b993881084b4e19187cb09cead52dacf01bc
2018-07-23 19:18:21 +08:00
Heba Naser 4075fe7ef2 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: I461578c929336fa76d3dbbf71a268b323c407ba1
2018-07-02 12:42:12 -04:00
Jesse Pretorius 6a02d4861a Remove tests-repo-clone.sh
Now that run_tests.sh handles the tests repo clone, we can
remove the use of the older tests-repo-clone.sh script.

Change-Id: Ieb3bcb72eed259eaabe6c60a3a67288722976de5
2018-03-28 10:13:42 +01:00
Jesse Pretorius ae9a5a0080 tox.ini: Expose USER environment variable to execution environment
In order to allow the use of the environment variable which informs
Ansible which user executed the playbook, we pass the USER env var
into the environment that tox builds.

Change-Id: I8b83bc7c67725f4f5c491a036efafd999d02ea87
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2018-03-15 17:58:40 +00:00
melissaml 5a4755ed11 Follow the new PTI for document build
For compliance with the Project Testing Interface as described in:
https://governance.openstack.org/tc/reference/project-testing-interface.html

For more detials information, please refer to:
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Change-Id: I05329fd34339341a06bf62f7da81caa1c00c4800
2018-03-12 12:09:48 +08:00
Jean-Philippe Evrard 39477ea148 Introduce os_congress role in gerrit
This commit makes possible to contribute to the os_congress role.
It ensures the roles follows the minimum testing, in order to
be improved later with further testing.

The minimum testing is a local API test that's currently not
passing and will be improved by the community.

Co-Authored-By: Taseer Ahmed <taseer94@gmail.com>
Co-Authored-By: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
Change-Id: Iffe98a040b93b1101fe3339edc84d6197e5a5da7
2018-02-14 10:17:23 +05:00
Taseer Ahmed 895ca3a7fe Address comments
- remove env-upgrade
- remove lxd-test
- indent properly

Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-10-20 15:14:13 +05:00
Taseer Ahmed b50eb1199a Add tox.ini
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-10-09 15:07:14 +05:00
Taseer Ahmed ef74672c1a Filling out all requirements 2017-09-14 14:31:59 +05:00