Commit Graph

1291 Commits

Author SHA1 Message Date
zhurong 3187cb89c2 Fix gate
Change-Id: I753d8a85e56d35f38b4226ed8061edf06ec2b593
2023-09-11 11:56:02 +00:00
OpenStack Proposal Bot c7719de016 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I64e48d65ae37ad0a4ed7adf9c804415262006001
2023-03-07 02:45:30 +00:00
OpenStack Release Bot cc3f375cd8 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: Ieeb4aa86f194e73439d453db00af871785a0662f
2023-03-02 14:10:05 +00:00
Elod Illes 862c7bee70 Fix tox 4 compatibility
Change-Id: Iab73c1909110a6d6742c3ba5ed98f6cb98ec787d
2023-02-17 20:42:10 +01:00
OpenStack Release Bot 75bb63d00c 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: Idd0fd52b99de5175a93bf6c3a65e119f84ae0860
2022-09-14 09:17:42 +00:00
OpenStack Release Bot 5cbc2e668d 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: I9bea233da9968cae64bbf7cfabe492851ca3f2d7
2022-09-09 15:16:21 +00:00
Elod Illes fdbec7b173 Add Python3 zed unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for zed.

See also the PTI in governance [1].

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

Change-Id: I5c45013aad4402281493e320cc90c5fb91a45bef
2022-08-08 15:53:42 +02:00
OpenStack Proposal Bot 91ea416352 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ic736c6a7b5ceab8d3bcf242dd887fc0013134d41
2022-06-21 03:55:45 +00:00
OpenStack Release Bot eabfc58c1b 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: Ieee769d673f6e144e7f5167555bced10dc1c19d1
2022-03-03 10:51:13 +00:00
Zuul b18e8589f7 Merge "Remove unused scripts" 2022-01-18 06:30:10 +00:00
zhurong 80551fe8b5 Fix tempest job
Change-Id: Ie5e5ef0532646987a862c55ac06f2f76daf1e2a2
2022-01-18 00:51:44 +00:00
zhurong 5cd42aecd6 Remove unused scripts
Change-Id: I27ba6ae7ddb5ad97c1924e56a1f42b701b6ccd44
2022-01-17 09:26:45 +00:00
zhurong 48ec2c1fe2 Add Python3 yoga unit tests
Change-Id: Ife15679d6849f5c2d7e3b52ec7d758c08a3fad69
2021-10-18 01:30:57 +00:00
Zuul 385bba2634 Merge "Update master for stable/xena" 2021-10-14 11:18:36 +00:00
Stephen Finucane 3b44adc6e7 requirements: Uncap prettytable, remove l-c
Fix the requirements job by uncapping this dependency. The upper cap
will now be managed by global-requirements like everything else.

Since we're modifying the requirements, the requirements job are run and
we see that the lower-constraints job is failing. Remove this job and
related artefacts also.

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I09bdc40e34b219c6bdf880d2511585a921018477
2021-10-13 12:17:56 +01:00
OpenStack Release Bot 01e0fbfbf9 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: I76f7a9c99124ac5c3879d93b02b3f1f4900fb84d
2021-09-17 16:43:21 +00:00
Ghanshyam Mann c3dd963967 [community goal] Update contributor documentation
This patch updates/adds the contributor documentation to follow
the guidelines of the Ussuri cycle community goal[1].

[1] https://governance.openstack.org/tc/goals/selected/ussuri/project-ptl-and-contrib-docs.html

Story: #2007236
Task: #38539
Change-Id: Ic9638150b18710abe263e3bc90b620f11aab8c14
2021-05-31 20:35:38 +00:00
OpenStack Release Bot 1145c47661 Add Python3 xena unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for xena.

See also the PTI in governance [1].

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

Change-Id: I7256c203877b6a2c4abedb3cc4e6e28b8e9031c2
2021-03-19 18:07:03 +00:00
OpenStack Release Bot 04cc702d23 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: I032640060995e793ab5a623b133ab9fa7f31e955
2021-03-19 18:06:29 +00:00
Zuul 8a6848e402 Merge "Replace assertItemsEqual with assertCountEqual" 2020-09-16 14:57:54 +00:00
wu.shiming 99a1dee1e5 Remove install unnecessary packages
The docs  requirements migrated to doc/requirements.txt
we need not install things from requirements.txt.

Change-Id: I39ffe733f2768e7eaea3ba31eb2c68583dc7da8c
2020-09-15 17:36:37 +08:00
OpenStack Release Bot db70a6ec74 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: Id82b7d32eb34a98caa313f66d75e81471a6c5830
2020-09-10 09:28:48 +00:00
OpenStack Release Bot 8c49888fe1 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: I01f7e6f3acb9ebe6bee1f8565d9f7624216f35d2
Sem-Ver: feature
2020-09-10 09:28:46 +00:00
Luigi Toscano d3ab74e495 Native Zuul v3 version of the functional legacy job
Pretty straightforward conversion, and remove the old scripts
which are not needed anymore.

Also, even though OS_TENANT_NAME is still exported,
read OS_PROJECT_NAME as first choice.

Depends-On: https://review.opendev.org/746235
Change-Id: Ie8402e2d9c3297e3bbee6065c9977890c4d46589
2020-08-18 18:13:43 +02:00
Ghanshyam Mann 019f79ec2e [goal] Migrate testing to 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#1886298
Bump the lower constraints for required deps which added python3.8 support
in their later version.

Story: #2007865
Task: #40198

Closes-Bug: #1886298

