Commit Graph

3164 Commits

Author SHA1 Message Date
zhouxinyong f187fff27e Fixes the several problems/errors caused by tox
Change-Id: Ib72fdef4a4661a537d3c8a35b71707ef23d1c225
2023-10-17 11:20:44 +08:00
anguoming d93365f151 Dropping lower constraints testing and remove py36,py37 support
We facing errors related to the new pip resolver, this
topic was discussed on the ML and QA team proposed to
to test lower-constraints [1].

I propose to drop this test because the complexity and recurring pain needed
to maintain that now exceeds the benefits provided by this mechanismes.

[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-December/019390.html

Change-Id: Ie381bf7b8f4383072751b18d8cfa418e49409458
2022-08-13 14:38:25 +08:00
OpenStack Release Bot 6cd493d420 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: Ief1a37844f8b367e39cf3d1dc4e1c1df0bdc948b
2022-03-11 11:54:37 +00:00
OpenStack Release Bot 03e4216250 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: I9d6ab8bec734b03dab371dbeb7f0600936c08ff6
2021-09-17 16:48:02 +00:00
OpenStack Release Bot 456b7301f9 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: I501c91e43573c6d0cd1f037f596538936f4cc7a3
2021-03-22 12:15:10 +00:00
OpenStack Proposal Bot 07e627e3e8 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ib4d052955f33bbff3802c6002116d8a7f5b9ab6e
2020-11-04 09:12:48 +00:00
Zuul 2390fb9036 Merge "Add Python3 wallaby unit tests" 2020-10-07 21:49:10 +00:00
Zuul 8a7b5c4f53 Merge "Update master for stable/victoria" 2020-10-07 20:31:39 +00:00
Luigi Toscano ce813c68ca 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: I33eb0c28d0e9c18321eff09ea4b57f9cc371c319
2020-10-06 21:49:59 +02:00
OpenStack Release Bot a777df7e81 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: Iecd05a2de7a599f494b9efcf03cf12f848ad1d63
2020-09-23 13:17:44 +00:00
OpenStack Release Bot 94442503f3 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: Ia68eae7c670d8fb09ab1aaf1013d44d900b8edce
Sem-Ver: feature
2020-09-23 13:17:41 +00:00
Hervé Beraud 3e3f94e6c9 Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Change-Id: I4e885ce16080d302552217280b88b9dee3839555
2020-06-11 12:21:02 +02:00
Andreas Jaeger 397aee4ee2 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: I28e24e2dcdaad32d938464b93486f2e19fb3fbfb
2020-05-21 16:45:28 +02:00
Ghanshyam Mann f1d4d2bd3d 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: Ib4284ad790f61db3f4ac367bad02c6c638960a31
2020-05-12 20:56:31 -05:00
OpenStack Proposal Bot 38a7693b08 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ib9cadb106505d2b4ae6da3331a0967cd08616df5
2020-04-26 08:34:35 +00:00
Zuul b415391573 Merge "Bump default tox env from py37 to py38" 2020-04-24 23:38:06 +00:00
Sean McGinnis b36fa3fcd3
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: I4c4c6b3bf20500623035658aa351886f1dad9de5
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 10:26:02 -05:00
Sean McGinnis 5b487abb69
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: If03f406d15e47d3eec9929e551909cb51b49b1a7
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 08:23:21 -05:00
OpenStack Release Bot b12318977c 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: I37b507de5006230a5b462346550cfb6f5b009e5c
2020-04-23 19:19:40 +00:00
OpenStack Release Bot 1a10bf4849 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: I4f3451752cc83682a62e58d0ea477b63606854cb
Sem-Ver: feature
2020-04-23 19:19:38 +00:00
Jeremy Freudberg ec604cbf32 Ussuri contributor docs community goal
- Updated CONTRIBUTING.rst per goal guidelines
- Created doc/source/contributor/contributing.rst per goal guidelines

Change-Id: I7b8f6bd655b607e403748481b76b1adbfb6e26af
2020-04-22 13:50:22 -04:00
Zuul 0b35711439 Merge "Cleanup py27 support" 2020-04-07 16:00:58 +00:00
Andreas Jaeger f205ff1cd1 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: I45df1dd05d88a5b97e89c0bc07cad6ad93422efe
2020-04-05 10:34:47 +02:00
Andreas Jaeger 697382ddc2 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: Ib3907677d373ba9a92f9efc807af483c33347c9f
2020-03-30 18:12:41 +02:00
Luigi Toscano 740e4a5456 fix: typo in tox minversion option
Change-Id: I79ba5875a9f121a4e8365f6ac1016e0af522d5f1
2020-01-28 13:17:48 +01:00
Luigi Toscano 513aaff688 [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: Ie0208c416771944b1b6b98c23c825a8892fac7a4
2020-01-26 21:58:32 +01:00
pengyuesheng d84c60d3fd Switch to Ussuri jobs
Change-Id: I317ec040153b89ffd17a66bba9ac390f3bff4be6
2019-10-25 15:08:23 +08:00
OpenStack Proposal Bot 8e61e7da95 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ie31b564993e3cea6ee7bfcde96fbef0862af2985
2019-10-09 08:56:36 +00:00
OpenStack Proposal Bot 9aeb314bb5 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I520d46d4e48080824a01f978b61a417ee5be5a57
2019-09-28 09:05:06 +00:00
OpenStack Release Bot 0987110eb2 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: I6f475c544c02f8309f4754a87766a48ef2358405
Sem-Ver: feature
2019-09-27 09:38:40 +00:00
Zuul a29ff6890f Merge "Fix string" 2019-09-27 08:01:02 +00:00
Zuul fe42716429 Merge "Update the constraints url" 2019-09-27 07:59:44 +00:00
OpenStack Proposal Bot 0790c5bd04 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I855526424c485fa7e92719ce684f3006e0966034
2019-09-25 09:43:09 +00:00
Andreas Jaeger 568be3035f Fix string
This string shows up as
"Number of zookeeper nodesshould be in odd.", add missing space and fix
grammar.

Change-Id: I6d970939734bdcae41b63db9eddd8c174dc7db3c
2019-09-25 08:16:59 +02:00
pengyuesheng 8589ddf1eb Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I9accc79526cdcb858155b66f2c2cc3610723a29d
2019-09-25 11:42:18 +08:00
Luigi Toscano ac675141f0 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: 35495
Change-Id: I353e33db27c8d676398973995960b98d3163aa0d
2019-09-06 16:52:56 +02:00
OpenStack Proposal Bot 7d9be6f485 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I22afd66ee1df11b87a4d09c27f0c997708eb1a63
2019-08-03 07:32:40 +00:00
Corey Bryant 8a8520bba5 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: I542f5e02eaa6cff24a7cfa0f8a9be5af7eae5daa
Story: #2005924
Task: #34244
2019-07-18 13:55:49 +00:00
Luigi Toscano 3c73896af8 Update sphinx from current requirements
Otherwise the requirements-check job fails.

Change-Id: I7a378c69f3ac35ec398400ff8be8421b619a8e6b
2019-06-25 11:46:35 +02:00
ZhongShengping d6b6947c60 Update Python 3 test runtimes for Train
This goal is to implement the process set out in the 2018-10-24 Python
Update Process TC resolution[1], for the Train cycle to ensure unit
testing is in place for all of the Tested Runtimes for Train[2].
In practice, this generally means adding unit tests for Python 3.7 and dropping
unit tests for Python 3.5. Using the Zuul template for Train will ensure that
all projects that support Python3 will be tested against the agreed runtime
versions, and make it easier to update them in future.

[1]https://governance.openstack.org/tc/resolutions/20181024-python-update-process.html
[2]https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: Ib2d10c734e99066c8d5364e25df6cdd8641f6760
Depends-On: https://review.opendev.org/#/c/641878/
2019-05-09 17:34:52 +08:00
Luigi Toscano cd9dec5d93 Replace git.openstack.org URLs with opendev.org URLs
Thorough replacement of git.openstack.org URLs with their opendev.org
counterparts.

Change-Id: Iea1747d814a5011c041ac35677680be3079688d0
2019-04-20 13:52:01 +02:00
OpenDev Sysadmins 686ae55ae5 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:41:53 +00:00
ZhongShengping 47a9338be5 Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: I7d8b22d8a6220f176cb8812f9ae37f64998d56dc
2019-04-15 09:13:28 +08:00
OpenStack Release Bot f27e464339 Update master for stable/stein
Add file to the reno documentation build to show release notes for
stable/stein.

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

Change-Id: I8b03a63dd3776cee45b5787d7aa68b2b193f375b
Sem-Ver: feature
2019-03-20 04:49:45 +00:00
Luigi Toscano 62ebd23a5f 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

Story: #2004073
Task: #27450
Change-Id: Ib79d3d2bfe52ae0112fd326b0dff07a56ee2bde7
2019-02-28 17:48:07 +01:00
Luigi Toscano a24c7744ad Reduce the dependencies, add more common Zuul jobs
The requirements files have been mostly copied from sahara.git,
but most of the dependencies are not needed.

Refresh the content of lower-constraints.txt and ensure
that the lower-constraints tox environment considers also
the doc dependencies.

Explicitly depend on the pre-release of Sahara for Stein.

Add few more jobs to avoid breakages, namely:
- add check-requirements and openstack-lower-constraints-jobs;
- replace tempest-plugin-jobs with openstack-python-jobs,
  openstack-python35-jobs and openstack-python36-jobs
  now that it is possible to depend on sahara.

Change-Id: I370490435d40a4a53e70d32a7a08e551a2c1ad54
2019-02-05 19:58:51 +01:00
ZhongShengping 7a20d8a12a Update mailinglist from dev to discuss
openstack-dev was decomissioned this night in https://review.openstack.org/621258
Update openstack-dev to openstack-discuss

Change-Id: Id3fb3340174f424d2e614bf76fd853a4ba24fa8e
2019-01-23 15:28:42 +08:00
Telles Nobrega 47fc69ba2c Migrate away from oslo_i18n.enable_lazy()
The method is known to be problematic, and it is going to be
deprecated:
http://lists.openstack.org/pipermail/openstack-operators/2018-November/016139.html

Moreover, its usage in Sahara produces some nasty side-effects
when Python 3.x is used. The provisioning of the clusters ends
abruptly when sahara-engine tries to update the status in the
database, with a failure inside oslo_i18n.

Change-Id: I19b5b25d1afa8daaad372b7a89b1c2c7f01785a0
2019-01-17 11:12:50 -03:00
Luigi Toscano a3afcbfa29 Fix translations: add the babel.cfg file
Change-Id: I01dae378f386897cd25b70513f458e2a7807988a
2019-01-15 15:28:35 +01:00
Luigi Toscano d6c0df6c6c Post-import fixes: name, license, doc, translations
- fix the name of the module in setup.cfg, according the correct
  pattern (otherwise the name of the directory is not correct);
- add LICENSE file, required by (at least some) distributions;
- setup the translations;
- fix the name of the manpage, use the name of the module;
- add the classifier for Python 3.6.

Change-Id: I11421603a6f097cbebe0347ead869bab9c26c335
2019-01-14 23:43:00 +01:00