Commit Graph

98 Commits

Author SHA1 Message Date
Zuul 8deb54e278 Merge "Update python classifier in setup.cfg" 2024-02-20 10:49:22 +00:00
Takashi Kajinami 05f1c42078 Bump hacking
hacking 3.0.x is too old.

Change-Id: I3c9bdadc258ca9aae71e81fceeba5f4b2e5d344e
2024-02-19 03:11:24 +09:00
Takashi Kajinami 1750cda55e Install requirements for doc build
... to avoid the failure caused by missing dependencies.

Change-Id: Idbf5f7fefc5cf9f8fbeba6c4c64e70acc0dcb613
2024-02-19 03:11:24 +09:00
Ghanshyam Mann a7b8a48bac Update python classifier in setup.cfg
As per the current release tested runtime, we test
python version from 3.8 to 3.11 so updating the
same in python classifier in setup.cfg

Change-Id: Id4b8fafa733bc1f2f95e7c78389bea855b571e1e
2024-01-11 16:37:03 -08:00
LiZekun 9883376a86 setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of dash-separated
options in 'setup.cfg' will not be supported in a future version [1].
Get ahead of the issue by replacing the dashes with underscores. Without
this, we see 'UserWarning' messages like the following on new enough
versions of setuptools:

  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: I74e80a0f336cd0ae890f6883df118f40085179aa
2022-08-04 03:40:42 +00:00
Hervé Beraud 916e0ab42b Drop python3.6/3.7 support in testing runtime
In Zed cycle testing runtime, we are targetting to drop the
python 3.6/3.7 support, project started adding python 3.8 as minimum,

example nova:
- 56b5aed08c/setup.cfg (L13)

Also indicates that we support python 3.9.

Change-Id: I6ebd945c34e8aabd9dd9915557e83fa6f34d8141
2022-05-05 16:17:39 +02:00
Zuul 8ab82b2120 Merge "Use TOX_CONSTRAINTS_FILE" 2022-03-22 12:49:22 +00:00
Zuul c7fe129b71 Merge "Use py3 as the default runtime for tox" 2022-03-22 12:29:00 +00:00
Zuul bd79c89728 Merge "remove unicode literal from code" 2022-03-22 12:22:25 +00:00
LiZekun 9f28d5654a 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: I84d8f96178486ec694b7732dbce637b302c7278f
2022-03-22 12:18:52 +00:00
Stephen Finucane ba96f9f330 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: I612aaf987eaae1e75378685e06cf5142f757fc98
2022-03-15 15:12:31 +00:00
LiZekun 81ec6a930f remove unicode literal from code
All strings are considered as unicode string from Python 3.

This patch drops the explicit unicode literal (u'...')
appearances from the unicode strings.

Change-Id: I3da0593718fa0196e238a2d5a343b958ce34f201
2022-02-24 00:54:06 +00:00
zhangboye 36f19460bc 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: I39575be766915b0aadfc810d301880848a56f261
2021-04-20 10:40:30 +08:00
Stephen Finucane 492c33675f Migrate from testr to stestr
Signed-off-by: Stephen Finucane <stephenfin@sfinucan.users.ipa.redhat.com>
Change-Id: I0f4a000ee4c0d54d1f1b016380ef0ca68f050854
2021-02-10 15:01:40 +00:00
Hervé Beraud eb2ca597f0 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: Iac559a62dcadadc409c643968b72e28e11d6d00c
2021-01-07 17:24:43 +01:00
zhoulinhui a9d113d3f0 Bump py37 to py38 in tox.ini
In wallaby cycle, we should test py38 by default.

Change-Id: I4e92a47d37a935670022434fcb01158e044056f3
2020-10-06 19:20:01 +08:00
zhoulinhui cd21bc139b Add py38 package metadata
Change-Id: I5ffc606ee28cef204904fe261370f28cfebc0a90
2020-10-06 17:58:07 +08:00
zhoulinhui bd457e3256 Fix hacking min version to 3.0.1
flake8 new release 3.8.0 added new checks and gate pep8
job start failing. hacking 3.0.1 fix the pinning of flake8 to
avoid bringing in a new version with new checks.

