Commit Graph

16 Commits

Author SHA1 Message Date
niuke 9e96739c85 Use TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated.
This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

Change-Id: I3793933504f301af105f8aa49a28f91f425d9219
2023-08-08 17:35:55 +08:00
Dmitriy Rabotyagov ed30679416 Update tox.ini to work with 4.0
With tox release of 4.0, some parameters were deprecated and are ignored now
which causes tox failures. One of the most spread issues we have is using
`whitelist_externals` isntead of `allowlist_externals`


Change-Id: Ib07b10672187610c046e84b7d8a884d4ddb58164
2022-12-27 17:53:07 +01:00
Marc Gariepy 4ae5921212 Cleanup setup.py config
Change-Id: I788dd401f875953267783111efdc1ceaf1463f7f
2022-03-31 10:35:29 -04:00
Jonathan Rosser 2abd4c9be8 Use upper-constraints for all tox environments
Change-Id: I3d24f37ae45a00361665ecd8326ce1b242411704
2020-12-07 16:53:25 +00:00
Andreas Jaeger bcead95895 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 */source/conf.py to remove now obsolete content.
- Remove install_command from tox.ini, the default is fine

Change-Id: Iaada1ab6f3c193e9e4018ba965eaa6b3ad0f9d3f
2020-04-25 16:04:09 +02:00
Ghanshyam Mann 621413cdf3 [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: If9438b0b671933e66d377f0431eded6e2b6478cb
2020-03-01 16:08:34 +00:00
Dmitriy Rabotyagov d5f060e9df Replace git.openstack.org with opendev.org
This patch replaces git.openstack.org with opendev.org as redirection
from old path was enabled.

Change-Id: I58262d50519e49687d4109075514f3d15142e432
2019-11-14 19:31:46 +02:00
Dmitriy Rabotyagov 83bff1a16f 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: Icaed495dab8520120b06dffa813ee77efb609a09
Story: 2006105
2019-10-17 15:36:07 +00:00
huang.zhiping bb9b88cbab 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: Iec4ce3ac5191130754f582178d1079f75bdffe8d
Closes-Bug:  #1801657
2018-11-05 06:42:26 +00:00
Doug Hellmann 11840d5c7e 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: Ia337a9554452da4c3997389b2423fe8cd3253fb8
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:41:45 -04:00
Heba Naser c3bb240d30 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: Ic0fd95ca8d891a93a7205e4f3bd3dd10b1da8fca
2018-09-08 16:55:24 +01:00
Jesse Pretorius e731aa100f 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: I2e75babeb51c1426b6ff2a25732636d01bc48c0e
Needed-By: https://review.openstack.org/579371
2018-08-16 15:12:47 +01:00
Jesse Pretorius d38250005d 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: If44929dbe402c4249235a7fcb9226b97f20d0e43
2018-07-02 08:38:48 +01:00
Jesse Pretorius 07483d1859 Update run_tests.sh and remove tests-repo-clone.sh
The lint tests make use of the common linters test
used by the roles, so we need to ensure that the
run_tests.sh script is updated and the configuration
adjusted accordingly.

Change-Id: Id1d112c30978cf2e0a0ec32c899ef56290ef806d
2018-03-27 23:12:28 +01:00
Kevin Carter 36e6e7e73b
renamed /systemd_init/systemd_service/g
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-03-12 16:45:53 -05:00
Kevin Carter 3287637b2d
Initial Commit
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2017-05-19 10:24:55 -05:00