Commit Graph

914 Commits

Author SHA1 Message Date
OpenStack Release Bot 38b63d870f Update master for stable/2023.2
Add file to the reno documentation build to show release notes for
stable/2023.2.

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

Sem-Ver: feature
Change-Id: If69cf8d7a867d32e67b4d14428415857ef69d76b
2023-09-15 14:52:59 +00:00
Joel Capitao cf9a4b070c Remove obsolete whitelist_externals
allowlist_externals was added in [1] but the obsolete
whitelist_external was not removed.

[1] https://review.opendev.org/c/openstack/python-saharaclient/+/893329

Change-Id: I1c747fee8270db729227ca0e882b93ad1812c81f
2023-09-13 09:25:54 +02:00
Zuul 7d7b435a96 Merge "Updated links in documentation to be safe links" 2023-09-08 08:34:22 +00:00
zhouxinyong 555c7431e3 Adapt to tox4 This fixes the several problems/errors caused by tox 4.
Change-Id: Ie84630d73d006c3887e7c1b5a547da56352d7c28
2023-09-07 13:31:00 +08:00
guolimin.lc 739a4ba197 Updated links in documentation to be safe links
Change-Id: I4765ada5144e4e278a4873ca202c07631b16a3b3
2023-07-26 10:42:24 +08:00
Dr. Jens Harbott 693a0b6ae9 Merge "Fix deprecated zuul queue syntax" 2023-06-15 06:52:29 +00:00
Zuul c67f3c9a53 Merge "Update various links in the documentation" 2023-06-08 00:54:02 +00:00
zhouxinyong 131659aceb Update various links in the documentation
Change-Id: I187c74ce0b866bc632db355e1e82e9f917b04845
2023-06-08 08:45:26 +08:00
Zuul 490e351aae Merge "setup.cfg: Replace dashes with underscores" 2023-06-06 07:39:08 +00:00
Elod Illes 64f32c3fe4 Fix deprecated zuul queue syntax
Zuul deprecated (and now removed) declaring shared queues at a pipeline
level [1]. This patch fixes the syntax to make the gate work again for
python-saharaclient.

[1] https://lists.openstack.org/pipermail/openstack-discuss/2022-May/028603.html

Change-Id: I43b341018423a0702bb1ed1ba7e394c1ad0b146a
2023-02-17 20:24:44 +01:00
qiufossen d0c0eb588c scenario scenario-v2 tempest and tempest-v2 non-voting test
The reason as following:
Create zed branch for client and non-client libs
https://review.opendev.org/c/openstack/releases/+/855929

DNM: dummy change to test gate health
https: //review.opendev.org/c/openstack/python-saharaclient/+/855787/1
Change-Id: I1e803725855fdbb7107a1f1a85acfe345c1103a0
2022-09-07 14:13:54 +08:00
songwenping e455855bfd 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: I53f31d42d3c85f6195ddd4b3197766547958cda8
2022-07-15 02:33:18 +00:00
anguoming 884ed5038b Remove Python 2 support
Python 2 has been deprecated. This patch removes all
traces of six, unicode strings and Python 2 tweaks.

Change-Id: I74696d02558e0fa93ea1775057db13b4f72aed02
2022-07-07 10:46:16 +00:00
Zuul 7b2af8856f Merge "Bump oslo.* and pbr version to support >=py38" 2022-07-07 02:10:33 +00:00
Zuul b9786a71ee Merge "Remove usage of six" 2022-07-07 01:59:49 +00:00
songwenping 9ddf2f7108 Remove usage of six
Six package is not used anymore

Change-Id: Ie72645229f23692d6bf87e58dd8ef212dd91189c
2022-07-06 20:02:16 +08:00
Zuul 64ffcabb6b Merge "Update TOX_CONSTRAINTS_FILE" 2022-07-06 11:57:34 +00:00
anguoming 889950618f Bump oslo.* and pbr version to support >=py38
In zed cycle, OpenStack projects and oslo lib
has dropped the py3.6 and py3.7 support

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

I also decrepated oslo-log < 5.0.0, so we should bump oslo.log>=5.0.0.

Because of oslo.log>=5.0.0 depends on oslo.i18n>=3.20.0 as below, so we
also need to upgrade oslo.i18n.

The conflict is caused by:
    The user requested oslo.i18n>=3.15.3
    python-saharaclient 1.4.0 depends on oslo.i18n>=3.15.3
    castellan 0.16.0 depends on oslo.i18n>=3.15.3
    keystonemiddleware 4.17.0 depends on oslo.i18n!=3.15.2 and >=2.1.0
    oslo-config 6.8.0 depends on oslo.i18n>=3.15.3
    oslo-concurrency 3.26.0 depends on oslo.i18n>=3.15.3
    oslo-db 6.0.0 depends on oslo.i18n>=3.15.3
    oslo-log 5.0.0 depends on oslo.i18n>=3.20.0
    The user requested (constraint) oslo-i18n==3.15.3

