Commit Graph

611 Commits

Author SHA1 Message Date
Zuul a77699c1ef Merge "Update python classifier in setup.cfg" 2024-01-30 21:09:29 +00:00
Zuul da08470122 Merge "Bump hacking" 2024-01-29 19:32:34 +00:00
Takashi Kajinami 11f5b251de Bump hacking
hacking 3.0.x is too old.

Change-Id: I0ee959e9bf74f95e76ac5d1a58a44d21b7182b63
2024-01-28 17:01:32 +09:00
Zuul 2220d88867 Merge "Remove six" 2024-01-28 07:27:16 +00:00
Hervé Beraud c40f0cc32b 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: I95e8d9564cda2e6a06a3f40b0de6991acb07dd4c
2024-01-27 00:26:23 +09:00
Takashi Kajinami e0fe706ff2 Remove six
Because this library no longer supports Python 2, usage if six is not
needed.

Change-Id: Ib13170ad442dd486c939178f66af66c6f6f7288b
2024-01-17 18:00:03 +09:00
Takashi Kajinami 4eaaa5791b Remove untested lower-constraints.txt
The lower constraints job was removed by [1] and the file has been
unused since then.

[1] d536da42e5

Change-Id: I69def15dc1bad6c73ebe2d2c2631c745f78b7bc1
2024-01-17 18:00:03 +09:00
Ghanshyam Mann 16a6856d12 Update python classifier in setup.cfg
As per the current release tested runtime, we test
till python 3.11 so updating the same in python
classifier in setup.cfg

Change-Id: Iabd43ce3437384398c86d737c04512ebf5a9fb72
2024-01-03 21:24:33 -08:00
Ghanshyam Mann d78bf91ebc Fix tox4 error
tox.ini started failing with Tox4 which had some
incompatible changes. One of them is changing
whitelist to allowlist. Other failure is due to
the skipsdist = True.

Fixing tox.ini for tox4 changes.

Change-Id: I113bb6dd90efe0f9b272a76939947bd913fe707f
2023-01-24 00:11:55 -06:00
Takashi Kajinami d536da42e5 Update python testing as per zed cycle testing runtime
In Zed cycle, we have dropped the python 3.6/3.7[1] testing
and its support. Add release notes and update the python
classifier for the same.

[1] https://governance.openstack.org/tc/reference/runtimes/zed.html

This also removes broken lower-constraints job.

Change-Id: I5c9f3c031d74e0b1db5b49c0634139f9b6f49b5e
2022-09-05 17:58:33 +09:00
Zuul e388947aae Merge "Native Zuulv3 and fixes for python-zaqarclient-functional" 2020-09-14 01:41:27 +00:00
Luigi Toscano f2e850019b Native Zuulv3 and fixes for python-zaqarclient-functional
This change converts the existing legacy job into a native one.

It also re-enables the execution of functional tests, which are
otherwise not executed. It seems the initial idea of this job
was to run them, but this part has been probably lost over time.
This require a new 'functional' tox environment which focuses
on the functional tests.

Without the functional tests, this job is just a
simple devstack deployment job which tests the installability
of zaqarclient, but without really going through its code.

Unfortunately, as they haven't been executed for a while,
only a minority of the functional tests work. Only a subset
of them has been then enabled for now.

Change-Id: I6f33ca4b2da44cdaf4c85d30a3d520b0fdddce85
2020-09-08 22:09:07 +02:00
wanghao 8f0b9f5b07 Adding the doc of message in CLI
The doc of message is missing in zaqarclient.
So this patch will add it and also remove the unused docs for
other resources.

