Commit Graph

163 Commits

Author SHA1 Message Date
Ghanshyam Mann 4d184021c2 Retire the python-qinlingclient project
As announced in openstack-discuss ML[1], Qinling project
is retiring in Wallaby cycle.

This commit retires the python-qinlingclient repository as per
process deinfed in project-guide[2]. Anyone would like to
maintain it again, please revert back this commit and propose
the re-adding it to governance.

The community wishes to express our thanks and appreciation to all of
those who have contributed to the python-qinlingclient project over
the years.

Depends-On: https://review.opendev.org/c/openstack/project-config/+/764520
Needed-By: https://review.opendev.org/c/openstack/governance/+/764523
Change-Id: Idc709077f3f1fbbc81795b32a0cf5fc005f3dd27
2020-11-27 21:35:59 -06:00
zhoulinhui 8e5fcbbca2 Remove all usage of six library
Convert all code to not require six library and instead
use python 3.x logic.

Change-Id: I51d23b3652f120d3822033aa20ec48cae9668d22
2020-09-15 23:35:53 +08:00
OpenStack Release Bot 224728ff60 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: Ic6e212a5d99dc99d90c0a83c10fa2ad264f3cf2e
2020-09-09 17:31:56 +00:00
OpenStack Release Bot 3499308187 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: I13881c733728f1003199c1fe5b78a5f12d6c0be6
Sem-Ver: feature
2020-09-09 17:31:53 +00:00
Ghanshyam Mann cf8f0cf5c8 [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: #40211

Closes-Bug: #1886298

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

Change-Id: Ie8f07b8faaa0901e2f0dfaafd91d5fa3c817a976
2020-08-05 00:10:36 +00:00
Zuul 334801ba3e Merge "Update the constraints url" 2020-06-23 10:24:59 +00:00
Hervé Beraud 7caaad1141 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: I53b9f84f68145dc81b8b6ec500c6111f46db1756
2020-06-09 11:59:30 +02:00
Hervé Beraud 86dd461140 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: Iaa0e17158d44ad2ea25adcdcc5f56123a9bb80d1
2020-06-02 20:51:14 +02:00
Andreas Jaeger 877043c538 Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.0 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.

Set openstackdocs_auto_name to use 'project' as name.

Depends-On: https://review.opendev.org/728938
Change-Id: I31eada6a7e2628c16441adf54f3c2b97b9375103
2020-05-18 22:34:16 +02:00
Ghanshyam Mann c587985165 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: Ifcdb1528ce9d4168015abf58b7e82c02b05ddd86
2020-05-12 20:49:49 -05:00
Zuul eb3ce1e2a4 Merge "Bump default tox env from py37 to py38" 2020-04-24 23:21:03 +00:00
Sean McGinnis 55de9560a4
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: Ia7e002b6821bb5a7dda64816360063d9cf5dfc9c
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 10:25:57 -05:00
Sean McGinnis 8e78efa5dd
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: I682449314787f9c5f2414c0a7d2f60951aab9f89
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 08:23:18 -05:00
Sean McGinnis 406d711be2
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: I77ea9a745ae998a6670b4f75a8dcdb22f3b6af69
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-18 11:59:09 -05:00
OpenStack Release Bot 4e393baae8 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: I6106b438ae9b8870d3404a62f15828ac2aadbe21
2020-04-11 18:44:01 +00:00
OpenStack Release Bot 6e30a0f100 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: I0197ae5def6fe168d7ed02c437e12b31eddc1356
Sem-Ver: feature
2020-04-11 18:43:58 +00:00
Ritesh b0c73badda Add private parameter for runtime creation
The --private parameter is optional paramter
for runtime creation. This parameter makes
the runtime private. The runtime is public
by default.

Change-Id: I4f2b57ff140410a49f49f01d7af28b9e8fded8ec
Story: 2005919
Task: 34180
2020-04-08 20:24:37 +00:00
Andreas Jaeger 39a95b6354 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
- Update requirements, no need for python_version anymore
- remove html_last_updated_fmt from conf.py, this is set by
  the theme now.
- Remove hacking and friends from lower-contraints, those are not
  needed for installation.

Change-Id: I81d0926a6c03f0146320e9a46eb79e661ca72eee
2020-04-04 11:33:45 +02:00
Andreas Jaeger 4116284bb3 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: I533090ad0387f7d4455ddcf2c69af3dd8a17a974
2020-03-31 12:24:24 +02:00
Ghanshyam Mann 5ab81333e3 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

python-qinlingclient 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://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: Id33d34fd89a4fa10f1c60354b91268898289ba9c
2020-01-21 20:38:27 -06:00
zhangboye 4f4dc57e45 Stop testing python2.7
Change-Id: Id43084263d7cca60af0458bb609c12298263b7bf
2019-10-28 14:44:25 +08:00
kangyufei c510488c6e Switch to Ussuri jobs
Change-Id: Iaff056acc53acadb423884b20db47343b387b0d0
2019-10-22 14:27:31 +08:00
pengyuesheng c2c98cde42 Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I01f162c219fcdf40c2065b73b4ae13fba9f042a1
2019-09-23 16:51:47 +08:00
OpenStack Release Bot 425c31ad9a 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: I34bedbdc8565942b2ec03a784c0d804bf323c45a
Sem-Ver: feature
2019-09-20 17:42:31 +00:00
Zuul 2730edd92d Merge "Add Python 3 Train unit tests" 2019-08-12 01:02:20 +00:00
Zuul d6c68310cb Merge "Sync Sphinx requirement" 2019-08-12 01:02:19 +00:00
Gaëtan Trellu 7e251a2052 Improve function_alias integration
The --function-alias option needs to be available for:

  - executions
  - webhooks
  - jobs (already done by https://review.opendev.org/#/c/671948)

Change-Id: I0c08c950ff60083962ea8945b529fffa9237e4d7
Story: 2005913
Task: 34173
2019-08-05 20:18:33 -04:00
pengyuesheng 7d970e4dad Sync Sphinx requirement
Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.

Change-Id: I62369815ed0bc59885f244f43de57280214629b6
2019-07-26 16:47:52 +08:00
Gaëtan Trellu 80bdfcf087 Fix broken function version during webhook update
When updating a webhook which uses a function_version other than 0
using qinlingclient, the function_version of that webhook would be
reset to 0.

This is caused by the argument 'function_version' of the webhook
update command is set to a default value 0, so it is always passed
to the Qinling API even though user doesn't specify it.

Change-Id: Ic1071a5ba7bfd12161a423c99d888857a786a1ba
Story: 2003478
Task: 24744
2019-07-25 11:26:48 -04:00
Lingxian Kong 01cde229de Release note for --function-alias support
Change-Id: Ie40c88ab4d36a607c3aaa20d5c36126488682d65
Story: #2005921
Task: #34268
2019-07-22 18:12:56 +12:00
Lingxian Kong d3983978dc Support function alias when creating job
Story: 2005921
Task: 34264
Change-Id: If1c02a0d094b87ca576860db174fd340fb8a9ed4
2019-07-22 18:12:10 +12:00
Corey Bryant 7e8b0f1f92 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: I1ddb4651064918990c218d1497ab2b945d6f034a
Story: #2005924
Task: #34239
2019-07-05 15:50:50 -04:00
Zuul 390e2808ab Merge "Update json module to jsonutils" 2019-06-20 11:31:39 +00:00
Zuul 972b9a9789 Merge "Add doc/requirements.txt to releasenotes tox environment" 2019-06-20 11:13:57 +00:00
melissaml a3ce167949 Update the Launchpad to Storyboard
Change-Id: I4122cdbac8c0986289cbee3a253bb20ad4752a1c
2019-06-20 10:29:35 +00:00
98k fb58059781 Add doc/requirements.txt to releasenotes tox environment
Without these dependencies, the releasenotes build does not actually
work.

Change-Id: I89d5832dbf9ad52bc5e027f74174074685addbe1
2019-06-20 10:29:31 +00:00
cao.yuan 0649ad405a Update json module to jsonutils
oslo project provide jsonutils, and qinlingclient  use it in many place[1],
this PS to update the remained json module to oslo jsonutils for
consistency.

[1]: https://github.com/openstack/python-qinlingclient/search?utf8=%E2%9C%93&q=jsonutils&type=

Change-Id: I16cb1e688f0b237d270acb6751e78d6b4a5d01ba
2019-06-20 10:29:27 +00:00
Lingxian Kong 3ffe4d03a5 Fix unit test failure
Change-Id: Id1b21531087c5a37c4bbf8427a20a647cabdc344
2019-06-20 20:43:31 +12:00
Lingxian Kong 36d3987a77 Fix the filter description for resource list
The filter keys should be consistent with API implementation.

Story: #2005836
Task: #33599

Change-Id: Ibefaffe6e44be9de7d8338e11e4bc05facf4b6ed
2019-06-07 23:36:42 +12:00
jacky06 0d219b1b1f Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I6bdcc35cc1b62bcf800fb2d519744113c399545a
2019-04-23 05:47:49 +00:00
OpenDev Sysadmins 52cab5ad98 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:34:09 +00:00
ZhongShengping 76d8811086 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: Id8f0acf8fcf901f2bc3383f3bec168c8e9469394
2019-04-15 09:41:37 +08:00
OpenStack Release Bot b74e89115f 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: I1f4f26a0de5d11cb9ca11c68409e4e13321662b6
Sem-Ver: feature
2019-03-18 14:54:51 +00:00
ZhongShengping 1d4dcfd85a add python 3.7 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.7.

See ML discussion here [1] for context.

[1] http://lists.openstack.org/pipermail/openstack-dev/2018-October/135626.html

Change-Id: I72bc35d0e27a62a9e48a4cba81b69fe0c3af68a5
Story: #2004073
Task: #27444
2019-02-19 11:32:12 +08:00
98k b5d3383f38 Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: I5e6153e59802102325500c9d0bb07ee8ccb98cbb
2018-12-04 07:25:57 +00:00
qingszhao fbc139f53e Add Python 3.6 classifier to setup.cfg
Change-Id: I75913d8af58253f4a02400e3a0b74d88dafc7d3b
2018-11-30 07:17:51 +00:00
Vieri 6737ae74da 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: Ie7b00e70894b7847a54e33f5ea3966ef4b1909f2
Story: #2002586
2018-11-28 07:51:38 +00:00
Lingxian Kong dd2ceebb7e Add release note for timeout support
Story: 2002174
Task: 26345

Change-Id: I90af7e8b5f9e27e3e76bc02b918bf153bb9388cf
2018-10-23 16:32:25 +13:00
huang.zhiping aa9dcc5c68 Update min tox version to 2.0
The commands used by constraints need at least tox 2.0.  Update to
reflect reality, which should help with local running of constraints
targets.

Change-Id: I53ed80abbb4af0ab40d102fb28637ca4dfd576f9
2018-10-21 02:38:16 +00:00
Vieri 8261f466f5 Don't quote {posargs} in tox.ini
Quotes around {posargs} cause the entire string to be combined into one
arg that gets passed to stestr. This prevents passing multiple args
(e.g. '--concurrency=16 some-regex')

Change-Id: Ie0a325cd52f3f4af1c55f572d739b0634ff5d798
2018-10-09 14:01:07 +00:00