The conflict is caused by:
    The user requested pbr!=2.1.0 and >=2.0.0
    bashate 0.5.1 depends on pbr>=1.6
    fixtures 3.0.0 depends on pbr>=0.11
    stestr 1.0.0 depends on pbr!=2.1.0 and >=2.0.0
    testresources 2.0.0 depends on pbr>=1.8
    testtools 2.4.0 depends on pbr>=0.11
    python-saharaclient 1.4.0 depends on pbr!=2.1.0 and >=2.0.0
    castellan 0.16.0 depends on pbr!=2.1.0 and >=2.0.0
    keystoneauth1 3.4.0 depends on pbr!=2.1.0 and >=2.0.0
    keystonemiddleware 4.17.0 depends on pbr!=2.1.0 and >=2.0.0
    oslo-concurrency 3.26.0 depends on pbr!=2.1.0 and >=2.0.0
    oslo-context 2.22.0 depends on pbr!=2.1.0 and >=2.0.0
    oslo-db 6.0.0 depends on pbr!=2.1.0 and >=2.0.0
    oslo-i18n 3.20.0 depends on pbr!=2.1.0 and >=2.0.0
    oslo-log 5.0.0 depends on pbr>=3.1.1
    The user requested (constraint) pbr==2.0.0

The conflict is caused by:
    The user requested oslo.serialization!=2.19.1 and >=2.18.0
    python-saharaclient 1.4.0 depends on oslo.serialization!=2.19.1 and >=2.18.0
    keystonemiddleware 4.17.0 depends on oslo.serialization!=2.19.1 and >=1.10.0
    oslo-log 5.0.0 depends on oslo.serialization>=2.25.0
    The user requested (constraint) oslo-serialization==2.18.0

Change-Id: Iebd0c795dcdd72dac1141cfe18d2dad5201147c1
2022-07-05 16:45:02 +08:00
Zuul ab12ce32a4 Merge "Dropping lower constraints testing and remove py36,py37 support" 2022-07-01 08:54:26 +00:00
songwenping 84555b6c2d 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: I60f1f739f25755cd344fe45e76d225712fedc40f
2022-07-01 02:50:01 +00:00
OpenStack Release Bot 87ff69043f 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: I46567b4f8c29710c42767fc96ac0176f5f8bc3b7
2022-03-03 10:51:01 +00:00
OpenStack Release Bot 2f01b878a9 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: Ifed0f0ac32b4d957e7f0f4a4a41014ea6ea8e815
2021-09-17 16:22:09 +00:00
OpenStack Release Bot 473ad0dd95 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: I5d670a37e27605737d1491d8ae0cf7e64c8851b7
2021-03-18 10:25:59 +00:00
wu.shiming fef5cd5683 Update TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated
-https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file
This allows to use lower-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

Change-Id: I467703ee4766f09760bb08092c11b663a5f4f639
2020-11-19 17:19:36 +08:00
Zuul 401e663f67 Merge "Add Python3 wallaby unit tests" 2020-09-16 14:35:55 +00:00
Zuul e102af826b Merge "Update master for stable/victoria" 2020-09-16 13:54:24 +00:00
wu.shiming c5b707d5b5 Remove install unnecessary packages
The docs  requirements migrated to doc/requirements.txt
we need not install things from requirements.txt.

Change-Id: I0749590a9d8b2183ed9c95178541ed85fb19996a
2020-09-15 09:47:27 +08:00
OpenStack Release Bot 0107bee097 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: Ibf246a0cf05e92144d021d3f2ff04280281e7225
2020-09-14 13:51:26 +00:00
OpenStack Release Bot f59e3c5b42 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: I2e83569e917947fb5b381924576ad85a43b792ae
Sem-Ver: feature
2020-09-14 13:51:25 +00:00
Ghanshyam Mann a9fee07108 [goal] Migrating testing to Ubuntu Focal
As per victoria cycle testing runtime and community goal,
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).

Bump lower constraints to make testing work for Focal.

Change-Id: I6354e7abe8eece9e1d9c9005ed90faefd53c65b2
Story: #2007865
Task: #40216
2020-09-08 15:19:05 +00:00
Zuul fef16eb931 Merge "Remove Babel requirement" 2020-07-01 16:04:26 +00:00
wu.chunyang 9f7323c50b Remove Babel requirement
Babel is not needed as requirement, remove it.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-April/014227.html