Though it is fixed in latest hacking but 2.0 and 3.0 has cap for
flake8 as <4.0.0 which mean flake8 new version 3.9.0 can also
break the pep8 job if new check are added.

To avoid similar gate break in future, we need to bump the hacking min
version.

- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html

Change-Id: I36d26f34df8e5791533dc1a290a77d01981625af
2020-09-18 00:20:15 +08:00
Zuul cd00454b53 Merge "Switch to newer openstackdocstheme version" 2020-06-03 09:07:02 +00:00
Hervé Beraud 01c00cc378 Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: Ib6ac56c613cd0ed0250cd80264cf35641d5aa586
2020-06-02 21:07:38 +02:00
Andreas Jaeger bbba8294b9 Switch to newer openstackdocstheme version
Switch to openstackdocstheme 2.2.1 version. Using
this version 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: Ie0bbbbf0c725e19f07db8bdc21485e523fa6854c
2020-06-02 13:56:38 +02:00
Andreas Jaeger 31b621dc0f Remove unused translation content
Remove translation sections from setup.fg and the file babel.cfg.

These are not needed for this repo.

Change-Id: I293632bacaea85ad79b18a24f630cf3cd6f695f1
2020-04-26 14:13:04 +02:00
Andreas Jaeger 604d8ebc02 Update to hacking 3.0
Hacking 3.0 was just released with minor changes, update to the new
version.

Change-Id: I3956e74808ecdc7e17eb16c88d5ef82cc60a5ee4
2020-03-31 13:43:14 +02:00
Andreas Jaeger d053ba5638 Update hacking
Use python3 compatible version.

