Commit Graph

29 Commits

Author SHA1 Message Date
Takashi Kajinami 3d15404d9c Bump hacking
hacking 3.1.x is too old.

Change-Id: Ib258cfd4c23bc0cff9ad52e7f967953d9e99b60b
2024-02-19 02:30:01 +09:00
Hervé Beraud f69edb021f 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]. Removing
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: I4ff8cee25887d38e18fd260560b92ad4bf904838
2022-03-22 10:38:50 +00:00
Stephen Finucane 35f079f3b6 Modernize package a little
- Remove unnecessary dependencies
- Cleanup 'tox.ini' file

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I19a5d0318ac72012aa7adc9b7eaccc2e59885838
2022-03-22 10:36:43 +00:00
Takashi Kajinami ebb7f97c05 Bump hacking to 3.0.1
This bumps hacking to 3.0.1 to resolve the following conflict causing
failure during installation.

ERROR: Cannot install hacking and pyflakes>=2.1.1 because these package
versions have conflicting dependencies.

The conflict is caused by:
    The user requested pyflakes>=2.1.1
    flake8 2.6.2 depends on pyflakes!=1.2.0, !=1.2.1, !=1.2.2, <1.3 and
    >=0.8.1
    The user requested pyflakes>=2.1.1
    flake8 2.6.1 depends on pyflakes!=1.2.0, !=1.2.1, !=1.2.2, <1.3 and
    >=0.8.1
    The user requested pyflakes>=2.1.1
    flake8 2.6.0 depends on pyflakes!=1.2.0, !=1.2.1, !=1.2.2, <1.3 and
    >=0.8.1

Change-Id: Ie378f9bcbe6096b362cec81ab00c04e952667ea8
2022-02-06 02:42:45 +09:00
Ghanshyam Mann 5d4cbe9839 Fix pep8 testing for ubuntu focal
As per victoria cycle testing runtime and community goal[1]
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).

Fixing:
- bug#1886296
Bump the pyflakes to 2.1.1 as min version to run pep8 jobs
on py3.8 which is default python vesion in ubuntu focal.

Story: #2007865
Task: #40206

