Commit Graph

25 Commits

Author SHA1 Message Date
Jimmy McCrory 73b1b09b25 Fix pep8 gate
Update flake8-docstrings requirement.
Ignore missing docstring in __init__ methods.

Change-Id: I966fe3fdc16765795f99e1f5984050baae305849
2023-05-05 08:59:21 -07:00
LiZekun d1b6bf6094 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: I63fe48b93d3bfeedc07c9347284e6147c726bebf
2022-07-16 14:01:05 +00:00
Wander Way 322e0d753f Remove lower-constraints, uncap PrettyTable
The lower-constraints jobs are timing out, which means we're failing to
find a match for our specified constraints. These jobs are of limited
value so just drop them.

The change to requirements flags the cap we currently enforce on
PrettyTable. This was previously necessary due to requirements enforcing
the same case, but PrettyTable is now maintained as a Jazzband project
[1] and the cap has been removed.

Finally, while we're here, we can cleanup tox.ini somewhat and remove
now unnecessary warnings from the 'requirements.txt' file (this isn't an
issue with pip's new resolver).

[1] https://github.com/jazzband/prettytable

Change-Id: Ib0fad16f3c9b817756996f79c0b0b61f854583a3
Co-authored-by: Stephen Finucane <stephenfin@redhat.com>
2021-02-24 14:00:21 +00:00
Andreas Jaeger bbc0e139d5 Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Disable openstackdocs_auto_version to not auto-version the documents.

Disable openstackdocs_auto_name to use 'project' variable as name.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

Remove docs requirements from lower-constraints, they are not needed
during install or test but only for docs building.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I26cabdc85596be44fca36cad2a609b8fca0e50e0
2020-05-30 18:37:12 +02:00
Vishakha Agarwal a9e8ec4e3c [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

ldappool is ready with python 3 and ok to drop the
python 2.7 support.

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: Iafa765c5aa8ac83656003d8addf698795ce93e1a
2019-12-17 15:14:50 +00:00
Zuul 151a7ac177 Merge "Follow the PTI for docs" 2019-10-15 16:37:20 +00:00
Vishakha Agarwal 8f2f2e3827 Follow the PTI for docs
Use sphinx-build instead of the pbr sphinx extention for building docs
as instructed by the PTI[1].

We remove the reference to the ChangeLog file that is usually generated
by pbr and instead refer to the published reno release notes. Also fixes
the header formatting for the index page, as the headers weren't
rendering at all.

[1] https://governance.openstack.org/tc/reference/pti/python.html

Change-Id: I36142eeb1590c551c6df3bd7d0bc7b7a4a8c692f
2019-10-09 06:17:09 -07:00
Corey Bryant dbf4776bbf Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Depends-on: https://review.opendev.org/668970

Change-Id: I3ea85523b3f17a605bb2bda340f2b4dc553655fa
Story: #2005924
Task: #34215
2019-07-03 12:50:31 -07:00
jacky06 732fc6bec7 Sync Sphinx requirement
1. Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.
2. Replace git.openstack.org URLs with opendev.org URLs

Change-Id: Id9f496f57acd2d5a388920e6bdebe52c40a98073
2019-06-19 14:40:58 +08:00
Vishakha Agarwal bed9eb5ff9 Update the min version of tox
In Train, we will use python3.6 and 3.7 for which
the minimum tox version required is 2.5[1]

[1]https://tox.readthedocs.io/en/latest/changelog.html#v2-6-0-2017-02-04

Change-Id: I8adbf57d69ff888e94c9596493acd9ed8a78bc7a
2019-04-09 15:09:34 +05:30
Vishakha Agarwal 0c1f6fb480 Drop py35 jobs
Python 3.5 was the target runtime for the Rocky release.
The current target py3 runtime for Stein is Python 3.6,
so there is no reason to keep testing against the older version.

https://governance.openstack.org/tc/reference/runtimes/stein.html#python-runtime-for-stein

Change-Id: Ie8dbbf3180da6ba487cebfa40bf831f20ba33a90
2019-02-28 11:43:53 +05:30
Colleen Murphy 01d0eb3807 Add py37 tox env
With python3.7 jobs added to the Zuul jobs, it makes sense to add this
to the tox config too so that developers can run python3.7 tests as
well.

Change-Id: Iaa8e6ab9fc1a18d10f7d12eec0446d7db33d7f58
2019-02-25 12:16:03 +01:00
Colleen Murphy 04f990936b Add py36 tox environment
We already run python3.6 unit tests in CI. Add the py36 environment to
the tox file so that developers with python3.6 available locally can opt
into running that version too.

Change-Id: I31cb1d4f6476427720b77b4370ab8e91bd3450b4
2018-11-06 12:59:26 +01:00
Colleen Murphy 2626d58c4d Add plumbing to support reno release notes
Change-Id: I1b4187ca74586912c36bfa3650951a1e8b5fa7a2
2018-10-31 14:10:27 -07:00
98k 32dec4f40e Don't quote {posargs} in tox.ini
Quotes around {posargs} cause the entire string to be combined into one
arg that gets passed to stestr. This prevents passing multiple args
(e.g. '--concurrency=16 some-regex')

Change-Id: I7bb4ca54e9f266c7f2735b0339ea1d7b3138be57
2018-10-09 21:04:52 +00:00
qingszhao 3c1ce2d830 Removed older version of python added 3.5
In setup.cfg file the python 3.5 is added
In tox.ini the python 3.5 is added

Change-Id: If4b47cb1a4bdd7c92ce438548defd8bf552dc170
2018-09-29 16:30:04 +08:00
huang.zhiping cd9f5ec71a 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: I0bfdf108da6dc819debe29b4998d507b86e343a4
2018-08-15 06:55:47 +00:00
Vu Cong Tuan eaa81ffdfc Switch to stestr
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: Ieca57f7c2e6b2ff5c95f8643985ad760c71e0fc3
2018-07-17 08:17:25 +07:00
Doug Hellmann b6e6290d79 add lower-constraints job
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.

Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.

Add openstack-tox-lower-constraints job to the zuul configuration.

See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.

Change-Id: Ia0df9d71a43832405bb408967349ad84a6f73d5c
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-06 09:02:34 -04:00
Andreas Jaeger a25dcd45f7 Avoid tox_install.sh for constraints support
We do not need tox_install.sh, pip can handle constraints itself
and install the project correctly. Thus update tox.ini and remove
the now obsolete tools/tox_install.sh file.

This follows https://review.openstack.org/#/c/508061 to remove
tools/tox_install.sh.

Change-Id: Icd931f97b8a11c9aa07ff7eecf2616ed4eacf420
2017-12-02 17:05:06 +00:00
Tony Breeds 0016814c3d Add Constraints support
Adding constraints support to libraries is slightly more complex than
services as the libraries themselves are listed in upper-constraints.txt
which leads to errors that you can't install a specific version and a
constrained version.

This change adds constraints support by also adding a helper script to
edit the constraints to remove .

Change-Id: I41c6b3a2c4875128679b2dd8177425dd9f515ebc
2016-12-21 11:45:22 +11:00
Morgan Fainberg 62b14c6320 Add py3 info to setup.cfg
Add the python 3 classifiers to setup.cfg and proper envs to
tox.ini.

Change-Id: I771c148ee8d246a5a3ac45e3a2e45c1fe3a691b1
2016-05-17 16:51:19 -07:00
Steve Martinelli 96d81b06e2 add .gitreview and fix ldappool gate
the docs job wasn't passing, and no .gitreview file

Change-Id: Ida0d366d924e2bcfc1b4efc14411240ee70490ae
2016-05-12 13:50:05 -07:00
Morgan Fainberg ceca46e006 PEP8 fixes
Fix pep8 errors, add appropriate flake8 exceptions.
2016-05-12 09:20:06 -07:00
Morgan Fainberg 6350323b7f Add support for tox unit testing
Add support for tox unit testing prior to import into openstack's
gerrit/CI system.
2016-05-12 08:36:14 -07:00