Commit Graph

14 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov c70084757d 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: I62d6dc8e5b075b4803b0384d5533980c01873f66
2022-12-27 17:53:06 +01:00
Jonathan Rosser 158be1e322 Cleanup setup.py config
Change-Id: Ibab769cc92f72ac8106756da3974d15063feaf75
2022-04-04 10:22:21 +01:00
Andreas Jaeger 4c762573ec 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: I4b40d9570a2214f245d439693daecced49f97dc5
2020-04-25 16:00:47 +02:00
Ghanshyam Mann 675854bd4b [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: If6b16080e7542e47ad0752f63e9ec6adf7011f63
2020-03-01 16:07:45 +00:00
Dmitriy Rabotyagov 719a264b9c 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: I0a15fef1f26f5ced5cabf7519b45417f69fb2b33
2019-11-14 19:57:01 +02:00
Dmitriy Rabotyagov 658b32023d 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: I6e5d98ada4d1176b6c32dcbe8b5655e14a839a3d
Story: 2006105
2019-10-17 15:36:30 +00:00
melissaml fc954bcb01 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: Ic0196a84e18c6d7fe2e4df40d9b15c3c76aae436
2019-05-10 18:48:48 +08:00
huang.zhiping 759d4f0e77 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: I16451b1ff9446a87e411b67746b47929c3581d8d
Closes-Bug:  #1801657
2018-11-05 06:45:11 +00:00
Doug Hellmann b04df036e4 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: I37cca7ccc3ff0e78b256f966ec164964e096afb8
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:41:41 -04:00
Heba Naser acb43b8f2e 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: Ia5dfcf865ecbccd134f9146fa9caf3bcd3f93ef5
2018-09-08 16:56:38 +01:00
Jesse Pretorius 2966dfe31b 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: Ic9a38c9317ba0cdcabdf56a49a497baf426d967b
Needed-By: https://review.openstack.org/579371
2018-08-16 15:11:28 +01:00
Jesse Pretorius 6040d8dfe9 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: I1be4adb97fb3a37968afb9628fe3a7346cc55ccc
2018-07-02 19:59:03 +00:00
Jesse Pretorius 7d22c05796 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: Ib03f81178b421b991ccb7b8e18ac1f13fd725768
2018-03-27 23:11:57 +01:00
Kevin Carter dd82b31ee2
first commit
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-03-13 23:09:48 -05:00