Commit Graph

10 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov ed78ef112c 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: I4354d6b70b5a88efa3bac56363c14b478b9e32b4
2022-12-27 17:53:06 +01:00
Dmitriy Rabotyagov 59786da1bb Switch sphinx language to en
With sphinx release of 5.0.0, they changed default for language variable
to 'en' from None. With that current None valuable is not valid and
should not be used.

With that we're also dropping setup.py as otherwise new setuptools
fails for docs job as well.

Change-Id: I264ec313bb9cdb1363339688cc63f080156c12cc
2022-05-30 14:34:58 +00:00
Andreas Jaeger 038a7f29b4 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,
  enable build warnings and fix problems
- Cleanup */source/conf.py to remove now obsolete content.
- Remove install_command from tox.ini, the default is fine
- Remove usage of pip_install role, this is retired now

Change-Id: I64133e987965d02faa25102b98ad102ff9ef142b
2020-06-18 07:31:28 +01:00
Zuul 79993f1be7 Merge "fix tox python3 overrides" 2019-08-15 17:09:22 +00:00
melissaml 64aa7ed7b9 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: Ia1fcaa7c0abb8743dcb03a78280f2d23297177e9
2019-07-10 22:39:14 +08:00
huang.zhiping abda594b30 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: Ie2a69845090bc4f7800c7c33d54e6725dca06106
2019-05-27 13:57:51 +00:00
Doug Hellmann ccaec99aaf 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: I8999138842023b10430d7aaa7750911e7ac561f0
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:41:34 -04:00
Jesse Pretorius 9290ccc383 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 'upgrade' job, given that it's been broken
   all cycle due to the way the job executes and we need to
   regroup to figure out another way to do it. The associated
   scripts are also removed.
2. We consolidate test-vars.yml and the overrides into a single
   file to conform to the standard in other roles and ensure
   that the overrides are only set in one place.

Change-Id: I2dcb1576a75c4d09c6d99e1369775301e99df770
2018-09-14 10:10:10 -06:00
Heba Naser 5e3a7130de 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: I5e47ad1d394b72e57e9264fc4abd2a499dc618ef
2018-07-01 14:37:55 -04:00
Andrew Smith 547ebfcff5 Role requirements and tests 2018-05-25 15:24:30 -04:00