Commit Graph

26 Commits

Author SHA1 Message Date
Zuul d6c09f09d2 Merge "Add doc/requirements" 2024-04-18 09:50:48 +00:00
Takashi Kajinami ce3dee3563 Bump hacking
hacking 3.0.x is too old.

Change-Id: I170c1b5e15229ab4cf043773208b3a76e3e02188
2024-01-27 22:25:42 +09:00
Hervé Beraud 19b2e15cee Add doc/requirements
We need to specify doc requirements in doc/requirements.txt
to avoid problems with the pip resolver [1] for the release team [2][3].
Removed specific doc requirements from test-requirements.txt.

The problem here is that this repos haven't doc/requirements.txt file
and by default in this case zuul will use the test-requirements.txt file
to pull requirements [4].

This requirements file contains extra requirements like flake8 that
collided with those allowed in our job environment and so the new pip
resolver fails to install these requirements and the job exits in error.

This project meet the conditions leading to the bug.

[1] http://lists.openstack.org/pipermail/release-job-failures/2021-January/001500.html
[2] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019611.html
[3] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019612.html
[4] https://opendev.org/zuul/zuul-jobs/src/branch/master/roles/ensure-sphinx/tasks/main.yaml#L36

Change-Id: Iddc6f1d90f416b8938a712ac0b04aec807f391a9
2024-01-26 01:07:33 +00:00
Takashi Kajinami cac701a531 Update python testing as per zed cycle testing runtime
In Zed cycle, we have dropped the python 3.6/3.7[1] testing
and its support. Add release notes and update the python
classifier for the same.

[1] https://governance.openstack.org/tc/reference/runtimes/zed.html

Note this change disables one unit test case consistently failing.
It should be fixed later by a separate patch.

Co-Authored-By: Ghanshyam Mann <gmann@ghanshyammann.com>
Change-Id: I6ef3bbb3f8b4aef077320478a00e096e0a57a71e
2022-06-08 15:04:29 +09:00
Andreas Jaeger d6b4ed4c7b Further Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove obsolete sections from setup.cfg
- Use newer openstackdocstheme,reno and Sphinx versions
- Remove install_command from tox.ini, the default is fine
- Use TOX_CONSTRAINTS_FILE, UPPER_CONSTRAINTS_FILE is obsolete
- Update hacking to 3.0.1, fix warnings found
- Remove babel.cfg, it's not needed anymore

Change-Id: I60edb7e44e4a8222f564f30157eb31288b85b422
2020-05-13 14:09:38 +02:00
Sean McGinnis a29dc0ab94
Bump default tox env from py37 to py38
Python 3.8 is now our highest level supported python runtime.
This updates the default tox target environments to swap out
py37 for py38 to make sure local development testing is
covering this version.

This does not impact zuul jobs in any way, nor prevent local
tests against py37. It just changes the default if none is
explicitly provided.

Change-Id: I0bad7c33e0692d3e1e0d59e48afe43f96e903f59
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 10:25:35 -05:00
zhurong c6b90ec56a Cleanup py27 support
Make a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
  know about the requirement
- Remove obsolete sections from setup.cfg:
  * Wheel is not needed for python 3 only repo
  * Some other sections are obsolete
- Update classifiers
- Update requirements, no need for python_version anymore

Change-Id: I1db16203ad150c6286c0ca833c01a456981d0a73
2020-04-07 04:57:31 -07:00
Ghanshyam Mann ea270ed582 Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

ceilometermiddleware 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://review.opendev.org/#/c/691178/

Change-Id: I48f75b701ecc4eee3134473bc854a0825b705203
2019-10-30 07:57:07 +00:00
Thomas Bechtold e379747cd8 Drop oslosphinx and use openstackdocstheme
OpenStack moved to openstackdocstheme so use it here instead of
oslosphinx.
Also update the used Sphinx version. This is now in sync with the
versions from requirements/global-requirements.txt .

Change-Id: I0ffbea9b83abe9d9ae3886e7a427fc01637b36ea
2019-09-24 09:51:07 +02:00
Corey Bryant 7ab5b6277b 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

