77 Commits

Author SHA1 Message Date
XinxinShen
8e54fad94f remove py37
Remove python3.7 from setup.cfg, since Wallaby's python
supported runtimes are python 3.6 and python 3.8[1]:

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

Change-Id: Iaa89b4d36e9c391a2bd294e9b5e39d817d843559
2021-01-03 14:36:29 +08:00
Zuul
02d1bd0242 Merge "Remove six lib" 2021-01-03 04:43:27 +00:00
Zuul
b6a89a2380 Merge "Remove six lib" 2021-01-03 04:42:50 +00:00
Zuul
bc5b27ba70 Merge "Remove six lib" 2021-01-03 04:42:47 +00:00
tomas
874a778f55 Remove six lib
Change-Id: If10f63674f2f7a4c0a38b7f76a2ba8ea86bab3ae
2021-01-03 10:47:51 +08:00
tomas
290b6ed2bd Remove six lib
Change-Id: I7f278088722a3e0e0fd502be45337c485d9f282b
2021-01-03 10:39:15 +08:00
tomas
e29aac97cd Remove six lib
Change-Id: I1674693c06ea21210ceed002154c0cf70b2ec22b
2021-01-02 16:35:57 +08:00
zhangboye
3404a633e2 Replace deprecated UPPER_CONSTRAINTS_FILE variable
Change-Id: Ie43342e156e32aceae5af8630ea91830273923db
2020-12-03 14:25:59 +08:00
Zuul
991e46c1c9 Merge "Bump default tox env from py37 to py38" 2020-10-12 03:16:50 +00:00
Zuul
46386a538a Merge "[goal] Fixing lower constraints for Ubuntu Focal" 2020-09-18 06:09:41 +00:00
Yumeng_Bao
7e2ca76492 [goal] Fixing lower constraints for Ubuntu Focal
As per victoria cycle testing runtime and community goal[1],
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).

Bump lower constraints to make testing work for Focal.

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

Change-Id: I2eeaa3fdec4841eae6fe706ef5f4ef120b21a30f
Story: 2007865
Task: 40181
2020-09-17 16:47:58 +08:00
46ce9c2c94 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: I0d82ace6f9745b02868ac7b627218e625546f0b1
2020-09-10 09:39:10 +00:00
8f504d74f6 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: Ibc047731bf08644197c462a66b4e3fe061c4746e
Sem-Ver: feature
2020-09-10 09:39:07 +00:00
songwenping
257e8200fb Add e.g. for groups when create device profile
It is difficult to create device profile with command because of
the groups parameter is hard to pass, so add e.g. for the command
``openstack help accelerator device profile create``, that we
can get the example for the `group` parameter.

Change-Id: I6afa3ec4c3cc0d14d0632ff821fdf200c736da0e
victoria-em 1.2.1
2020-08-26 16:07:35 +08:00
Zuul
64dc2bbe9e Merge "Enable openstackdocs config to storyboard" 2020-07-27 11:40:02 +00:00
Zuul
8a461b6b9a Merge "Fix hacking min version to 3.0.1" 2020-07-27 01:41:01 +00:00
zhangbailin
92bab3c19c Enable openstackdocs config to storyboard
https://review.opendev.org/#/c/729007/3 renamed some config related to
launchpad, but Cyborg does not enable launchpad, using storyboard.
If the configuration is incorrect, they will add the bug icon to allow
reporting from a page.

Using openstackdocs_use_storyboard = True in the docs config file.

Talked in Ussuri PTG in Cyborg, whether launchpad is enabled for Cyborg,
we have not reached a consensus agreement.

See line 291: https://etherpad.opendev.org/p/cyborg-victoria-goals

Change-Id: Iefcfc4b0f1ca9dd9e779c85ee2ec4fd97d0efe3d
2020-07-16 09:28:20 +00:00
Zuul
25d108c004 Merge "Use unittest.mock instead of third party mock" 2020-06-19 07:54:21 +00:00
Zuul
82f4a1706e Merge "Remove future imports" 2020-06-19 07:54:20 +00:00
zhangbailin
031d1efa80 Remove translation sections from setup.cfg
These translation sections are not needed anymore, Babel can
generate translation files without them.

Change-Id: I1d071c93c1e8eba4a43274023cfea87d16fb857b
2020-06-18 00:59:04 +00:00
Zuul
d0f536e4c1 Merge "Remove unused osc_plugin environment" 2020-06-17 01:35:36 +00:00
Sean McGinnis
5d64eb21b7 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: Iaa4b9af611c27deaadc0d77bd9e903e4c1bc77ac
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-06-16 03:48:13 +00:00
zhangbailin
f3df1987cb Remove future imports
These particular imports are no longer needed in a Python 3-only world.

Change-Id: I46e12135aa9759fe05c00e9e7159b352a2b1482f
2020-06-16 03:47:29 +00:00
Zuul
6c4d90da9c Merge "Fix image get to use new osc release" 2020-06-16 03:18:20 +00:00
Shogo Saito
1d6b92ad79 Fix image get to use new osc release
Current osc uses openstacksdk[1] to get image,
and this patch fix cyborgclient to fit that.

[1] https://review.opendev.org/#/c/650374/

Change-Id: If3e59aed4346827e9efa89704025e2fd5c74762b
2020-06-09 16:41:51 +09:00
Shogo Saito
0d405a5022 Fix a config error ralated to entry point
The latest setup.cfg has an error below.
That is stem from miss-spelling,
and this patch fix that with proper spell.

$openstack complete
"No module named 'cyborgclient.osc.v2.showDevice';
'cyborgclient.osc.v2.device' is not a package

