Commit Graph

16 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov a6c6dfe358 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: Ic77fb02afbf08e071d7ba0f0eb3a273f03a3a960
2022-12-27 17:53:06 +01:00
Marc Gariépy 88cb4d60fb Revert "Cleanup setup.py config"
This reverts commit 7166e396d1.

Reason for revert: unbreak tripleo-quickstart

Change-Id: I91a21138a20331e2123f878ac8fb51a6552e2cef
Disable setuptools auto discovery

Jobs are broken due to a release of setuptools 61.0 introducing
non-backwards compatible breaking changes [1]

Setting py_modules to an empty string here will disable autodiscovery
and should permit jobs to run as before.

[1] https://github.com/pypa/setuptools/issues/3197

Signed-off-by: Neil Hanlon <neil@shrug.pw>
Change-Id: Ie0215582fe630f1897a85c1e88fd578d100bc3cf
2022-03-31 17:08:13 -04:00
Marc Gariepy 7166e396d1 Cleanup setup.py config
Change-Id: Iaa3f4de1b04e96421cd3ebf4f7e60588c73f20aa
2022-03-31 10:33:56 -04:00
Andreas Jaeger a50dd18cc1 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: I41d8153a0543f6983dd97311243f057d270e17ef
2020-04-25 15:17:06 +02:00
Ghanshyam Mann 5692755668 [ussuri][goal] Updates for python 2.7 drop
OpenStack is dropping the py2.7 support in ussuri cycle.

openstack-ansible repos need few updates on requirements
and tox file.

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

Depends-On: https://review.opendev.org/711015/
Change-Id: I49e749724b4e4b7c2cb7eab188bc676a86a47ee1
2020-03-03 18:59:13 +00:00
Dmitriy Rabotyagov b16372aefd Replace git.openstack.org with opendev.org
This patch replaces git.openstack.org with opendev.org as redirection
from old path was enabled.
Also we change upper constraints url due to [1]

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

Change-Id: I25008ce16c4d1b7516683b68bba3b318cdc424e2
2019-11-14 19:59:32 +02:00
Dmitriy Rabotyagov 8e13d0d014 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: Ib0fc3cabe19771c3f569d22c8b09aa456f4caf6e
Story: 2006105
2019-10-16 14:24:53 +03:00
Zuul f1885afdc8 Merge "Update to opendev" 2019-07-30 20:11:55 +00:00
Le Hou 593c6b3099 Update to opendev
Change-Id: I10d85fa08af6ac4034a50e1a679cef0c52bf75ce
2019-04-24 01:11:44 +00:00
huang.zhiping 7c91d603dd 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: I14400678a53a66e2b0d1a5377d881b9df7dbfc71
Closes-Bug:  #1801657
2019-01-12 03:28:54 +00:00
Doug Hellmann 57df4885f2 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: I1a40301df569d59733343b13db2dc11533eb3b58
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:41:31 -04:00
Jesse Pretorius 70689b29dd 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: I0502f5908eab7fc10863eb0016d3bfaddfe2f328
Needed-By: https://review.openstack.org/579371
2018-08-19 19:17:32 +00:00
Heba Naser 3d57ea0dcd 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: I5a9cac0a65e36bc40300cb67175bd146949ac141
2018-07-01 14:51:36 -04:00
Jesse Pretorius d169906c68 Revise the role to properly cater to use-cases
1. Variables have been renamed to make it easier to
   understand their purpose.
2. Unnecessary variables have been removed.
3. The role no longer caters to installing pip packages
   on the host. This should never be necessary - if it
   is, then something should do so beforehand.
4. The expected versions of pip/virtualenv are documented
   and a check has been added to ensure that they exist.
5. The handler has been named to make debug logs less
   confusing.
6. The default storage path for venvs/wheels is no longer
   opinionated. If paths based on distro/architecture are
   required then different paths should be provided to
   the role.

Change-Id: I9eb96e9db22f918b00456af943d81f66050107ce
2018-05-04 18:03:59 +01:00
Jesse Pretorius 6112ac444e 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: I1a5f97b770f1931a40af334f3a87766f02e572d7
2018-03-27 23:08:44 +01:00
Jesse Pretorius 8ffaab139b Add CI/docs/releasenotes scaffolding and basic test
Change-Id: I27c70ff45d5361a80811575d62328f35ef35e0a1
2018-03-24 22:42:06 +00:00