Commit Graph

18 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov 5f76a510ac Deprecate os-panko role
Since upstream Panko project has retired, we deprecating role for it.

Since we might want to get some patches in for stable branches, we're
deprecating role instead of retiring it.

Depends-On: https://review.opendev.org/c/openstack/project-config/+/799802
Change-Id: I35e008bcc9b35373dc6db2672ee1cabb328e7f9b
2021-07-07 15:44:31 +03:00
zhoulinhui 53f57a91b6 Replace deprecated UPPER_CONSTRAINTS_FILE variable
Change-Id: I73d82381816d15548d0bfc8e3c01f3425b1701b4
2020-11-10 13:12:00 +08:00
melissaml b751bbe8e4 Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py
- Remove obsolete sections from setup.cfg
- Cleanup doc/source/conf.py to remove now obsolete content.

Change-Id: I4af66e0a6aa3a5f2091adcebd39d45bef659073e
2020-04-14 18:32:50 +08:00
Ghanshyam Mann b4d1664fd8 [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: I4a5261eb88ba7117d66d452b78022a6a2a775c5d
2020-03-01 18:55:22 -06:00
jacky06 69cfbae061 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: I251d81fea621c985cd0fe27a335f150ac50b94d3
2019-10-23 17:43:26 +00:00
Dmitriy Rabotyagov bf7140aa24 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: I84883e010d0513f569d3f6f626f78ee3b4463a47
Story: 2006105
2019-10-18 17:38:46 +03:00
Zuul f6f6f64cd2 Merge "Change tests source to opendev" 2019-05-21 13:13:39 +00:00
tonybrad b1d22bf306 Change tests source to opendev
Change-Id: I352d0d3a91a3ef67d61e1c45d5b97d4f3a84972c
2019-05-21 08:52:28 +00:00
Andreas Jaeger 7b1ef1e3b3 Remove docs from linters
The openstack-ansible-linters job runs the linters tox environment - and
the docs jobs runs the docs environment.

Remove the docs jobs from the linters environment, there's no need to
run the docs jobs in both linters and docs environment, it just wastes
testing resources.

Change-Id: I6a07fa325dba33e5cb67da7e7bebf4ff75cab373
2019-05-18 11:19:11 +02:00
huang.zhiping 3af0ec4fa8 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: I6859353c8b79b1e111ec2e13ab8f265e008715b7
Closes-Bug:  #1801657
2019-01-12 03:17:45 +00:00
Doug Hellmann 2cc1f3ea95 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: I1678942aa5e3ef1e9f985f53f77b2eb7050374cf
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:44:09 -04:00
Jesse Pretorius 79d9aa470b 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: I500fd080cb7b95a7096c89c223fefaf539a0249f
Needed-By: https://review.openstack.org/579371
2018-08-16 18:24:21 +01:00
Heba Naser cfdcdc29ea 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: I0555e0fe969e13ce5bfa939fa3a3173da06864b7
2018-07-12 22:11:55 +01:00
Jesse Pretorius 69b86de996 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 details information, please refer to:
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

In order to pass the requirements check, a new lower bound is set for the
'pyasn1' and 'requests' packages.

Change-Id: I75c99e8129f2c6aa2382281a2dec3296b50f8db1
2018-07-12 22:10:01 +01:00
Jesse Pretorius 5e16eb234e 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: I66f2e411cf39cf0ad5e68f56f66fa4332b45db8a
2018-03-28 09:30:24 +00:00
Jesse Pretorius 86ad70e896 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: Ie163b868624543775de9c49f5a96b0d0967aa507
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2018-03-15 18:01:23 +00:00
Jesse Pretorius 0e01d050c4 Update branch for master, and add scaffolding for openstack-infra
The content in master came from the stable/pike branch, so we change
all the branch references to work with master instead.

We also add various scaffolding and update various files so that
it matches the right content for master and will be able to build
docs/releasenotes when imported into openstack-infra.
2018-02-21 11:41:27 +00:00
gokhan.isik 0afd4d81e4 Openstack Ansible panko service role created 2018-01-05 14:59:49 +03:00