Change-Id: Icbbcbb10397593c8ac810164ac88b02deb9ac818
1.2.0
2020-06-08 14:25:51 +09:00
Andreas Jaeger
2505c104b6 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.

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: I99b320c5dafffddf0390058bc112fd87b537420b
2020-05-22 17:18:07 +00:00
Zuul
b7feb4ecf3 Merge "Add py38 package metadata" 2020-05-18 00:25:14 +00:00
Ghanshyam Mann
0952887774 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: I85a0adf95923af560605f0e91b6f85489aaf7600
2020-05-12 19:31:18 -05:00
Andreas Jaeger
a788cf6c5d Remove unused osc_plugin environment
This environment is not used and broken, none of the files exist.
Remove it, this is not needed.

Change-Id: Icf053b6104192d8adc883a9cfb9b922ba0089880
2020-05-12 20:18:39 +02:00
qiufossen
85d64adc1c 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: I2d5333478fdcc96b505bee0329b6a609201a5d92
2020-05-11 12:26:58 +08:00
zhangbailin
1fd43fa8bb Update master for stable/stein
This should not have been reverted initially. Now missing
landing page for stein release notes.

Change-Id: I2e010041546bfd27add5f529dfb215e5e43601f3
2020-04-27 20:28:56 +08:00
Sean McGinnis
8a9907e704 Revert "Revert "Update master for stable/train""
This reverts commit 880d115865686edd09152329f0874703e6e9bea6.

This should not have been reverted initially. Now missing
landing page for train release notes.

Change-Id: I15e2147a62bba19c4e8ccf469b77fcc7f52b9e3e
2020-04-27 12:13:42 +00:00
Brin Zhang
880d115865 Revert "Update master for stable/train"
This reverts commit 64a10cd75f900a3914426a3ffb494542dd06d49c.

Change-Id: I06cad187a6a5b7ecb3052f5bf65d669e494de852
2020-04-27 07:53:52 +00:00
zhangbailin
64a10cd75f 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: I7b2ca72fff6559687ae5e95abdf21caaa35e5952
2020-04-27 13:42:36 +08:00
Zuul
44d314ea8b Merge "Add Python3 victoria unit tests" 2020-04-27 03:22:25 +00:00
Zuul
cbff8fd221 Merge "Update master for stable/ussuri" 2020-04-27 03:21:46 +00:00
zhangbailin
51fdb1f251 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.

Depend-On: I14ca880507873e952c1f887dac7f3f2973a036cb

Change-Id: Ic6b4bc30be074663409599ec320411a3abdcb69e
2020-04-27 01:29:50 +00:00
Andreas Jaeger
fa02f0fd61 Update docs building
Switch to using sphinx-build, update requirements of openstackdocstheme
and Sphinx for python 3.

Remove Babel, it's not needed anymore See
http://lists.openstack.org/pipermail/openstack-discuss/2020-April/014227.html.

Change-Id: I14ca880507873e952c1f887dac7f3f2973a036cb
2020-04-26 19:24:57 +08:00
b2964f70cb 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: Iba54aa555388a95eb9db1fa805ed7bf8843fc4c7
2020-04-11 18:49:36 +00:00
70fa1489f1 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: If33dc11b2bf9a841d58a50b14cb5f1e542fc43b9
Sem-Ver: feature
2020-04-11 18:49:34 +00:00
Zuul
fe19398d9f Merge "Update requirements for openstacksdk release" 1.1.0 2020-04-08 12:03:45 +00:00
Shogo Saito
d323f94533 Update requirements for openstacksdk release
From version 0.42.0, openstacksdk includes cyborg related codes.[1]
This patch makes cyborgclient install that.

[1] https://releases.openstack.org/teams/openstacksdk.html

Change-Id: I4f4719e6d307a9067612b8789eefbbd1c26fe1a8
2020-04-08 02:56:12 +00:00
Andreas Jaeger
751800a278 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
- Update classifiers
- Update requirements, no need for python_version anymore
- Sync sphinx requirements with cyborg
- Update to openstack-discuss mailing list

Change-Id: I679491107a982de8c76674ec9f94162a6c961064
2020-04-05 07:24:28 +02:00
Zuul
3c8de835d9 Merge "Update home-page" 2020-04-05 01:49:19 +00:00
Andreas Jaeger
df56f7af7f Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found:
E117 over-indented

Blacklist:
E402 module level import not at top of file
W504 line break after binary operator

Change-Id: I05b04a6f15683f7f37a5be49cc50c02eb3bbf7a7
2020-03-31 10:46:06 +02:00
Shogo Saito
c4770df453 v2 API Support(using openstack-sdk)
Modifying cyborgclient to supporting v2 API,
and using openstack sdk.
This patch depends openstacksdk patch[1].

command usage:
$openstack accelerator *commands below*

deployable ( list | show | program )
device list
device profile ( list | create | delete | show )
arq ( list | create | delete | show | bind | unbind )

[1] https://review.opendev.org/#/c/679914/

Change-Id: If6bb52b453c1aa7fb328fd08ebbb79312fa7d299
Story: 2006930
2020-01-27 18:25:20 +09:00
Zuul
817602eb98 Merge "Bump the openstackdocstheme extension to 1.20" 1.0.0 2020-01-19 17:48:43 +00:00
Ghanshyam Mann
a38dd64945 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

python-cyborgclient 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: If4ed97647cb82d373addabb9382589d6da20ed1a
2019-12-15 02:13:21 +00:00
huang.zhiping
2c4f91e7a7 Update home-page
Change-Id: I21ab8e2e91c6484f25b99a6b1c85500416d0bd80
2019-11-06 11:46:00 +00:00