Change-Id: I185abcff384ba663e73b2c2975f03774ea6660dd
2020-02-03 14:50:24 +01:00
Andreas Jaeger cbf98fdc5c [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: Ie1e6a0b1aac4aca3f7f6a3ef7113ceee28233463
2020-02-03 13:52:03 +01:00
Andreas Jaeger 4a0ae55492 Move to Launchpad
As part of moving to Oslo, use openstack-doc-tools launchpad
project instead of Storyboard.

Change-Id: Id2c181b40f1bfeee364bff28db55fb7586f309ca
2019-10-28 18:57:22 +01:00
Zuul 9c7a414196 Merge "Switch to Ussuri jobs" 2019-10-22 10:22:33 +00:00
Andreas Jaeger e7326af1b1 Switch to Ussuri jobs
Train is released, update testing for Ussuri.

Change-Id: Ib984e54b202312dfbeb7c7829c8b22229e15eed5
2019-10-16 21:48:05 +02:00
jacky06 01a1742476 tox: Keeping going with docs
1. Sphinx 1.8 introduced [1] the '--keep-going' argument which, as its name
suggests, keeps the build running when it encounters non-fatal errors.
This is exceptionally useful in avoiding a continuous edit-build loop
when undertaking large doc reworks where multiple errors may be
introduced.
2. remove the unnecessary ==
3. update the url to latest

[1] sphinx-doc/sphinx@e3483e9

Change-Id: I337c1f756dde3ff6277b1e8d1ad1e3eff49a7e47
2019-10-16 21:22:29 +08:00
pengyuesheng 701604b832 Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I1f7b3e886be7e20cb8af754cf141a2e0cfc3561a
2019-09-24 10:10:40 +08:00
pengyuesheng fce8065ac9 Blacklist sphinx 2.1.0 (autodoc bug)
See https://github.com/sphinx-doc/sphinx/issues/6440 for upstream details

Change-Id: I6af9bdb5968c00e23e272b983839380f2f9f17cb
2019-08-02 14:36:01 +08:00
Andreas Jaeger ce0ea965cb Remove modindex
We do not build the modindex, so let's not link to it - and produce a
broken link.

also, remove demo boilerplate.

Change-Id: Ia91dac139702d0b45de711a86ea9b5fa6aaf4659
2019-07-26 16:12:12 +02:00
Corey Bryant fa1c5eb1a1 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: I74ae3e38f62cb4fd4dc57af39480c6c95e426878
Story: #2005924
Task: #34205
2019-06-24 09:14:59 -04:00
gujin d61b279ab0 Sync Sphinx requirement
Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.

Change-Id: I915850168b70b5e94defa478fa739a76795a75eb
Closes-Bug: #1831520
2019-06-04 10:07:13 +08:00
zhulingjie 6c9a8346b3 Replace git.openstack.org URLs with opendev.org URLs
Thorough replacement of git.openstack.org URLs with their opendev.org counterparts.

Change-Id: I2a3b0d80fac1af5862f61b79e4fc31eb6195dcd0
2019-04-23 06:37:17 +00:00
OpenDev Sysadmins 477ee6ddc8 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:28:24 +00:00
Zuul 60d39c4959 Merge "Update the bugs link to storyboard" 2018-12-31 08:26:23 +00:00
ZhijunWei a5435b4101 Update the bugs link to storyboard
Change-Id: I30882e84992b526a2aae014579fb0b786bf3ad79
2018-12-30 16:19:08 +00:00
melissaml dd8faedacf Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: I09a60468ec69aa0416fecdc65e7d1e3b1faa12b0
2018-12-04 17:43:34 +08:00
jacky06 ce20a5263d Correct the bugs link
Change-Id: Id52c02b1dc6075db67a268c05c16936dbee613cc
2018-11-25 21:59:10 -05:00
Doug Hellmann 9999a24da3 build universal wheels
By default setuptools produces a version-specific wheel file so
installation under other versions of Python require extra work at
install time. This change turns on "universal" wheel support, so that
the wheel file will be marked as supporting both Python 2 and 3.

Change-Id: Id16b70ae3b957a9a6e2cca46f4a730ec84b1cdf8
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-10-02 18:12:54 -04:00
zhang.lei 33a94d31fe Remove duplicated openstackdocstheme from test-requirements.txt
Change-Id: I28db0678d7247b3df9ba57b2d729a346f099f8e6
2018-09-18 01:31:02 +00:00
zhang.lei b1ee3cb8a4 Using storyboard to collect project bugs
This a supplement for https://review.openstack.org/#/c/574471

Depends-On: https://review.openstack.org/603130
Depends-On: https://review.openstack.org/603129
Change-Id: I220eb6826cf87fca80431ca23985b03bf3937110
2018-09-17 09:52:48 -04:00
Doug Hellmann 6f6bc57184 add python 3.6 unit test jobs
Change-Id: I0b3d587e1e4c8413a355a8a030db2ed58b15075a
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-08-14 13:19:27 -04:00
Doug Hellmann e9788f4f48 fix bug link in readme
This patch fixes the bug tracker link in the readme. It is set to
depend on a job definition change in project-config so we can use this
patch to test the new release jobs.

Change-Id: I1e0aeae7b0cbc44f4b5d2054fec91ea5552fda22
Depends-On: https://review.openstack.org/580740
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-07-09 13:51:00 -04:00
Doug Hellmann b1292a23f1 switch to PTI documentation jobs
Depends-On: https://review.openstack.org/580485
Change-Id: I27dcb4fbb58fc366e213dac7bad9bb56235568cc
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-07-09 13:50:58 -04:00
Doug Hellmann b30c8e7760 import zuul settings from project-config
Import the zuul settings to set the test jobs for this project from
project-config.

Change-Id: I117190a1611ad03a957770b987d3129a47c7d6f4
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-07-06 14:30:08 -04:00
huang.zhiping 1091518092 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: If16e79070324776e14279ec0ab12cbebb6a04a5b
2018-06-10 01:10:24 +08:00
melissaml 969a7f9937 Update the home-page url
Change-Id: I953a523b7dea6a4082ec7515dd7e668e3fbffe88
2018-02-27 16:02:29 +08:00
Doug Hellmann d9135fd2ea use sphinx-build for doc build in tox
Change-Id: I6a05cb8a9a505b0d446ae4b6f0b9e4004ac64ca8
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-02-15 15:20:32 -05:00