Commit Graph

101 Commits

Author SHA1 Message Date
Zuul fdfb824a42 Merge "Add Python 3.8 and 3.9 to supported runtimes" 2023-11-16 16:13:40 +00:00
OpenStack Proposal Bot f5fdf0a435 Updated from OpenStack Service Type Authority
Change-Id: I28b1251a9ae2126f984d73b037cedc4c4017f1bf
2022-09-13 15:40:47 +00:00
zhangbailin 7155ee7aa8 Update api_ref for Cyborg project
Change-Id: If306a507c314271121cd24aa5df78fb192eac460
2022-09-08 14:26:19 +08:00
Takashi Kajinami e32eb594a7 Add Python 3.8 and 3.9 to supported runtimes
... because these are part of test runtimes since Yoga development
cycle.

Change-Id: Ib5fc73c4e076092e9579ee5eb2cc5e5a8c76c6ab
2022-05-25 20:55:12 +09:00
Stephen Finucane e82d561007 Update CI to use unversioned jobs template
As part of the migration of this project to the independent release
model, we failed to notice that the job template was still tied to a
specific release. We've now introduced a new unversioned job template,
'openstack-python3-jobs' [1], which was can and should use. Do this.

[1] https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/833286/

Depends-On: https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/833286/
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I9863138d14293a07aadbec4f6e4cb0634b14b8c8
2022-03-22 10:40:21 +00:00
yangyawei b4474778d0 Use py3 as the default runtime for tox
Moving on py3 as the default runtime for tox to avoid to update
this at each new cycle.

Change-Id: I16929ff578e77cc437435e226007b481b2b337ae
2022-03-22 10:39:23 +00: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 2ee8e7f4ef setup.cfg: Replace dashes by underscores
Since setuptools v54.1.0[1], the parmeters with dash have been
deprecated in favor of the new parameters with underscore.

This change updates the parameters accordingly to avoid the warnings
like the example below.

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: I8695d1b501f04a333caf080c835c6388415e52cf
2022-02-05 17:52:53 +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
maaoyu 5056a77a18 bump py37 to py38 in tox.ini
in 'victoria' cycle, we should test py38 by default.

ref:
  https://governance.openstack.org/tc/reference/runtimes/victoria.html

Change-Id: Ia7e08e12aa53bc7b7cee92b497275f9e990ac0a3
2020-10-12 13:52:43 +08: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 5f75f25dfb Merge "Switch to Ussuri jobs" 2019-12-24 06:46:11 +00:00
Zuul d89d99a725 Merge "Updated from OpenStack Service Type Authority" 2019-12-23 21:14:38 +00:00
Zuul 8ddd64ff6a Merge "Update the constraints url" 2019-12-23 21:03:34 +00:00
Zuul b18a6fdb9d Merge "Blacklist sphinx 2.1.0 (autodoc bug)" 2019-12-23 20:53:43 +00:00
pengyuesheng 495914786f Switch to Ussuri jobs
Change-Id: I3197f32b9d85e4c9030287d41f13af752133244d
2019-10-24 14:46:06 +08: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
pengyuesheng 248052ad65 Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I23a99b977286921d6163174de830e59c19162c01
2019-09-29 10:26:48 +08:00
OpenStack Proposal Bot 726b8ec079 Updated from OpenStack Service Type Authority
Change-Id: Id141cd1906b678a4ee238b10fb2fbf3850f5fa42
2019-07-23 14:20:39 +00:00
Andreas Jaeger 27aa3be0f2 Update api-ref location
The api documentation is now published on docs.openstack.org instead
of developer.openstack.org. Update all links that are changed to the
new location.

Note that redirects will be set up as well but let's point now to the
new location.

For details, see:
http://lists.openstack.org/pipermail/openstack-discuss/2019-July/007828.html

Change-Id: Id60f5c97058646c19a8a9d0befc56e9e97b202d8
2019-07-22 20:53:27 +02:00
Corey Bryant f4cfd61ec9 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: I01dc2774b950fe4da9d715b1df376c2e38f45687
Story: #2005924
Task: #34233
2019-07-05 14:36:09 -04: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
Zuul 2c22044ec9 Merge "Update testing jobs" 2019-05-13 16:03:50 +00:00
Andreas Jaeger 7a89db60db Update testing jobs
Remove py35 testing, for train py35 is not supported anymore.

Update docs environment to use sphinx-build directly following PTI.