Change-Id: Ifd51020aabf265eada1f667713013a3a6176c659
2020-06-29 15:03:56 +08:00
Hervé Beraud fc92d66963 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: I414e2127b313328756c5b15a44b661ea3982a017
2020-06-09 11:59:47 +02:00
Andreas Jaeger c2eb453deb 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.

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.

Set openstackdocs_auto_name to use 'project' 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.

Depends-On: https://review.opendev.org/729744
Change-Id: I4c81bec463bb61a559ee8941545c16a08b7041f9
2020-05-20 21:52:50 +02:00
Ghanshyam Mann 7ac9d1b324 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: Ie2e12c6313924f79e7f985897565e0f1d3f03187
2020-05-12 21:01:23 -05:00
Zuul 55566ab643 Merge "Bump default tox env from py37 to py38" 2020-04-25 00:24:19 +00:00
Sean McGinnis 94fc477fd1
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: I0e1b6b4e5dcddfcba5b14c48493d65da4f083846
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 10:25:57 -05:00
Sean McGinnis 9db4890f34
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: I310c3b8ae925668a1a892892896d0b66a8603fc9
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 08:23:18 -05:00
Zuul 92239ce4e2 Merge "Ussuri contributor docs community goal" 2020-04-23 13:08:29 +00:00
Jeremy Freudberg caf07f433f Ussuri contributor docs community goal
- Updated CONTRIBUTING.rst per goal guidelines
- Created doc/source/contributor/contributing.rst per goal guidelines

Change-Id: I4a72ec5cec7e48aacc5ce080609fc89f063e7337
2020-04-22 14:00:21 -04:00
Sean McGinnis 5b6f800139
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: I96263b774551821745a2345ffb2df3bf2a2dcf05
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-18 11:59:13 -05:00
Andreas Jaeger 8c7735d7ac Remove pypy job
Pypy is not tested in OpenStack anymore, remove the job.

Change-Id: Iddd69443f93512b843babd880398dd2575c115e7
2020-04-17 10:13:23 +02:00
OpenStack Release Bot 0d678d9ad2 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: I8c39b94101ec0532f0a7983082c9c7ee9f89c1f0
2020-04-11 18:49:35 +00:00
OpenStack Release Bot 8f55a79500 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: Ib356624acdf10e24f42da957d2f8a7216cfbab3f
Sem-Ver: feature
2020-04-11 18:49:33 +00:00
Andreas Jaeger 830d4607c3 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: I95a49a2941790e0df1fde38f253ba2516959ce80
2020-04-07 14:51:08 +02:00
Andreas Jaeger cca4f4d0c8 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.

Note: The repo has been using an uncapped requirements, so was testing with
hacking 2.0 which disabled the old way of local testing integration.

Remove S367 and S368 since they are not working under python3
"NOTE(Kezar): This checks a good enough if we have only py2.7 supported.
 As soon as we'll get py3.x we need to drop it or rewrite. You can read more
 about it in dev-list archive, topic: "[hacking]proposed rules drop for 1.0"

Also, hacking now has H304 and H306 which test exactly the same.

Remove hacking and friends from lower-constraints, it's not needed
there.

Change-Id: If60682fb328359ef73dee8f2d89d51410a376677
2020-04-07 14:50:41 +02:00
Luigi Toscano 3cf5de75c1 Fix the "image register" command (OSC 5.2.0 regression)
python-openstackclient removed the usage of glanceclient between 5.1.0
and 5.2.0 (see: https://review.opendev.org/#/c/650374/).
As a consequence, the

   openstack dataprocessing image register ...

command is now broken.

This fix means a few requirement bumps to align to OSC 5.2.0,
even though saharaclient 3.0.0 is already released.

Story: 2007501
Task: 39317

Change-Id: I377e0646303aef4984cdd6e4b6587fca9241206b
2020-04-07 11:00:09 +02:00
Luigi Toscano 82ecc50fbe fix: typo in tox minversion option
Change-Id: I791bdb664d4438d446a7cd9d0c8fd98b3f13ebff
2020-01-28 13:13:43 +01:00
Luigi Toscano 62bfa6af46 [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

Also:
- bump the lower-constraints decorator requirements to a recent one
  to prevent failures;
- drop the obsolete jenkins tox target.

Change-Id: I5806dcb8f13e88a28c0b5e6de449efa9b95b6e73
2020-01-26 22:00:58 +01:00
kangyufei ca99e621fd Switch to Ussuri jobs
Change-Id: Iea45bfed3b7df01f3272600d4e213588d663aab1
2019-10-22 14:28:18 +08:00