Commit Graph

324 Commits

Author SHA1 Message Date
Carl caihui 2b112fc493 Dropped the python 3.6/3.7 in zed cycle testing runtime
In Zed cycle, we have dropped the python 3.6/3.7[1] testing
and its support.

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

Change-Id: Ic7116b0ad50e5eb81f487f60746981b70356f494
2022-05-11 03:11:07 +00:00
Carl caihui 4ea0d08896 Update arm ci jobs
Update "openstack-python3-xena-jobs-arm64" to "openstack-python3-zed-jobs-arm64".

Change-Id: I02c543c40a5c4c60f53b24ff6b6efd44113062a7
2022-05-10 07:36:43 +00:00
Cai Hui 32d6f32c5e Add zed test jobs
Add zed test jobs.

Change-Id: I2942d663993e2dafd4bef291f5fc999e0e160c30
2022-05-08 16:52:44 +08:00
Ghanshyam Mann a49c42a63f Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], we are
dropping the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Change-Id: I286e2ec118ad1c22018187e3ae7d7093bf342696
2022-04-30 15:43:42 -05:00
Cai Hui 7431d7b62c Add arm64 gate ci job
Add  openstack-python3-xena-jobs-arm64 job in .zuul.yaml

Change-Id: I359fbcaabf3f6f68ca63d2b24aa32ee5d4e396c6
2021-11-06 18:28:29 +08:00
Cai Hui d081823079 Fix flake8 error: H104
Fix flak8 error :H104

Change-Id: I05f26a3c10039b1ef85c7aca993f72e6c4ae65d8
2021-11-06 10:13:26 +08:00
Cai Hui 129e9cf2bb Add python3.9 CI
Update tox.ini to support python3.9.

Change-Id: Ia420c0c8129c3e8d81e11702a536daf02b9e1108
2021-11-05 21:48:53 +08:00
Carl caihui ed6e34a076 Add openstack-python3-yoga-jobs
Update gate ci to openstack-python3-yoga-jobs

Change-Id: I006e4b547de02771f503810d760cb292c7d89f2f
2021-11-03 23:19:20 +00:00
Cai Hui c05175cd85 Update .zuul.yaml
Add "openstack-python3-xena-jobs" CI job.

Change-Id: I7551e1a07a414dc0e37c75793db2f8014e996e93
2021-11-02 21:08:56 +08:00
Cai Hui 35f701fbd4 update type hint for Client
Change-Id: I6ea692497141fe9c2199ab07ba653cc7b0d55087
2021-10-31 12:43:31 +08:00
Cai Hui cdeab76bbb Add type hint for Client API
Add type hint for Client API.

Change-Id: I68ed226d499dc9524ca141fbeec01b8b19e0f1d4
2021-09-25 09:37:45 +08:00
Zuul a5496f7593 Merge "[ussuri][goal] Update contributor documentation" 2021-06-16 02:34:14 +00:00
Zuul ddc4f71384 Merge "Use py3 as the default runtime for tox" 2021-06-15 10:59:39 +00:00
caihui a35d808ccb Fix lower-constraints CI error
ooking in indexes: https://mirror.gra1.ovh.opendev.org/pypi/simple, https://mirror.gra1.ovh.opendev.org/wheel/ubuntu-20.04-x86_64
Collecting hacking<3.1.0,>=3.0.1
  Downloading 87943c48e39ae4d26128d7cf496d13/hacking-3.0.1-py3-none-any.whl (37 kB)
Collecting coverage>=4.5.1
  Downloading https://mirror.gra1.ovh.opendev.org/wheel/ubuntu-20.04-x86_64/coverage/coverage-4.5.1-cp38-cp38-linux_x86_64.whl (214 kB)
Collecting stestr>=2.0.0
  Downloading https://mirror.gra1.ovh.opendev.org/wheel/ubuntu-20.04-x86_64/stestr/stestr-2.0.0-py3-none-any.whl (102 kB)
Collecting testtools>=2.2.0
  Downloading https://mirror.gra1.ovh.opendev.org/wheel/ubuntu-20.04-x86_64/testtools/testtools-2.2.0-py2.py3-none-any.whl (195 kB)
