Commit Graph

3113 Commits

Author SHA1 Message Date
Zuul 396518837e Merge "Update master for stable/2023.1" 2023-11-02 08:33:19 +00:00
Zuul ce765eab93 Merge "Update the shebang to python3" 2023-11-02 08:17:17 +00:00
wangzhiqiang05 29c0f5d95a fix gateway error
Change-Id: I1ad2786e637835667372fa864c089789fb070c0e
2023-10-26 11:30:59 +08:00
Joel Capitao b7fe8999c9 Update the shebang to python3
It's needed downstream when packaging. In RDO and Fedora,
we are hitting the issue "ERROR: ambiguous python shebang" during
the build.

Change-Id: I6fe4674a9163b63ae5461fe94253bcc42beb2707
2023-07-26 11:42:01 +02:00
OpenStack Release Bot 6ff537e1ef Update master for stable/2023.1
Add file to the reno documentation build to show release notes for
stable/2023.1.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2023.1.

Sem-Ver: feature
Change-Id: I5bf3530ee86f07529c0d99e9fa307e28ce33f839
2023-03-03 14:49:19 +00:00
Zuul f86e792d05 Merge "setup.cfg: Replace dashes with underscores" 2022-09-16 08:59:03 +00:00
OpenStack Release Bot 96b1c90e32 Switch to 2023.1 Python3 unit tests and generic template name
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope. Also,
updating the template name to generic one.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I8a0be1701c6fafceccd28ec5b55887c0d23afc36
2022-09-13 14:12:57 +00:00
OpenStack Release Bot ec67176e01 Update master for stable/zed
Add file to the reno documentation build to show release notes for
stable/zed.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/zed.

Sem-Ver: feature
Change-Id: Ic498873142a18f93192eddc6ef49519f691aa14f
2022-09-13 14:12:56 +00:00
liyou01 f95886abdf 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

Change-Id: If75533bfe26f2ba224ce49afcb64249e9d412458
2022-09-12 15:37:57 +08:00
anguoming e52bcb6626 Remove Python 2 support
Python 2 has been deprecated. This patch removes all
traces of six, unicode strings and Python 2 tweaks.

Change-Id: I44c7e766173220216fae7d2d94d407175ce0c064
2022-08-13 10:55:23 +08:00
hejunli 1c4c442525 Update python testing classifier
Remove py36 and py37,and add py39.

Change-Id: I8824d2b1cc108b1857dd3857efee0d3e58f5cf70
2022-07-01 14:02:34 +00:00
Zuul 48e70793db Merge "Drop lower-constraints.txt and it's testing" 2022-07-01 00:54:02 +00:00
hejunli 139213dbfd Drop lower-constraints.txt and it's testing
As discussed in TC PTG[1] and TC resolution[2], dropping
the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.

And switch zuul task openstack-python3-zed-jobs

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Change-Id: I6f467a6bb175e27c011a57fec15a37b7c8dabdd0
2022-06-30 00:41:51 +00:00
OpenStack Release Bot 14a981edcf Update master for stable/yoga
Add file to the reno documentation build to show release notes for
stable/yoga.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/yoga.

Sem-Ver: feature
Change-Id: Id7c273e27d6d986442364dc7ba0730655c065115
2022-03-11 11:54:44 +00:00
OpenStack Release Bot 460589110a Update master for stable/xena
Add file to the reno documentation build to show release notes for
stable/xena.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/xena.

Sem-Ver: feature
Change-Id: Ibd1a1d4d45b9eea6a22ae1ea798208fe4c4172e9
2021-09-17 16:10:43 +00:00
OpenStack Release Bot 8034258ef0 Update master for stable/wallaby
Add file to the reno documentation build to show release notes for
stable/wallaby.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/wallaby.

Sem-Ver: feature
Change-Id: I29d66b5f1d4021b4036eea3c48356f2176cf56d5
2021-03-22 11:59:36 +00:00
Zuul a02327853d Merge "Add Python3 wallaby unit tests" 2020-10-07 21:48:59 +00:00
Zuul 3e0a081e6b Merge "Update master for stable/victoria" 2020-10-07 20:32:14 +00:00
Zuul a34af0625f Merge "Fix reqs (focal), remove linters from l-r" 2020-10-07 16:01:34 +00:00
Luigi Toscano e6ca58e5ec Fix reqs (focal), remove linters from l-r
Apply the fixes already applied to other repositories
to address compatibility issues with the newer test
platform and for cleanup reasons.

Change-Id: I89a1323ff5dae167455517e9d0a86478730a5676
2020-10-06 21:40:18 +02:00
OpenStack Release Bot cd619c976e Add Python3 wallaby unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for wallaby.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: Id4fea921903d9fdcb0ad3ec74dc271ef01e9b30b
2020-09-23 13:17:23 +00:00
OpenStack Release Bot 573eb9b564 Update master for stable/victoria
Add file to the reno documentation build to show release notes for
stable/victoria.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/victoria.

Change-Id: I6bd87c451b38fff57aeb62ab4c08a548675fd288
Sem-Ver: feature
2020-09-23 13:17:21 +00:00
Zuul add152d6e7 Merge "Stop to use the __future__ module." 2020-07-09 09:59:23 +00:00
Hervé Beraud 9a421075d4 drop mock from lower-constraints
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we don't need it
in lower-constraints.

These changes will help us to drop `mock` from openstack/requirements

