328 Commits

Author SHA1 Message Date
HeroicHitesh
63610f006e Migrate from testr to stestr
Signed-off-by: HeroicHitesh <email.hiteshkumar@gmail.com>
Change-Id: Ia92a4bea657df6b6a1f236297b3bb1ce6d5dfc94
2021-04-19 17:21:03 +05:30
e70ec02142 Add Python3 xena unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for xena.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I65442108f0ab8a32ba981cc6abc9a622b7199e56
2021-03-18 10:24:50 +00:00
3611f26746 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: I9cfa81e88306c0d5c2f1ba42a48fe871a2bc7bb2
2021-03-18 10:24:25 +00:00
wangzihao
8293be5fed Revert "remove py37"
This reverts commit 764e43083040dd4025e2864f11db77a57aea4b9c.

Reason of revert :Python 3.7 *is* supported because it falls
in the range of supported Python versions (3.6-3.8) [1].

[1] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019648.html

Change-Id: I1984fe34be137de7c1e6a96f2fd8e8f1d9e35a31
wallaby-em 4.3.0
2021-01-14 14:19:52 +08:00
XinxinShen
764e430830 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: I998b46c719c266b75176da904cbc8da2ad60e663
2021-01-03 17:14:28 +08:00
Q.hongtao
7dbc1e89e2 Remove unicode from client
Change-Id: If0ac1d13a7958edb1389c1f76abce47016e50845
2021-01-03 06:49:56 +00:00
Eyal
3b976540d9 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

Change-Id: I3734e725abb56ab4515cf1d958ae33386333ef67
4.2.0
2020-11-17 14:22:05 +02:00
wu.chunyang
d753e05f32 Remove the unused coding style modules
Python modules related to coding style checks (listed in blacklist.txt in
openstack/requirements repo) are dropped from lower-constraints.txt
they are not needed during installation.

Change-Id: I599f1ab8d4a22f68fb50684b8e5eebc5f596d5d3
2020-10-21 23:28:41 +08:00
Q.hongtao
f4f7ed012a Remove six
The Python 2.7 Support has been dropped since Ussuri.
So remove hacking rules for compatibility between python 2 and 3.

Change-Id: I5f0980bf56c8f7b8f9e7f75c7641443e0354e3c1
2020-09-19 12:13:02 +08:00
wu.shiming
68cd2decf1 Remove install unnecessary packages
The docs  requirements migrated to doc/requirements.txt
we need not install things from requirements.txt.

Change-Id: I437ad6c4c96ef1ac3e11757e3ae2e4a5a04e500b
2020-09-15 09:54:06 +08:00
ec82132461 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: I8582e0da1823f7b8f9c36afbd78d022673f28bff
2020-09-09 15:57:33 +00:00
31b7386234 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: I0c5a81d6c95fa6437ac739e048a3983c27ab71c7
Sem-Ver: feature
2020-09-09 15:57:31 +00:00
melissaml
b863680806 Fix pygments style
New theme of docs respects pygments_style.

more info: http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I079d1fbffc91e3d8c23a1de03634a3238c579a6f
victoria-em 4.1.1
2020-06-23 15:45:20 +08:00
melissaml
17fcaf06f5 Remove translation sections from setup.cfg
These translation sections are not needed anymore, Babel can
generate translation files without them.

Change-Id: I54aebb7d370f651642f40a69c27e6776d6093f1d
2020-06-23 11:05:01 +08:00
Hervé Beraud
ec052afe98 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: I2ba585868b451091365b17d1f230ab505e03f4ad
4.1.0
2020-06-09 12:05:48 +02:00
Hervé Beraud
ae40b5560f 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: I7cc35696d770e1bf9e87310e5a081e1abe719522
2020-06-02 20:54:24 +02:00
Andreas Jaeger
a034ce54c2 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.

Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.

Set openstackdocs_auto_name to use 'project' as name.

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-Id: I8de23470cda92374f7b6df89548bbbe23570805f
2020-05-19 08:05:16 +02:00
Ghanshyam Mann
5b1465bd89 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: I064a585db868c6a4d19c4a88b686a63c81c8acaf
2020-05-12 21:32:20 -05:00
Sean McGinnis
30e83fb473
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: I68ded089d6a1cf9439eb2f35c8482e68d2030360
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 10:25:59 -05:00
Sean McGinnis
ff0321c675
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: I98566be10eec15ca3eaf795fb3717ac87f86632d
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 08:23:19 -05:00
Sean McGinnis
993563f610
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: I564357caf5982a0db9be01c77e9e8c42bee932d6
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-18 11:59:50 -05:00
ab33eab159 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: I0151b5d637b91c22916ad9cc6afa0d2235550308
2020-04-11 18:49:03 +00:00
00c11da70c 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: Ife0ff8804f857c01387833fdb6c8f66c32e5a426
Sem-Ver: feature
2020-04-11 18:49:00 +00:00
Andreas Jaeger
218d0c5234 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

Change-Id: I266b56f998f092d14d6ccbec1365dc42568ffdd5
ussuri-em 4.0.1
2020-04-04 17:21:22 +02:00
Q.hongtao
102acafefe Fix requirements
Change-Id: Iadaf460c1d6068a106cd1c292c47205af3f71dab
4.0.0
2020-01-14 09:22:29 +00:00
Eyal
715b7c2683 Update hacking and fix warning
Change-Id: I10a988cccda87c6948fbc44169da13da9ecdbbb5
2020-01-07 15:17:09 +02:00
Ghanshyam Mann
b6d3d31674 Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

