Commit Graph

19 Commits

Author SHA1 Message Date
Jonathan Rosser 1a44f7f29d Cleanup setup.py config
Change-Id: I91b356bd069a44929bb8941344255b5011af9187
2022-04-04 10:33:07 +01:00
likui 67fdd695ca 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: Ic318e3d89ba8f91fbe979da00e95a714678beae6
2021-07-03 21:57:12 +08:00
zhoulinhui d6bb9046aa Replace deprecated UPPER_CONSTRAINTS_FILE variable
Change-Id: I45ed650965f3ad26d3460f1a805f2ded6fe6cdf6
2020-11-10 13:11:53 +08:00
melissaml 6ae84ce8be 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: I6335f78b57f4942d4b3b82388659e5d454907eb1
2020-04-14 17:30:50 +08:00
Ghanshyam Mann 20a8d032a0 [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: Iff6789de4c63acf9687e4294bbe3a8bca340cc1e
2020-03-01 18:55:05 -06:00
jacky06 4dbdba415c 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: If351662f97efe96477291e2d81ed09fd67b57734
2019-10-23 17:37:09 +00:00
Dmitriy Rabotyagov f5c1defc5a 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: Ibfaa68bd814d9dd40c2beba244e732f03b1193b3
Story: 2006105
2019-10-18 18:37:40 +03:00
Zuul 8373cd871f Merge "Replace git.openstack.org URLs with opendev.org URLs" 2019-07-16 17:39:39 +00:00
melissaml b8d72072d7 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I9bbc60070a94cc60389d562305dccfa67a429ead
2019-07-10 19:33:43 +08:00
Andreas Jaeger 94c3661f6c 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: I013f99429e4ef946b16202bc4d01ded618594ae5
2019-05-18 11:16:50 +02:00
huang.zhiping af4287f9ae 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: Iabd666d8a9143f197893d0f7fea786adc8a9055f
Closes-Bug:  #1801657
2019-01-12 03:24:01 +00:00
Doug Hellmann 7095c0cd83 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: Id777843680f8e2ece35b61c182135904f1d0158c
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:43:45 -04:00
Jesse Pretorius d9606e3fda 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 remove the 'ssl' tox target, as it is unused.

Change-Id: Iea2a87d60566eb7e5f1ffdd48da133a88f57d379
2018-09-07 15:12:41 +01:00
Jesse Pretorius dba89f97f2 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: Iccfdcb2dc8cb764772a82ec31ca0fdae73327b21
Needed-By: https://review.openstack.org/579371
2018-08-16 18:21:38 +01:00
Dmitriy R 3d06e07f9c Added required defaults, env example, Manage LB hook
I've decided to add env and required secrets example for easier stratup.
Also added missing variables to defaults, as playbook was just failiing without them.
Variables regarding rabbitmq were missing.
Also, as masakari_venv_download_url is not defined by default,
masakari_venv_download had been set to false.

Handlers were missing Manage LB task and had wrong variable -
masakari-services instead of masakari_services

Functional test was missing USER system environment variable.
Also test inventory had mistakes.

test-masakari-functions.yml wasn't able to pass test due to error.
Functional tests moved to voting.

Change-Id: I6644d576177f441ca59e9221ce9a2e5b7cc0fc46
2018-07-19 06:42:32 +00:00
Heba Naser be50506cf4 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: I7c164fed373e8211e05ff7708b4b3485a1341806
2018-07-13 18:17:05 +01:00
Jesse Pretorius 9eb6fb2a17 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: I9635c7a83e98e951198e4fb79aea43762652acd9
2018-07-13 18:11:57 +01:00
Jesse Pretorius 487db02028 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: Ifd50c7b0175b6d53d5bb3e9175bc2b79d39d3721
2018-05-03 09:48:16 +00:00
nirajsingh 130e4c0e29 First commit 2018-04-16 17:02:09 +05:30