Commit Graph

3226 Commits

Author SHA1 Message Date
Zuul a2d031e759 Merge "Update the shebang to python3" 2023-11-02 08:36:22 +00:00
Zuul 3afc0f562a Merge "Update master for stable/2023.1" 2023-11-02 08:36:21 +00:00
zhouxinyong c271dd8b6c Fixes the several problems/errors caused by tox
Change-Id: I75d312ed6f1b9a71cc7cd2817c2dc60d3baa2971
2023-10-17 10:49:19 +08:00
Joel Capitao ee6de65850 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: I3f6fa3457b704bf57e3d7328f27e3440f57daa49
2023-07-26 11:46:38 +02:00
OpenStack Release Bot e8cbc50325 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: I109bcad38b84266055c472e68834a64870561f1d
2023-03-03 14:52:26 +00:00
Zuul a888d6be6b Merge "Use TOX_CONSTRAINTS_FILE" 2022-09-16 08:59:01 +00:00
OpenStack Release Bot 4805c28dd4 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: I6ae1c373329f5801105a503947eee42bbe651cf4
2022-09-13 12:35:10 +00:00
wangjiaqi07 fb3376cc31 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: Ia4edb289fe0cec122da3be58eb158faef174c1c1
2022-09-13 15:38:53 +08:00
anguoming 8f8e9fde6c Remove Python 2 support
Python 2 has been deprecated. This patch removes all
traces of six, unicode strings and Python 2 tweaks.

Change-Id: Ie6d62561fdaede0496052aa884021faa1927d5b8
2022-08-13 14:49:34 +08:00
hejunli 6b0409043f Remove py36 and py37
In zed cycle, OpenStack projects has dropped the py3.6 and py3.7
support, so we will remove them from this project.

And add py38 and py39 support in setup.cfg file.

- https://governance.openstack.org/tc/reference/runtimes/zed.html

Change-Id: I7805ba2ff67335d23917de8b04d6aeaeff83120f
2022-06-29 16:54:08 +08:00
zhangbailin 70677e452b Drop lower-constraints.txt and its 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 to 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: If1f5aea0975e05b00e57f03d0f61f6f0fa7796b0
2022-06-29 16:01:13 +08:00
OpenStack Release Bot c180810733 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: I6a76ab9dda34c39b1f59131d57df6d5f4227ba9f
2022-03-11 11:53:44 +00:00
OpenStack Release Bot 063c3ee8de 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: If252381c9a4638f6d3fba6fa926ba42a91ee67d9
2021-09-17 16:48:04 +00:00
OpenStack Release Bot fc27bc345e 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: I20953152dcb4444cc87cf7133d5bba273f17f66a
2021-03-22 11:53:39 +00:00
Zuul c3ba703098 Merge "Add Python3 wallaby unit tests" 2020-10-07 21:49:02 +00:00
Zuul 1e6400ce45 Merge "Update master for stable/victoria" 2020-10-07 20:31:50 +00:00
Luigi Toscano 5f49cb6689 Fix reqs (focal)
Apply the fixes already applied to other repositories
to address compatibility issues with the newer test
platform and for cleanup reasons.

Change-Id: I546b8a7021ccc172a7c6a711f63d2ddc73da5d42
2020-10-06 21:44:10 +02:00
OpenStack Release Bot 0fe4f3cfac 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: I26612b4616abbc3f1acd9e14e35d4aed611214f7
2020-09-23 13:22:42 +00:00
OpenStack Release Bot 43aef4d942 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: I66629891ce82556a16a6da189cf5fc14c7c2315f
Sem-Ver: feature
2020-09-23 13:22:40 +00:00
Hervé Beraud 8429c530fa 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: I3555380e048f966e4dd87a4f43fcc38c01c1359d
2020-06-09 12:09:38 +02:00
Andreas Jaeger 5bab216f98 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: If7524adfe3f585f78e6ce372f8ab6335faa2aa4f
2020-05-21 16:26:45 +02:00
Ghanshyam Mann b067864fb5 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: I080863ce61f437d5a2e6b5db10dafab68d444ba0
2020-05-12 20:59:27 -05:00
OpenStack Proposal Bot b7f03cf0a1 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ia6dda2694e9edafbfb63754bc60efbaa98cee42a
2020-04-26 08:25:51 +00:00
Zuul ae3fa08a0b Merge "Bump default tox env from py37 to py38" 2020-04-24 23:31:26 +00:00
Sean McGinnis 3bbea2f7ba
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: I8a80b920072f3acfc26c3d95efe0bb61ab936be8
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 10:26:01 -05:00
Sean McGinnis eda28c6326
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: I856b2e44186d1e57247a6c2f9796515a77c6f5ad
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 08:23:20 -05:00
OpenStack Release Bot 005188e320 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: I287a2599df468c199c7ad8570a8295bff6f65fc4
2020-04-23 19:17:40 +00:00
OpenStack Release Bot 927cb0cadc 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: I9512086aa96d4d067b44786e0c3d660b47ca47f1
Sem-Ver: feature
2020-04-23 19:17:37 +00:00
Zuul 78b3ab272a Merge "Ussuri contributor docs community goal" 2020-04-23 11:40:02 +00:00
Jeremy Freudberg 25ea8c3fe7 Ussuri contributor docs community goal
- Updated CONTRIBUTING.rst per goal guidelines
- Created doc/source/contributor/contributing.rst per goal guidelines