Change-Id: I55c745a81226487292220edfb629ca4f7dfd95d7
Closes-Bug: #1893145
Signed-off-by: wanghao <sxmatch1986@gmail.com>
2020-08-27 08:51:23 +08:00
ZijianGuo 27a628f03b Fix the error of parameter passing
Change-Id: Ia32c2262d4d871c31b141c23e8f49bade7720a8a
Signed-off-by: ZijianGuo <guozijn@gmail.com>
2020-07-08 17:09:40 +08:00
Andreas Jaeger db7f5cd9fb 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: Iafd5fb0f99a2b68c6f4a3118bf7d7c3a8881465f
2020-05-22 17:22:46 +00:00
Zuul 708b684e26 Merge "Update hacking for Python3" 2020-05-06 02:23:15 +00:00
Zuul 84e98ea1fe Merge "Cleanup py27 support" 2020-05-06 02:23:14 +00:00
Zuul 3627b4ff7f Merge "Update master for stable/ussuri" 2020-05-06 02:23:13 +00:00
Andreas Jaeger d399c7dbe1 Cleanup py27 support
This repo is now testing only with Python 3, so let's 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
- Update classifiers
- Use newer openstackdocstheme and Sphinx versions
- Cleanup */source/conf.py to remove now obsolete content.
- Remove install_command from tox.ini, the default is fine

Change-Id: I623b1e0bfc2ec8cd9ce017556101cdeb06a1bb4c
2020-04-28 07:50:10 +02:00
Andreas Jaeger d7c3cb9799 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Change-Id: I3062215fcfc2e448e0f29402104496f80945aeee
2020-04-28 07:45:21 +02:00
Ghanshyam Mann 93811d1ab1 Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

python-zaqarclient is ready with python 3 and ok to drop the
python 2.7 support.

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://review.opendev.org/#/c/691178/

Change-Id: I7df21753bccf435b81b5f42a63845d67fe209a55
2020-04-28 10:44:19 +08:00
OpenStack Release Bot d5c88fcda1 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: Iebabdc2df65a235be65c443be8cfbb3a4bc28eb0
Sem-Ver: feature
2020-04-11 18:31:12 +00:00
wanghao 4abbe7b451 Fix the count error in zaqarclient
now count number didn't show in the result. Fix this bug.

Change-Id: I87788bf4b992e36119e8432d76ccaf66328cce42
2020-02-24 18:07:35 +08:00
wanghao 6e9a5b59fe Support query queues with count
Zaqar will support query queues with '--with_count' to
return the amount of the queues. This will help users to
quickly get the exact total number of queues which they own.

Change-Id: Iced54e7d270e389a23db2a19394025710565923d
Implements: blueprint query-queues-with-count
Signed-off-by: wanghao <sxmatch1986@gmail.com>
2020-02-12 10:08:01 +08:00
Zuul 2cc0d00205 Merge "Update master for stable/stein" 2019-09-26 07:38:30 +00:00
Zuul 9038bf6ba9 Merge "Add Python 3 Train unit tests" 2019-08-29 10:29:56 +00:00
Tony Breeds 6d3fe69022 Uncap jsonschema
We have jsonschema capped at a fairly old version. Other than some
specific releases, it looks like keeping it below 3.0 was added in
I943fd68b9fab3bce1764305a5058df5339470757 without really any explanation
why.

In order to update to a 3.x release we need to:
1. Remove the cap from global-requirements.txt (see Depends-On), leaving
   upper-constraints.txt at a 2.x release