[1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal>

Change-Id: If52778edf7ab5ade5794f12d9d167d6ad562b983
2020-08-05 01:41:11 +00:00
gugug 6c40175848 Replace assertItemsEqual with assertCountEqual
assertItemsEqual was removed from Python's unittest.TestCase in
Python 3.3 [1][2]. We have been able to use them since then, because
testtools required unittest2, which still included it. With testtools
removing Python 2.7 support [3][4], we will lose support for
assertItemsEqual, so we should switch to use assertCountEqual.

[1] - https://bugs.python.org/issue17866
[2] - https://hg.python.org/cpython/rev/d9921cb6e3cd
[3] - testing-cabal/testtools#286
[4] - testing-cabal/testtools#277

Change-Id: I6d5e373917bd4aea7da8f158755bea53e96d6678
2020-07-12 11:13:16 +08:00
Andreas Jaeger 8054a326d1 Small cleanups
- Remove Babel from requirements, it's not needed for running.
- remove unused file setup.sh
- Update to hacking 3.1.0; fix problems found.
- Remove hacking and friends from lower-constraints, they are not
  needed there at all.

Depends-On: https://review.opendev.org/736382
Change-Id: I8b2a8c06de0282f797fab51d90aeac1ca2eef9c4
2020-06-18 09:43:43 +02:00
Hervé Beraud acc71afab3 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: I754ae15755b41d8ae449904917b92aa02677bde9
2020-06-09 11:58:02 +02:00
Hervé Beraud 2f543950de 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: Ic9b94ceb733989b4676655cbc94eb20025908408
2020-06-02 20:50:11 +02:00
Andreas Jaeger fc9b08fc6e 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.

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.

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.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I4fe9ea8ee88dad673849cbb9e1a469ca12705740
2020-05-22 17:23:41 +00:00
Ghanshyam Mann 2be7ebacfc 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: I9adead178db749a857745e2aff5827f0bf04ab4c
2020-05-12 19:33:34 -05:00
zhurong 85abf25358 Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove obsolete sections from setup.cfg
- Remove babel.cfg, this is not needed here at all
- Update requirements, no need for python_version anymore
- Switch to using sphinx-build
- Use newer openstackdocstheme and Sphinx versions
- Remove install_command from tox.ini, the default is fine
- Use TOX_CONSTRAINTS_FILE, UPPER_CONSTRAINTS_FILE is obsolete

Change-Id: I57d447e034c088c83fdd5fb8854dbd9826a200a8
2020-05-11 11:06:58 +08:00
Zuul f55d5203ae Merge "Bump default tox env from py37 to py38" 2020-04-26 01:31:00 +00:00
Sean McGinnis 1b0d7a8fb9
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: Iad033e86072ac394e5371ff38432ed72cb97648a
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 10:25:56 -05:00
Sean McGinnis bec0ae84e5
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: I832c846cc50d094788973e8e7f05f226b435ac6f
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 08:23:17 -05:00
zhurong ccccd46b41 Remove Python 2.4 compat code
Change-Id: Iebc99b020c8e8b65a4121e8044a51aaba1737b2b
2020-04-20 19:56:22 -07:00
Sean McGinnis 8c1ca89062
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: I96f66e103313c5ba4eb9cc04ed1e813ab3fb0532
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-18 11:58:55 -05:00
Zuul 1477e400cb Merge "Remove six usage" 2020-04-17 10:15:02 +00:00
Zuul da7d3cfe3a Merge "Remove six usage muranoclient/v1" 2020-04-17 10:15:01 +00:00
Zuul 1971be3402 Merge "Remove six usage tests/functional" 2020-04-17 10:08:30 +00:00
Zuul 9a2bc53763 Merge "Remove six usage muranoclient/glance" 2020-04-17 10:08:29 +00:00
Zuul 0e90e48b04 Merge "Remove six usage muranoclient/osc" 2020-04-17 10:08:28 +00:00
Zuul 1c99ef99dc Merge "Remove six usage muranoclient/apiclient" 2020-04-17 10:08:27 +00:00
zhurong d6a9bd2370 Remove six usage tests/functional
Change-Id: Ie69ca8afd5058ac814f493161a778a6a3e36b53a
2020-04-17 08:13:18 +00:00
zhurong fe82041d9c Remove six usage muranoclient/v1
Depends-On: https://review.opendev.org/#/c/720636/
Depends-On: https://review.opendev.org/#/c/720631/
Depends-On: https://review.opendev.org/#/c/720632/
Depends-On: https://review.opendev.org/#/c/720638/
Depends-On: https://review.opendev.org/#/c/720639/
Change-Id: I2aa9e94279720b080d8235b510e42d202d7a0434
2020-04-17 00:08:29 -07:00
zhurong 13658a7b0c Remove six usage
Depends-On: https://review.opendev.org/#/c/720634/
Change-Id: Ic5ebbb6ca39292a8e0548030f01f964076fa882d
2020-04-16 23:07:08 -07:00
zhurong f541a29337 Remove six usage muranoclient/osc
Change-Id: Iea5eab31f38510f5e5fcfed34c46b854cbef3a8e
2020-04-16 22:54:41 -07:00
zhurong 75a0d1a393 Remove six usage muranoclient/glance
Change-Id: I8181996e52d1618a043c1875a809b9e8719e684b
2020-04-16 20:07:51 -07:00
zhurong ae37b0db70 Remove six usage muranoclient/apiclient
Change-Id: I992c890d3c679fde64bcffff170a1d3b8b1b124e
2020-04-16 19:52:18 -07:00
zhurong 8868671fd5 Remove six usage muranoclient/common
Change-Id: I7f27bc87c8ea098b70ab530d6857c927a571e930
2020-04-16 19:49:09 -07:00