Change-Id: I95087fc365f7fd4e2f13adde63ad84178de4612a
2020-04-22 13:50:14 -04:00
Sean McGinnis 6fc7248d36
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: I9f6ec4261e9d1aa5921706ace8b5c4a66f0d7021
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-18 12:00:24 -05:00
Zuul 0c7340bf8b Merge "Cleanup py27 support" 2020-04-07 16:00:54 +00:00
Andreas Jaeger eb92c919a4 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Remove hacking and friends from lower-constraints, they are not needed
for installation.

Change-Id: Idde52770aa10a2811f6c28eb184d8b58e7ef552f
2020-04-06 16:17:15 +02:00
Andreas Jaeger ea7ea356d7 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: Ia74ff16e9d2c9a8bd86882673f13860ec4b39cdb
2020-04-05 10:31:26 +02:00
Luigi Toscano a55cb17cf4 fix: typo in tox minversion option
Change-Id: I684b41d6fa78c3611af7f8fc0e3da3f2ec9a8c8a
2020-01-28 13:16:17 +01:00
Luigi Toscano b8699a8099 [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: Ie5dfe4de57d86280493d6f4f062fb0e18ecd43c9
2020-01-26 21:58:29 +01:00
Luigi Toscano f2d10ed08c flake8: adapt to the newer rules
Probably coming from a newer pycodestyle.
Follow along with the earlier sahara changes, see also:
https://review.opendev.org/633912

In a nutshell: fix E305, ignore W504 and W605.

Change-Id: Ica6c9896e937f5a74944717627111271ac24f72a
2020-01-24 14:51:07 +01:00
pengyuesheng 389b98b5cc Switch to Ussuri jobs
Change-Id: I165d5b71dca7679cd2cff2e7776c17f4facb0b1a
2019-10-25 15:02:27 +08:00
Zuul 07a3f8d706 Merge "Fixes on CDH for python 3 compatibility" 2019-10-04 14:15:49 +00:00
OpenStack Proposal Bot 523f531f59 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I1a49acba9b26fc1968f02cfb8036cca4a791b840
2019-09-29 07:28:56 +00:00
OpenStack Release Bot 431eae18a5 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: I9b43edfb10b9e55d7d16a637c9519e9e2b47c64e
Sem-Ver: feature
2019-09-27 09:34:15 +00:00
Zuul 22619ffe5b Merge "Update the constraints url" 2019-09-27 08:01:40 +00:00
OpenStack Proposal Bot c9902c2b81 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I5db3e8ba72c5bc74872aa1494badc59611d9383c
2019-09-26 08:22:35 +00:00
OpenStack Proposal Bot 6626b9e5fb Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Idc87e6869a3ba1b2a852ef6dcda48ba2f886820f
2019-09-25 07:39:48 +00:00
pengyuesheng f49142af2b Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I5942baa2d9964df2066d83b14989e88182762876
2019-09-24 09:48:13 +08:00
Luigi Toscano bc4673f3b9 PDF documentation build
- 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: 35491
Change-Id: I353e33db27c8d676398973995960b98d3163aa0d
2019-09-06 16:14:15 +02:00
pengyuesheng 3634375600 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: I34024f0bcf3956bedc33b60f9762e046e53098f2
2019-09-06 16:14:07 +02:00
Telles Nobrega 9d443815fc Fixes on CDH for python 3 compatibility
Story: #2005914
Task: #34174
Change-Id: I5de5a2109f0b50adc209008738920fb11fd0fd76
2019-08-20 15:08:39 -03:00
Corey Bryant 56e15f929e Limit envlist to py37 for Python 3 Train goal
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train. The correct zuul jobs are
already in place so this change just limits default 'tox' calls to py37
to save developers time.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: I54ff9e8730cb163482b1bcc7983852fe64f61b95
Story: #2005924
Task: #34244
2019-07-18 13:56:38 +00:00
Luigi Toscano 4f956bbe90 Update sphinx from current requirements
Otherwise the requirements-check job fails.

Change-Id: I7a378c69f3ac35ec398400ff8be8421b619a8e6b
2019-06-25 11:46:35 +02:00