[1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal.html

Change-Id: I26b55dd683279faba0872320f5944f10996d3c9c
2020-09-09 16:51:02 -05:00
Andreas Jaeger 4b0382070a 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_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.

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: I0057fe10b462ce5ae430b9ad01e8f7d72be0f13a
2020-05-31 20:38:29 +02:00
Andreas Jaeger a5fe49a956 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

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: Ibea136743f9a82d0e9ff35bc59f54a4c8afda74b
2020-02-04 20:34:32 +01:00
Zuul b18a6fdb9d Merge "Blacklist sphinx 2.1.0 (autodoc bug)" 2019-12-23 20:53:43 +00:00
pengyuesheng aa373c592f Bump the openstackdocstheme extension to 1.20
Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.

Change-Id: I34b5d91bb5eea3680d915a262bee4a24e2ae2752
2019-10-12 15:19:26 +08:00
pengyuesheng 67eea4b7bd Blacklist sphinx 2.1.0 (autodoc bug)
See https://github.com/sphinx-doc/sphinx/issues/6440 for upstream details

Change-Id: I84d8c93c1f3e193a5de107cd3d8cc50fbf869276
2019-10-10 14:39:33 +08:00
jacky06 36a0dcaf8d 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. Update some URLs to latest
3. Remove unncessary "=="

Change-Id: I48206450371b557f51b0842976d48c9042173df2
2019-06-20 00:29:50 +08:00
ZhijunWei fb33d01882 Update hacking version
Use latest release 1.1.0 and compatible changes w.r.t pep8

Change-Id: I72a882f2c33ea8c5b79625b3bb3e951204e0bba7
2019-01-06 19:06:14 +08:00
Federico Ressi e4cc41873a Add unittest for os_service_types.data module.
Change-Id: I1d0e68f361e6fb9ddd578debeaaf0b6b5c0879fd
2018-09-06 07:02:38 +00:00
Eric Fried db1ba203cc 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: Ia64e4e4e44bc8ce7a86b471b0e60599fb285699f
2018-07-24 09:18:54 -05:00
OpenStack Proposal Bot 6438d3ae40 Updated from global requirements
Change-Id: I8df56ec1be3e08ea8ba8f8ed31db53c11d23d4d2
2018-03-23 01:37:26 +00:00
OpenStack Proposal Bot 6f154befea Updated from global requirements
Change-Id: I4b8b1154ca23d7df69425e0cead8aeeca23bb015
2018-03-15 07:44:49 +00:00
OpenStack Proposal Bot 713fbf5362 Updated from global requirements
Change-Id: Ica39431923f861196e4e1d28562309f3d0f38597
2018-02-17 10:04:14 +00:00
OpenStack Proposal Bot 450d6d81ff Updated from global requirements
Change-Id: Iedf5aaad4549a2db06f7e5e14ae656d839a6a1be
2018-01-24 01:23:22 +00:00
OpenStack Proposal Bot 8fedd299c4 Updated from global requirements
Change-Id: I85cc0875f849e0964a06c6e2733b3dd1a7cfa090
2018-01-18 03:21:37 +00:00
OpenStack Proposal Bot b9ce5cf729 Updated from global requirements
Change-Id: I3710939d3f178f06c29fcba2203d2fb25186cde3
2017-12-05 03:26:39 +00:00
OpenStack Proposal Bot 20c347bc0a
Updated from global requirements
Change-Id: Ia166a26190965f37a8248a973df1b49cb6c8d951
Depends-On: I27f13d21c37c49eb8119aa44a4bd46cab52846b6
2017-12-01 09:39:52 -06:00
OpenStack Proposal Bot 1859b0c71c Updated from global requirements
Change-Id: I34a7ccb8533a2a6e1041847f4a722833ddffa437
2017-09-20 03:41:54 +00:00
OpenStack Proposal Bot 12f9aa329c Updated from global requirements
Change-Id: I331a18a15e9c7c371742e6dc93844dc93bc3b16c
2017-09-01 12:44:49 +00:00
OpenStack Proposal Bot 79fee7a524 Updated from global requirements
Change-Id: I914d89b9dfd9a9737e60af23561fa09524aca0f0
2017-08-18 11:39:29 +00:00
OpenStack Proposal Bot d1b877f3e6 Updated from global requirements
Change-Id: Ia572cd450972b667a644f6ae5c6b599be80c26ea
2017-07-28 13:23:25 +00:00
OpenStack Proposal Bot 6281e50b15 Updated from global requirements
Change-Id: I9f533904784f10457a0412fe16214b662e999d08
2017-07-23 13:50:14 +00:00
OpenStack Proposal Bot ee2d6fb19a Updated from global requirements
Change-Id: I923ab6f66cf91ebaac2ea631ee46152f4ec8cf5c
2017-07-20 02:16:44 +00:00
Monty Taylor 48a94e00a7
Implement fetching and accessor methods
The ServiceTypes class is the main entry point for python programmers.
It should allow them to answer the questions they have about the data
without necessarily walking the structure. It can also return the raw
structure if people want to get at it.

We need to know the project codename for services for doing API doc
publication validation and also for being able to send legacy
microversion headers. The information is in the data, use it.

In order to construct and send microversion headers for projects with
aliases, we need to know ALL of the aliases plus the official name,
because we don't know which one of the values will be the correct name
the service is looking for for a given version. The microversion spec,
however, requires that consumers be able to handle a header that
contains a list of services and to ignore the ones it isn't looking for.

By providing a a list of all the possible values we make it easy to
construct a header for a service given a service_type that should work
for all known identifiers of the service and that is future compatible
with the service-type and microversion specifyier aligning.

Co-Authored-By: Doug Hellmann <doug@doughellmann.com>
Change-Id: I57641c9e3c27688b6d7709b1bb07292740d26659
2017-07-19 13:18:14 +09:00
Monty Taylor 1865fa56f8 Add cookiecutter boilerplate
Removed babel related things - we're not expecting to have translations.

Change-Id: I510195c6c83c99d78c90571ff0fdea8219833d95
2017-07-14 13:43:28 -04:00