ERROR: Cannot install astroid==2.1.0 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested astroid==2.1.0
    The user requested (constraint) astroid==1.6.5

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
Change-Id: I65a5acd0ed5188c7810200eaeefd55a0030d6eda
2021-06-11 08:47:17 +08:00
Ghanshyam Mann f10f3aea74 [ussuri][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: #38522
Change-Id: I20b2d85bee7d32b6ad4970d7ccd47af6cdc3b930
2021-05-31 20:30:39 +00:00
zhangboye c50503c2a1 Use py3 as the default runtime for tox
Moving on py3 as the default runtime for tox to avoid to update
this at each new cycle.

Change-Id: If847096fce66c918d729f1cbb97ee9ad518f4864
2021-04-20 16:30:21 +08:00
caihui 2fe404f68f Remove unuseful param 'opts'
Remove unuseful param 'opts'

Change-Id: I220d81d6e82336db82f49c469f6d2cc70ab13675
Task: 41348
2020-12-02 01:00:19 -08:00
caihui 397618e851 Remove unsueful 'opts' param
The opts param is unuseful for get_client_instance() func.

Change-Id: Ib187a4d7d5ea92c1dbe5e4505b3646d5d050c53f
Task:41348
2020-12-01 19:46:14 -08:00
caihui 137e58b856 Add "project_domain_id" param for clinet.Client():
Sometimes "project_domain_id" param is used in client.Client().

Change-Id: Iffb8e12a1cf3bb8747b63ea8e58d354d2abb208e
2020-12-01 18:01:41 -08:00
caihui cf06e43151 Update gate jobs
Update  "openstack-python3-victoria-jobs" to  "openstack-python3-wallaby-jobs".

Change-Id: Iade621bed540dd6b2a1a0d241afa60cebfe87a28
2020-11-09 17:34:11 -08:00
caihui 2c748b9ad7 Update package metadata
Change-Id: I5627aaf7f9f41a5b59e1094b3c9a130e9345406e
2020-11-09 04:13:31 -08:00
Zuul 813e508ed0 Merge "Add py38 package metadata." 2020-10-30 08:46:17 +00:00
caihui 77f33c6c96 Restore package metadata
Change-Id: Ia06101afac1ae6294af591bd106c9a2f546a7cb2
2020-10-29 20:11:41 -07:00
caihui 2fed496ffa update package metadata
Change-Id: I625a5d0e6ba772b2d9776ea6dd4439ff2a35ae83
2020-10-29 01:43:53 -07:00
zhangyangyang 4183f63cc3 Add py38 package metadata.
Change-Id: I0684b3a2ecbd080232d0f24b535da24d9ea95243
2020-09-30 17:23:51 +08:00
mudit-opn c48b7b15cf Update 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: I32a4a3055595eeafb330c14959e55db9ee82cfa9
Story: #2007865
Task: #402184
2020-09-08 17:46:28 +00:00
Zuul 2ccd96d733 Merge "Fix hacking min version to 3.0.1" 2020-09-05 02:19:16 +00:00
Caihui 7f2193497d Fix tip error
Fix tip error of freezerclinet cmd.

Change-Id: I1409a98f3aef84f2dbc259c04f367ffe79abf95c
2020-07-09 20:54:07 -07:00
Caihui 8c7e59ce3f Add py38 in tox.
In new release, The project  is used  python38 to replace python37,
so drop py37,add py38 in tox.

Change-Id: I19dd35b12f2a7764ecf9635a09f9865b589d250a
2020-07-01 23:34:33 -07:00
Caihui 0df8a1da22 Remove keystone v2 related code
Kyestone V2 support was removed in Train, so it's safe to remove "tenant" param.

Change-Id: I1458a61f5b0d70e1d4ebe3b8ba88bc4826b7a363
2020-06-18 19:31:03 -07:00
Andreas Jaeger 2a8a8dc3cd 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: I8edb19b7855f8ed108566b13ce0a277a2073e3a2
2020-05-22 17:21:28 +00:00
Ghanshyam Mann da8b317274 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: I7a01b34fa14404715ef55eceb51a4935be2a4e9f
2020-05-12 19:31:20 -05:00
Zuul b396dd5aa2 Merge "Add Python3 victoria unit tests" 2020-05-06 01:34:40 +00:00
Zuul 5827f25f66 Merge "Update master for stable/ussuri" 2020-05-06 01:18:15 +00:00
jacky06 7b10fd4b61 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: I880d1d8d6183d002b81ac34e2f2a3b2625abb4ff
2020-04-19 22:10:23 +08:00
OpenStack Release Bot 93f07c26c0 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: Id5fb6a41c812143fa0a2448253392d531037cfbb
2020-04-11 18:47:52 +00:00
OpenStack Release Bot 247f3ed974 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: I388184b4c9f7064d00b1278b1a9f5438e4457fcd
Sem-Ver: feature
2020-04-11 18:47:50 +00:00
Andreas Jaeger aa75c961bf Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Remove hacking and friends from lower-constraints, they are not needed
for installation.

Change-Id: I0800191c29e0cd379826d62b4bf310606c811263
2020-04-04 16:45:53 +02:00
Andreas Jaeger c2cb528d27 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
- Remove html_last_updated_fmt from conf.py, this is not needed with
  openstackdocstheme anymore; update openstackdocstheme requirement

Change-Id: Ib3ea5712db7075a67a4f9da74a6788822658e97a
2020-04-04 16:45:36 +02:00
Caihui 0e7546bda7 Remove six usage from freezerclient package
We don't support Python 2 anymore so we don't need this
compatibility library.

This patch remove six.moves.cStringIO by io.StringIO.

Change-Id: I31acfc0b661797fdefd23c28b06de6c21019de00
2020-01-22 01:10:13 -08:00
Ghanshyam Mann 70fe4ede94 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

python-freezerclient 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: Id0901d32660b9b643d3d2eb35e77627dfca6b944
2019-12-15 01:15:05 +00:00
caihui 990f31e53f Modify "backup-list" show
Sorted by the time of the backup task is createdw.

Change-Id: I69c8240c88952008536b1f2581facf80596bb3c8
2019-11-18 02:02:56 -08:00
caihui 315e093a35 Update tox.ini file to add py36 in envlist
Add py36 in envlist for UT.

Change-Id: I950cde61b857e58c9d42169a6e756abff467f575
2019-11-12 22:18:40 -08:00
caihui a9258e12f6 Upgrade pylint&astroid to a version that works with python3.7
1. Astroid and pylint are tightly coupled,so both versions should be specified for python3.7

2. A few rules are added to the ignore list in .pylintrc

Change-Id: Ice65c8fa94a2de2c0365ec5ab710d93675aacbb9
2019-10-29 06:43:33 -04:00
lu-meihong de0f67c6f5 result is different from comments
Change-Id: I05fd9111663512ef2169036c637c330df1c5f740
2019-10-10 20:56:20 -07:00
Zuul 89c6e59c09 Merge "Blacklist sphinx 2.1.0 (autodoc bug)" 2019-09-20 07:38:28 +00:00
Zuul 4de094521b Merge "Add Python 3 Train unit tests" 2019-09-20 07:38:25 +00:00
pengyuesheng 5bbe962f39 Blacklist sphinx 2.1.0 (autodoc bug)
See https://github.com/sphinx-doc/sphinx/issues/6440 for upstream details

Change-Id: I3004cf4d723a4c7680ba7d907c57a34130b7e348
2019-07-30 16:51:26 +08:00
pengyuesheng db341f8d0a Bump the openstackdocstheme extension to 1.20
Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.

This will show other versions of the doc, too.

Change-Id: Iab881a91692a886f67cc4a81720deda717695d23
2019-07-01 16:58:40 +08:00
Corey Bryant 6ef7fde206 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: I10ae220c4e5c62308433466635a8055a53a8e706
Story: #2005924
Task: #34207
2019-06-24 09:27:08 -04:00