pythn-vitrageclient 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: I6f4cc04134130a3fa36bb65492b01dff63f94e32
2019-12-13 23:44:06 +00:00
kangyufei
c0d22e5021 Switch to Ussuri jobs
Change-Id: Icefffaa499493d1f982353b711f06fd175131860
2019-10-22 15:13:38 +08:00
pengyuesheng
6811e1fb78 Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I1ffce2030e3f8e5df036a82fecfbc59dc9e10a41
2019-09-23 16:54:43 +08:00
dc7a50287f 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: Ia3ab800ab8ac0d5d3d7e27d8993ab6d6b3824be6
Sem-Ver: feature
2019-09-20 17:44:03 +00:00
Corey Bryant
e50c885f67 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: I465654f6cc71acf19bfcf284949f05d8b021cc7d
Story: #2005924
Task: #34255
train-em 3.0.0
2019-07-05 16:43:52 -04:00
Zuul
bf8763fc30 Merge "Add Python 3 Train unit tests" 2019-07-04 12:39:21 +00:00
pengyuesheng
543a91b476 Blacklist sphinx 2.1.0 (autodoc bug)
See https://github.com/sphinx-doc/sphinx/issues/6440 for upstream details
Depend-On: https://review.opendev.org/#/c/663060/

Change-Id: I305b4704e581edb33f193494819be85bb6dabb28
2019-07-04 10:35:47 +08:00
pengyuesheng
67bf5214e5 Add Python 3 Train unit tests
See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: Ib80a4499eeff18d2d414fe6f6f0f45034b6eb657
2019-07-04 10:32:55 +08:00
Eyal
ba5f71fecc Add new api vitrage status
To Check if vitrage is ready then you can check its
status some users don't want to check on every api call
if vitrage is ready, in that case you can check ad hoc

Change-Id: I0817016538a6b286816b99176339262c6453dc08
2019-07-01 13:10:03 +03:00
Eyal
4b4bf371cf Template show in cli should be by default in yaml
Templates are written as yaml so why not show them
in the cli by default as yaml. User can still see it
in json using the flag -f json

Change-Id: I17c5b26b8ef2a0ae02886dbf703c29434ad89781
2019-06-13 16:15:53 +03:00
Eyal
97fbcff27b fixed help message for add and delete
Change-Id: I698c6b7587f4b488f7478846e7f28f431cf783e6
2019-06-13 08:21:26 +03:00
Zuul
74707888e1 Merge "Add option to overwrite when adding template" 2019-06-12 07:35:13 +00:00
Zuul
21654607d6 Merge "Add release notes for the wait flag" 2019-06-11 09:24:28 +00:00
Eyal
367712d6da Add release notes for the wait flag
Doc was updated too

Change-Id: I94c06df504329ec801308a3b3bc5075ccee4b8c3
2019-06-11 09:54:49 +03:00
Eyal
0d93ef1d78 Add new api to list template versions supported
Will print also the status which can be CURRENT, SUPPORTED
or DEPRECATED

Change-Id: I6c7aa8ee92136b8cea9eb4e431f86381dc79206a
2019-06-10 15:14:18 +03:00
Eyal
aac0531341 Add option to overwrite when adding template
Add --overwrite to the cli as an option
and a parameter to the api

Change-Id: I3a1aad94a87c80a95e5867c24e491e4987029982
2019-06-10 08:36:16 +00:00
Eyal
cc07041fc4 Add option to wait for add and delete template
Add --wait to the cli as an option

Change-Id: I1980dba674e2baee4877f465a9faaffd9feb86cb
2019-06-05 13:45:39 +03:00
Eyal
a4bcd82eb9 Support using name in show and delete templates
Vitrage can show and delete templates by name
So remove the constraints on using only uuid
in CLI for deleting templates

renamed the parameters also to be more clear

Change-Id: Iaf68f994bdceee4a01ca445bde935ca42077f541
2019-05-27 10:28:56 +03:00
Hervé Beraud
df8023553e Constraint networkx to <2.3 for Python 2
NetworkX released 2.3, dropping support for Python 2.

 https://github.com/networkx/networkx/blob/master/doc/news.rst

 Also see I0a9700926c9a0db93e782c853c33f1aaee3d4876

Change-Id: I53d03b5ed982baa053d4ce182d7b3abda1b1ec9e
2019-05-21 06:52:22 +00:00
jacky06
c8ce0bcf2e Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I08e0fe10af872af6f9d34c63bb0797a9224057d0
2019-04-30 13:21:45 +08:00
OpenDev Sysadmins
ea4abc5182 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:43:50 +00:00
Eyal
7ca6c8406a Support python 3.6 and 3.7
According to 'Tested Runtimes for Train' [1] we need to support
Python 2.7, Python 3.7 and Python 3.6 runtimes.

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

Change-Id: I41aff6a8dc52d4038431ce7566ff8177e25cea6b
2019-04-16 12:20:50 +03:00
Ghanshyam Mann
d29eb4b278 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: I08dd390fee518403d04cfa149ab9c3c9517c93ab
2019-04-15 01:52:44 +00:00
75cd8ddfdd 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: I1f4293ee0bd57fad0e936fc3dceb64aa35444f59
Sem-Ver: feature
2019-03-18 15:39:37 +00:00