Commit Graph

15 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov 526293ad5b 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: I8db7ddabfd3586136f442da4a4807fafbb91b5d3
2022-12-27 17:53:06 +01:00
Marc Gariepy 272ad600e2 Cleanup setup.py config
Change-Id: I5263c796a5ccaf6a420cc94c0e75954f5752150b
2022-03-31 10:34:42 -04:00
Andreas Jaeger e6f49256f5 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
- Use newer openstackdocstheme and Sphinx versions
- Cleanup */source/conf.py to remove now obsolete content.
- Remove install_command from tox.ini, the default is fine

Change-Id: I7c218a48cb8c799f8b745c9a9cc7c5302e83e49b
2020-04-25 15:47:33 +02:00
Ghanshyam Mann 66ddfdfb90 [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: Iaa968bccc27575ab81b05066cfb8d34817cdf249
2020-03-01 16:08:10 +00:00
Dmitriy Rabotyagov c6dfee4c31 Change upper constraints url
To be consistent with other projects, we are changing upper constraints

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I2ed46f440be5bb2ad36272b05600ea43a68ea88e
2019-11-14 19:41:43 +02:00
Dmitriy Rabotyagov 6acf8cb658 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: Ia9fba86a15acdc050e9014e4d2c44324d8eae692
Story: 2006105
2019-10-17 15:36:53 +00:00
Zuul 55e0a8d67c Merge "Update to opendev" 2019-05-07 22:35:09 +00:00
Le Hou 272f4b274e Update to opendev
Change-Id: Ifc152942fdea3d81b5bc98e5d68904b380e6f784
2019-04-24 01:10:14 +00:00
huang.zhiping 5ce4554e1f 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: I753c3a1167bb8ddae3e9a41b9e4dd8d93d4091ce
Closes-Bug:  #1801657
2018-11-05 06:46:00 +00:00
Doug Hellmann af83e3b12c 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: I29139cd2cb8e6296cec362cac1c1f23c7561115f
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:41:38 -04:00
Heba Naser 0cca0b06e2 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: Id66614618f4d2c552435015f9911f63e7fc89c5a
2018-09-08 16:53:55 +01:00
Jesse Pretorius 0f9709e867 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: Ie0bb2df4df5162a1ea33d4163cd6751b1ddda824
Needed-By: https://review.openstack.org/579371
2018-08-16 15:10:22 +01:00
Jesse Pretorius fdab502526 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: Ia136d992b96c92f80a6b07448a48855ed324fb9d
2018-07-02 08:39:44 +01:00
Jesse Pretorius 8a305bc0d5 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: Icbb29acbfcee6a1c1aa5520153a38a1a703a3b4a
2018-03-28 08:42:21 +01:00
Kevin Carter 4f37977e7b
Initial Commit
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-03-13 02:06:48 -05:00