Change-Id: I1ceedbdc843eb7aabfe76f3c0ab619fd89fb7524
Story: #2005924
Task: #34251
2019-07-05 16:28:25 -04:00
Ghanshyam Mann d79a2e8459 Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: I0ca06f40683426e95bb83647c902efab74b6b311
2019-04-16 04:01:28 +00:00
Vu Cong Tuan 47d2319144 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: Ic7db0e419ccf6f7b05058950ec8a76378b428719
2018-07-10 16:53:35 +07:00
Doug Hellmann 8332b9eaff 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: I39b4965e5f9b7b77d12beee09f87fadb23aee5d5
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-06 15:27:00 -04:00
Hanxi Liu 9f9f0d7011 Trivial: remove support for py34
The gating on python 3.4 is restricted to <= Mitaka. This is due to
the change from Ubuntu Trusty to Xenial, where only python3.5 is
available. There is no need to continue to keep these settings.

Change-Id: I55e72ff730b28b438cf24953466851d1b844b7a8
2017-02-21 11:39:37 +08:00
Tony Breeds 60d215d810 [doc] Note lack of constraints is a choice
Change-Id: I35a061d45eff4dcc1d573073c0261037a66a0a51
2017-01-17 01:39:24 +00:00
Julien Danjou 430f736dc2 Bump hacking to 0.12
Change-Id: I344c02445bae5960ec450357b5a088ca9a6cb385
Signed-off-by: Julien Danjou <julien@danjou.info>
2016-11-07 22:17:41 +01:00
Jenkins 1fd6270c2e Merge "Add reno for release notes management" 2016-08-11 17:50:00 +00:00
Hanxi Liu b43fb3e577 Delete openstack/common from the exclude list of flake8 in tox
The directory openstack/common was used to keep codes from
oslo-incubator, we have retired oslo-incubator, so don't use
this directory any more.

Change-Id: I3fcbec9fcec6d36c3e8254a809de0ae0b02a4841
2016-08-03 16:26:00 +08:00
Steve Lewis 55e728897d Add reno for release notes management
As per the release process changes for liberty and mitaka [1], the
reno tooling is being added to the repository for the purpose of
implementing on-going release note additions.

[1] http://lists.openstack.org/pipermail/openstack-dev/2015-November/078301.html

Change-Id: Ia824156badaceb3000ca37052af1c1c8ded1e584
2016-07-28 08:53:19 -07:00
Julien Danjou 34fe5f32f1 Add support for Python 3.5
Change-Id: I8cf4917913a6f1224b7599444937ff99ea1dc048
2016-07-21 13:56:26 +02:00
Julien Danjou d72a7cfc37 Remove py33 from tox envlist
Change-Id: Ie94e19c3f09687601d5c8f3736ff0a110646ea14
2016-07-21 13:01:28 +02:00
Mehdi Abaakouk 295e796a84 Upgrade hacking
Change-Id: I09ea520e2f18550c0f9b64bb94bc810cf5578f07
2016-07-11 11:00:58 +02:00
Julien Danjou c962fedb85 Only install hacking in pep8
Change-Id: I15dc052f3419b548b5dc373c5edb3658e48d69a1
2016-05-10 12:10:12 +02:00
sonu.kumar ddeb007584 Remove py26 support from ceilometermiddleware
As of mitaka, the infra team won't have the resources available to
reasonably test py26, also the oslo team is dropping py26 support
from their libraries. sine we rely on oslo for a lot of our work,
and depend on infra for our CI, we should drop py26 support too.

Change-Id: I47a897ec15ef0f74bce025a6af28e6c786bf9622
Related-Bug: #1519510
2015-12-16 15:14:23 +05:30
Tom Cocozzello 499797d94c Activate pep8 check that _ is imported
Remove the specification in tox.ini that _ is a builtin so that
it will no longer assume that _ does not need to be imported.
This helps ensure that the _ from i18n is used.

Activating this check did not flag any violations.

Change-Id: I7b3528e07aee6138563ad83c2caa08ecbe49f933
2015-08-04 10:47:28 -05:00
gordon chung 5a5dbbbee7 initial checkin 2015-01-20 18:36:18 -05:00