Change-Id: Idd120c50f3205be116a22af83029b1560876fa36
2019-05-01 22:16:27 +02:00
OpenStack Proposal Bot 0b2f4733eb Updated from OpenStack Service Type Authority
Change-Id: I315e21be4597d9bf3fce61c877f01307e4ced3cb
2019-05-01 20:01:20 +00:00
Monty Taylor 9243671b28 Update links for opendev
Change-Id: I12626fb24abe0cc65ba89f6021dbb055a372601f
2019-04-21 13:02:57 +00:00
OpenDev Sysadmins b090f8f1d3 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:34:28 +00:00
Sahid Orentino Ferdjaoui 8f7e4e9c1e add python 3.7 unit test job
See ML discussion here [1] for context.

[1] http://lists.openstack.org/pipermail/openstack-dev/2018-October/135626.html

Change-Id: I3cd3a851efbfbe481482130d024723e10ab1395c
Story: #2004073
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
2019-03-25 10:58:08 +00:00
Zuul 1bf4b31b58 Merge "Update home-page" 2019-03-04 12:11:41 +00:00
OpenStack Proposal Bot cf1419a89e Updated from OpenStack Service Type Authority
Change-Id: Id6b96df35aab310ac7dda46364e9ddbeea834f0b
2019-03-01 04:36:10 +00:00
OpenStack Proposal Bot 4170f2e584 Updated from OpenStack Service Type Authority
Change-Id: Id96ceb90f74908de377ec81d253454e12a59aab4
2019-01-18 17:53:03 +00:00
98k 595052d9eb Update home-page
Change-Id: Iafe531f6132cb127cc2dd0f075ea392bf42d9bf3
2019-01-11 16:31:49 +00: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
melissaml fe82094522 Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: I26ede32cc28b92a6396a6a7725e049b3251b47f1
2018-12-05 00:53:41 +08:00
OpenStack Proposal Bot b6f014da2a Updated from OpenStack Service Type Authority
Bot triggered by service-types-authority change [1].

Unit tests updated manually.

[1] I64b579180542342afe71f05afe175d14e10a539d

Change-Id: I589f556f7321f7153a8c9b19f276220e2ef89160
2018-11-27 09:29:22 -06:00
Zuul 558dfcb456 Merge "Update the hacking to latst" 2018-10-16 19:02:46 +00:00
Zuul 8b81c669bb Merge "Add unittest for os_service_types.data module." 2018-10-16 16:20:41 +00:00
Zuul 7f556f8fa9 Merge "Removed older version of python added 3.5" 2018-10-16 16:20:06 +00:00
ZhijunWei baf9ca7aec Update the hacking to latst
Change-Id: Ib793d57e6ae9831ef15ee866e3efa00ecf958a6a
2018-10-16 16:01:41 +00:00
Vieri e9f7002677 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: I050c75a2957f42448994716f0da924a45d5f3083
2018-10-09 13:31:16 +00:00
qingszhao cfecd09c77 Removed older version of python added 3.5
In setup.cfg file the python 3.5 is added

Change-Id: Ia26b6000f7316b7e5e509fe489057b9d18f2e8d6
2018-09-29 17:45:43 +08:00
Federico Ressi e4cc41873a Add unittest for os_service_types.data module.
Change-Id: I1d0e68f361e6fb9ddd578debeaaf0b6b5c0879fd
2018-09-06 07:02:38 +00:00
Zuul b6ac042ece Merge "Use keystoneauth only in applicable test" 2018-09-05 14:52:04 +00:00
Colleen Murphy 93729fcfcf Use keystoneauth only in applicable test
keystoneauth uses os-service-types as a run time dependency.
os-service-types uses keystoneauth as a testing dependency. This causes
an issue for packagers: in order to run the unit tests at build time,
an os-service-types package must include keystoneauth as a build
dependency, but since keystoneauth includes os-service-types as a run
time dependency, it causes a circular dependency.

To make it easier on packagers, this patch changes the usage of
keystoneauth in the tests to only be used by the TestRemote class
instead of the base TestCase class. This way, a packager could avoid
including keystoneauth as a build dependency by choosing to skip just
the problematic os-service-types test instead of skipping the entire
test suite.

Change-Id: I7f8da9c09f20ae808e1dc7aef2341396d91e7cf4
2018-09-05 11:25:11 +02:00
Federico Ressi a372532fd9 Close descriptor after reading file.
This change has been motivated by below ResourceWarning Python3
is emitting when using this library:

  ResourceWarning: unclosed file <_io.TextIOWrapper name='.../site-packages/os_service_types/data/service-types.json' mode='r' encoding='UTF-8'>
    return json.load(open(os.path.join(DATA_DIR, filename), 'r'))

Change-Id: Id86cdedab44bf4096185ced2ed6b9379a71bc3e1
2018-08-28 08:22:44 +02:00
Vieri 537e5a8d69 add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I88390279fabdc3b97f067d831ee2542e442216da
Story: #2002586
Task: #24321
2018-08-21 16:23:55 +00:00