2. Remove the cap from all consumers (this change)
3. Release a new version of consumers that are published to pypi
4. Update upper-constraints.txt with those new releases
5. Update jsonschema in upper-constraints.txt to a 3.X release
   (See: https://review.openstack.org/649789)
6. Test consumers with the change from 5.
7. [Optional] fix issues in consumers that arise from 6.
8. Merge the change from 5.

Change-Id: I193b71b0ee6fe1abffa0d6aa30ddb1412daf6da0
Co-Authored-by: Sean McGinnis <sean.mcginnis@gmail.com>
Depends-On: https://review.openstack.org/649669
2019-08-26 11:50:52 +00:00
Corey Bryant 374f3ad959 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

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

Change-Id: I2628f4502fec5031d5439ad1eed1b51b920f105f
Story: #2005924
Task: #34258
2019-08-26 11:50:18 +00:00
gecong1973 4504a6f97f Remove pool group totally in zaqarclient
The path remove pool group totally in client
Implements: bp remove-pool-group-totally

Co-Authored-By: wanghao <sxmatch1986@gmail.com>

Change-Id: I0604ad8c55127027aa238a2e8388bb046a93e8a9
2019-08-21 14:26:14 +02:00
OpenDev Sysadmins daf69fc602 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:37:01 +00:00
Ian Wienand b9a845bff9 Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: I7b5e646dd233b246116f76582621003a7ab7e995
2019-03-24 20:35:58 +00:00
OpenStack Release Bot 0c5362e62f 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: I8da15b57778689ef36a22ce95c8f9ea7f257b19b
Sem-Ver: feature
2019-03-18 14:56:56 +00:00
yfzhao 5bd769b8ed 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: I20c84563b0a61fbc2c465cb52bdffc2f9031e3a8
Closes-Bug: #1808946
2018-12-18 17:06:09 +08:00
Thomas Herve 13e90a0ab5 Properly pass the CA to requests
We store the CA in request.cert, but it's not compatible with a cert. To
pass the CA to requests, we need to set the verify argument.

Change-Id: Id0f39e3253b1486db8ae2da3d7dc6c0fdb41062a
2018-10-04 15:00:22 +02:00
Zuul 9bedf4d26f Merge "Import zaqarclient-dsvm-functional job" 2018-09-24 18:58:34 +00:00
Zuul 4e8264e6d2 Merge "Remove PyPI downloads" 2018-09-18 03:48:03 +00:00
Andreas Jaeger 72cda78cdf Import zaqarclient-dsvm-functional job
Import the job from openstack-zuul-jobs and rename it according to
naming rules.

Add some cleanups:
* Sort list of templates alphabetically
* Use lower-constraints template instead of jobs

Change-Id: Ie1f8ee875e19652799944801e8ed292faeb8da8f
2018-09-17 21:28:06 +02:00
Zuul 2fac7ae9b1 Merge "add python 3.6 unit test job" 2018-09-13 08:25:51 +00:00
Zuul 8104fca7b2 Merge "switch documentation job to new PTI" 2018-09-13 08:25:49 +00:00
Zuul cf22ce1511 Merge "import zuul job settings from project-config" 2018-09-13 06:58:36 +00:00
Zuul 789dc41cc9 Merge "Comply with Python PTI" 2018-09-12 07:25:42 +00:00
Chen ddff8f4f59 Remove PyPI downloads
According to official site,
https://packaging.python.org/guides/analyzing-pypi-package-downloads/
PyPI package download statistics is no longer maintained and thus
should be removed.

Change-Id: I24f1870470de4a96dbbef4775b2744d786cef958
2018-09-12 06:53:14 +00:00
98k af13fcebdb add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: Ic179e154c1b9eca46874690730af140eff86cef4
Story: #2002586
Task: #24346
2018-08-24 06:41:35 +00:00
98k 1f5c5c3ca0 switch documentation job to new PTI
This is a mechanically generated patch to switch the documentation
jobs to use the new PTI versions of the jobs as part of the
python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: Ia9dc33cdf16607c931151c7678a62270a9477e0b
Story: #2002586
Task: #24346
2018-08-24 06:41:32 +00:00
98k 08e021a62f import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: Ic6ac635904edf2745273918aa13e25b13a516f9a
Story: #2002586
Task: #24346
2018-08-24 06:40:58 +00:00
Zuul 4666dc69c1 Merge "Replace os-client-config to openstacksdk" 2018-07-25 07:50:44 +00:00
Zuul 8346507ccf Merge "Update reno for stable/rocky" 2018-07-25 03:40:38 +00:00
wanghao 792a6d0ff1 Replace os-client-config to openstacksdk
Since now os-client-config has been superceded by openstacksdk[1].
So need to replace the os-client-config in zaqarclient to
slove the issue that 'No module named os_client_config'.

[1]:https://docs.openstack.org/os-client-config/latest/

Change-Id: I19bee5f276dcdd9a885fd99b6b656647e28ba139
2018-07-25 11:32:27 +08:00
OpenStack Release Bot 09a95673d0 Update reno for stable/rocky
Change-Id: I5889d7fa4d80ab2fe1ceb1518dcfb6f336226aaa
2018-07-23 15:24:13 +00:00
wanghao e8007a68e4 Update releasenotes index for Rocky
Update the releasenotes index for Rocky

Change-Id: I8303ed2784f4dcf65c024b28ba4e37d9542bae78
2018-07-23 10:00:41 +08:00