Change-Id: I9ad69e1d322414b962830806a9c4caedade36325
2020-06-09 12:09:20 +02:00
Hervé Beraud af11145cef 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: I54cdcfd3373c2c9d917bd71af74219d4c0f001e4
2020-06-02 20:57:29 +02:00
Andreas Jaeger 00c40f3989 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.

Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.

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: Iacc828c8b1f6301464843c96a4772a7977dd792a
2020-05-21 16:25:13 +02:00
Ghanshyam Mann ef3769a590 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: Ib23483f6263d268fa127910ad4e302afb7eb35eb
2020-05-12 20:59:22 -05:00
OpenStack Proposal Bot 4db6b986e4 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ib52035e741ad8ed7bd1bfc30b6d8b061d7047da0
2020-05-03 08:32:17 +00:00
OpenStack Proposal Bot 70730faca6 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I6b8e589202a935f3a520a84b0d48a17637ca7032
2020-04-26 08:24:54 +00:00
Zuul 1ad11944d8 Merge "Bump default tox env from py37 to py38" 2020-04-24 23:31:25 +00:00
Sean McGinnis 19ddf634f1
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: Ie702b9272ef963bbeeae7c02ffa0a19fc28a0e4e
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 10:26:00 -05:00
Sean McGinnis 9ae8ecb296
Add py38 package metadata
Now that we are running the Victoria tests that include a
voting py38, we can now add the Python 3.8 metadata to the
package information to reflect that support.

Change-Id: I7be66ec5e006edf7814b3b2b8c0a9aa5bd270f3d
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 08:23:20 -05:00
OpenStack Release Bot b8fbfd54ef Add Python3 victoria unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for victoria.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I77d32226aef0f8ba25d640a92071b33a72359b6c
2020-04-23 19:03:16 +00:00
OpenStack Release Bot 59807487ab Update master for stable/ussuri
Add file to the reno documentation build to show release notes for
stable/ussuri.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/ussuri.

Change-Id: I323348f0a4fc2e571aa54803f6ae8f4c17df8205
Sem-Ver: feature
2020-04-23 19:03:12 +00:00
Zuul 860469398f Merge "Ussuri contributor docs community goal" 2020-04-23 11:34:31 +00:00
Jeremy Freudberg fe4728d0ac Ussuri contributor docs community goal
- Updated CONTRIBUTING.rst per goal guidelines
- Created doc/source/contributor/contributing.rst per goal guidelines

Change-Id: I8b0a19d70e84a75a3ed165505d012a7291f80148
2020-04-22 13:50:04 -04:00
Sean McGinnis 2258b777f6
Use unittest.mock instead of third party mock
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: I0bb826280b27bd71a77faa8b6475f2643801205b
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-18 12:00:19 -05:00
Zuul e4eb2799c6 Merge "Cleanup py27 support" 2020-04-07 16:00:53 +00:00
Andreas Jaeger cb7feeb3da 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: I35fe1bc10d5f722dda8ecb4627d53f19751a79fc
2020-04-05 10:30:25 +02:00
Andreas Jaeger f0618c693e Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Update local hacking checks for new flake8.

Change-Id: I655a128f1fe2342f1f4ab0730d22cdf13830715a
2020-03-30 18:07:47 +02:00
Luigi Toscano bb68848fab [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

sahara plugins do works with python 3 and the sahara core
does not support python 2.7 anymore anyway.

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: I5806dcb8f13e88a28c0b5e6de449efa9b95b6e73
2020-01-26 21:58:29 +01:00
pengyuesheng 6df263b4af Switch to Ussuri jobs
Change-Id: I5cfeaeb9a77b51df60da5bdf228f80e3af8c7e8a
2019-10-25 15:00:40 +08:00
OpenStack Proposal Bot 29496666e7 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ib1c6e640867039a26ade9ab20aefa9a9056ac85e
2019-10-09 06:43:31 +00:00
OpenStack Proposal Bot e745a11621 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ifd2907ffc33df3e9d4067e587087bc20290248c7
2019-09-29 06:08:56 +00:00
OpenStack Release Bot 4516a4af77 Update master for stable/train
Add file to the reno documentation build to show release notes for
stable/train.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/train.

Change-Id: I28809d55438913aa8b164f2e9731707820659615
Sem-Ver: feature
2019-09-27 09:36:33 +00:00
Zuul 74a3291c61 Merge "Update the constraints url" 2019-09-27 08:01:40 +00:00
OpenStack Proposal Bot ed48a8a38f Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I0c9436e51c131302b7d50d894ab36269cbf86790
2019-09-26 06:57:54 +00:00
OpenStack Proposal Bot b3a12b4716 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Id5395d1d7eb38d37dd24ce7c6447c51d52b0f4d5
2019-09-25 06:09:35 +00:00
pengyuesheng 18dd976a95 Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I039e93478591e07fa13e9d98143c935463ce9a4e
2019-09-25 11:38:58 +08:00
Luigi Toscano 43c9473b19 Doc updates: bump theme to 1.20.0, add PDF build
- bump the openstackdocstheme requirement to 1.20.0, the minimum
  recommended version nowadays, and clean the configuration
  by removing the options now provided by the theme;
- add the pdf-docs tox environment according the established guidelines;
- remove a useless extra title (for both builders);
- docs tox environment: clean up only the generated html, not the entire
  build directory;
- disable the too smart smartquotes option for the latex builder;
- improve the title of the latex document.

Story: 2006117
Task: 35490
Change-Id: I353e33db27c8d676398973995960b98d3163aa0d
2019-09-06 16:34:30 +02:00