Hello community,
here is the log from the commit of package python-magnumclient for
openSUSE:Factory checked in at 2020-08-10 15:05:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-magnumclient (Old)
and /work/SRC/openSUSE:Factory/.python-magnumclient.new.3399 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-magnumclient"
Mon Aug 10 15:05:50 2020 rev:10 rq:825321 version:3.0.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-magnumclient/python-magnumclient.changes
2020-06-05 20:14:03.798505562 +0200
+++
/work/SRC/openSUSE:Factory/.python-magnumclient.new.3399/python-magnumclient.changes
2020-08-10 15:06:11.624260105 +0200
@@ -1,0 +2,9 @@
+Mon Aug 10 10:19:57 UTC 2020 - [email protected]
+
+- update to version 3.0.1
+ - Rename variables to address pep8 error
+ - Update TOX/UPPER_CONSTRAINTS_FILE for stable/ussuri
+ - Labels override
+ - Update .gitreview for stable/ussuri
+
+-------------------------------------------------------------------
Old:
----
python-magnumclient-3.0.0.tar.gz
New:
----
python-magnumclient-3.0.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-magnumclient.spec ++++++
--- /var/tmp/diff_new_pack.LC7JYi/_old 2020-08-10 15:06:13.392261039 +0200
+++ /var/tmp/diff_new_pack.LC7JYi/_new 2020-08-10 15:06:13.396261041 +0200
@@ -17,13 +17,13 @@
Name: python-magnumclient
-Version: 3.0.0
+Version: 3.0.1
Release: 0
Summary: Python API and CLI for OpenStack Magnum
License: Apache-2.0
Group: Development/Languages/Python
URL: https://launchpad.net/python-magnumclient
-Source0:
https://files.pythonhosted.org/packages/source/p/python-magnumclient/python-magnumclient-3.0.0.tar.gz
+Source0:
https://files.pythonhosted.org/packages/source/p/python-magnumclient/python-magnumclient-3.0.1.tar.gz
BuildRequires: openstack-macros
BuildRequires: python3-PrettyTable >= 0.7.2
BuildRequires: python3-cryptography >= 2.1
@@ -91,15 +91,15 @@
This package contains the documentation.
%prep
-%autosetup -p1 -n python-magnumclient-3.0.0
+%autosetup -p1 -n python-magnumclient-3.0.1
%py_req_cleanup
%build
%{py3_build}
# Build HTML docs and man page
-PBR_VERSION=3.0.0 %sphinx_build -b html doc/source doc/build/html
-PBR_VERSION=3.0.0 %sphinx_build -b man doc/source doc/build/man
+PBR_VERSION=3.0.1 %sphinx_build -b html doc/source doc/build/html
+PBR_VERSION=3.0.1 %sphinx_build -b man doc/source doc/build/man
rm -r doc/build/html/.{doctrees,buildinfo}
%install
++++++ python-magnumclient-3.0.0.tar.gz -> python-magnumclient-3.0.1.tar.gz
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-magnumclient-3.0.0/AUTHORS
new/python-magnumclient-3.0.1/AUTHORS
--- old/python-magnumclient-3.0.0/AUTHORS 2020-04-08 02:54:55.000000000
+0200
+++ new/python-magnumclient-3.0.1/AUTHORS 2020-07-01 12:14:33.000000000
+0200
@@ -9,6 +9,7 @@
Andrew Melton <[email protected]>
Anh Tran <[email protected]>
Bharat Kunwar <[email protected]>
+Bharat Kunwar <[email protected]>
Bharath Thiruveedula <[email protected]>
Boris Pilka <[email protected]>
Cedric Brandily <[email protected]>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-magnumclient-3.0.0/ChangeLog
new/python-magnumclient-3.0.1/ChangeLog
--- old/python-magnumclient-3.0.0/ChangeLog 2020-04-08 02:54:55.000000000
+0200
+++ new/python-magnumclient-3.0.1/ChangeLog 2020-07-01 12:14:33.000000000
+0200
@@ -1,6 +1,14 @@
CHANGES
=======
+3.0.1
+-----
+
+* Labels override
+* Rename variables to address pep8 error
+* Update TOX/UPPER\_CONSTRAINTS\_FILE for stable/ussuri
+* Update .gitreview for stable/ussuri
+
3.0.0
-----
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-magnumclient-3.0.0/PKG-INFO
new/python-magnumclient-3.0.1/PKG-INFO
--- old/python-magnumclient-3.0.0/PKG-INFO 2020-04-08 02:54:55.000000000
+0200
+++ new/python-magnumclient-3.0.1/PKG-INFO 2020-07-01 12:14:33.000000000
+0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: python-magnumclient
-Version: 3.0.0
+Version: 3.0.1
Summary: Client library for Magnum API
Home-page: https://docs.openstack.org/python-magnumclient/latest/
Author: OpenStack
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-magnumclient-3.0.0/magnumclient/common/cliutils.py
new/python-magnumclient-3.0.1/magnumclient/common/cliutils.py
--- old/python-magnumclient-3.0.0/magnumclient/common/cliutils.py
2020-04-08 02:53:47.000000000 +0200
+++ new/python-magnumclient-3.0.1/magnumclient/common/cliutils.py
2020-07-01 12:13:08.000000000 +0200
@@ -404,8 +404,8 @@
return getattr(f, 'service_type', None)
-def pretty_choice_list(l):
- return ', '.join("'%s'" % i for i in l)
+def pretty_choice_list(lst):
+ return ', '.join("'%s'" % i for i in lst)
def exit(msg=''):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-magnumclient-3.0.0/magnumclient/common/utils.py
new/python-magnumclient-3.0.1/magnumclient/common/utils.py
--- old/python-magnumclient-3.0.0/magnumclient/common/utils.py 2020-04-08
02:53:47.000000000 +0200
+++ new/python-magnumclient-3.0.1/magnumclient/common/utils.py 2020-07-01
12:13:08.000000000 +0200
@@ -118,12 +118,12 @@
lbls = lbls[0].replace(';', ',').split(',')
labels = {}
- for l in lbls:
+ for lbl in lbls:
try:
- (k, v) = l.split(('='), 1)
+ (k, v) = lbl.split(('='), 1)
except ValueError:
raise exc.CommandError(_('labels must be a list of KEY=VALUE '
- 'not %s') % l)
+ 'not %s') % lbl)
if k not in labels:
labels[k] = v
else:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-magnumclient-3.0.0/magnumclient/osc/v1/clusters.py
new/python-magnumclient-3.0.1/magnumclient/osc/v1/clusters.py
--- old/python-magnumclient-3.0.0/magnumclient/osc/v1/clusters.py
2020-04-08 02:53:47.000000000 +0200
+++ new/python-magnumclient-3.0.1/magnumclient/osc/v1/clusters.py
2020-07-01 12:13:08.000000000 +0200
@@ -34,6 +34,9 @@
'updated_at',
'coe_version',
'labels',
+ 'labels_overridden',
+ 'labels_skipped',
+ 'labels_added',
'faults',
'keypair',
'api_address',
@@ -47,7 +50,7 @@
'master_flavor_id',
'flavor_id',
'health_status_reason',
- 'project_id'
+ 'project_id',
]
@@ -141,6 +144,13 @@
action='append_const',
const=False,
help=_('Disables floating ip creation on the new Cluster'))
+ parser.add_argument(
+ '--merge-labels',
+ dest='merge_labels',
+ action='store_true',
+ default=False,
+ help=_('The labels provided will be merged with the labels '
+ 'configured in the specified cluster template.'))
return parser
@@ -185,6 +195,11 @@
if parsed_args.fixed_subnet is not None:
args["fixed_subnet"] = parsed_args.fixed_subnet
+ if parsed_args.merge_labels:
+ # We are only sending this if it's True. This
+ # way we avoid breaking older APIs.
+ args["merge_labels"] = parsed_args.merge_labels
+
cluster = mag_client.clusters.create(**args)
print("Request to create cluster %s accepted"
% cluster.uuid)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-magnumclient-3.0.0/magnumclient/osc/v1/nodegroups.py
new/python-magnumclient-3.0.1/magnumclient/osc/v1/nodegroups.py
--- old/python-magnumclient-3.0.0/magnumclient/osc/v1/nodegroups.py
2020-04-08 02:53:47.000000000 +0200
+++ new/python-magnumclient-3.0.1/magnumclient/osc/v1/nodegroups.py
2020-07-01 12:13:08.000000000 +0200
@@ -27,6 +27,9 @@
'project_id',
'docker_volume_size',
'labels',
+ 'labels_overridden',
+ 'labels_skipped',
+ 'labels_added',
'flavor_id',
'image_id',
'node_addresses',
@@ -37,7 +40,7 @@
'is_default',
'stack_id',
'status',
- 'status_reason'
+ 'status_reason',
]
@@ -100,6 +103,13 @@
metavar='<flavor>',
help=_('The nova flavor name or UUID to use when launching the '
'nodes in this NodeGroup.'))
+ parser.add_argument(
+ '--merge-labels',
+ dest='merge_labels',
+ action='store_true',
+ default=False,
+ help=_('The labels provided will be merged with the labels '
+ 'configured in the specified cluster.'))
return parser
@@ -127,6 +137,11 @@
if parsed_args.image is not None:
args['image_id'] = parsed_args.image
+ if parsed_args.merge_labels:
+ # We are only sending this if it's True. This
+ # way we avoid breaking older APIs.
+ args["merge_labels"] = parsed_args.merge_labels
+
cluster_id = parsed_args.cluster
nodegroup = mag_client.nodegroups.create(cluster_id, **args)
print("Request to create nodegroup %s accepted"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-magnumclient-3.0.0/magnumclient/tests/osc/unit/v1/fakes.py
new/python-magnumclient-3.0.1/magnumclient/tests/osc/unit/v1/fakes.py
--- old/python-magnumclient-3.0.0/magnumclient/tests/osc/unit/v1/fakes.py
2020-04-08 02:53:47.000000000 +0200
+++ new/python-magnumclient-3.0.1/magnumclient/tests/osc/unit/v1/fakes.py
2020-07-01 12:13:08.000000000 +0200
@@ -237,6 +237,9 @@
'stack_id': 'c4554582-77bd-4734-8f1a-72c3c40e5fb4',
'status_reason': None,
'labels': {},
+ 'labels_overridden': {},
+ 'labels_added': {},
+ 'labels_skipped': {},
'created_at': '2017-03-16T18:40:39+00:00',
'updated_at': '2017-03-16T18:40:45+00:00',
'coe_version': None,
@@ -324,6 +327,9 @@
'docker_volume_size': None,
'node_addresses': [],
'labels': {},
+ 'labels_overridden': {},
+ 'labels_added': {},
+ 'labels_skipped': {},
'node_count': 1,
'name': 'fake-nodegroup',
'flavor_id': 'm1.medium',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-magnumclient-3.0.0/magnumclient/v1/clusters.py
new/python-magnumclient-3.0.1/magnumclient/v1/clusters.py
--- old/python-magnumclient-3.0.0/magnumclient/v1/clusters.py 2020-04-08
02:53:47.000000000 +0200
+++ new/python-magnumclient-3.0.1/magnumclient/v1/clusters.py 2020-07-01
12:13:08.000000000 +0200
@@ -26,6 +26,7 @@
CREATION_ATTRIBUTES.append('fixed_network')
CREATION_ATTRIBUTES.append('fixed_subnet')
CREATION_ATTRIBUTES.append('floating_ip_enabled')
+CREATION_ATTRIBUTES.append('merge_labels')
class Cluster(baseunit.BaseTemplate):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-magnumclient-3.0.0/magnumclient/v1/nodegroups.py
new/python-magnumclient-3.0.1/magnumclient/v1/nodegroups.py
--- old/python-magnumclient-3.0.0/magnumclient/v1/nodegroups.py 2020-04-08
02:53:47.000000000 +0200
+++ new/python-magnumclient-3.0.1/magnumclient/v1/nodegroups.py 2020-07-01
12:13:08.000000000 +0200
@@ -20,7 +20,7 @@
CREATION_ATTRIBUTES = ['docker_volume_size', 'labels', 'flavor_id', 'image_id',
'project_id', 'node_count', 'name', 'role',
- 'min_node_count', 'max_node_count']
+ 'min_node_count', 'max_node_count', 'merge_labels']
class NodeGroup(baseunit.BaseTemplate):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-magnumclient-3.0.0/python_magnumclient.egg-info/PKG-INFO
new/python-magnumclient-3.0.1/python_magnumclient.egg-info/PKG-INFO
--- old/python-magnumclient-3.0.0/python_magnumclient.egg-info/PKG-INFO
2020-04-08 02:54:55.000000000 +0200
+++ new/python-magnumclient-3.0.1/python_magnumclient.egg-info/PKG-INFO
2020-07-01 12:14:33.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: python-magnumclient
-Version: 3.0.0
+Version: 3.0.1
Summary: Client library for Magnum API
Home-page: https://docs.openstack.org/python-magnumclient/latest/
Author: OpenStack
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-magnumclient-3.0.0/python_magnumclient.egg-info/pbr.json
new/python-magnumclient-3.0.1/python_magnumclient.egg-info/pbr.json
--- old/python-magnumclient-3.0.0/python_magnumclient.egg-info/pbr.json
2020-04-08 02:54:55.000000000 +0200
+++ new/python-magnumclient-3.0.1/python_magnumclient.egg-info/pbr.json
2020-07-01 12:14:33.000000000 +0200
@@ -1 +1 @@
-{"git_version": "11d2b72", "is_release": true}
\ No newline at end of file
+{"git_version": "6d1a386", "is_release": true}
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-magnumclient-3.0.0/python_magnumclient.egg-info/requires.txt
new/python-magnumclient-3.0.1/python_magnumclient.egg-info/requires.txt
--- old/python-magnumclient-3.0.0/python_magnumclient.egg-info/requires.txt
2020-04-08 02:54:55.000000000 +0200
+++ new/python-magnumclient-3.0.1/python_magnumclient.egg-info/requires.txt
2020-07-01 12:14:33.000000000 +0200
@@ -1,15 +1,15 @@
-pbr!=2.1.0,>=2.0.0
Babel!=2.4.0,>=2.3.4
-six>=1.10.0
+PrettyTable<0.8,>=0.7.2
+cryptography>=2.1
+decorator>=3.4.0
keystoneauth1>=3.4.0
-stevedore>=1.20.0
-requests>=2.14.2
+os-client-config>=1.28.0
+osc-lib>=1.8.0
oslo.i18n>=3.15.3
oslo.log>=3.36.0
oslo.serialization!=2.19.1,>=2.18.0
oslo.utils>=3.33.0
-os-client-config>=1.28.0
-osc-lib>=1.8.0
-PrettyTable<0.8,>=0.7.2
-cryptography>=2.1
-decorator>=3.4.0
+pbr!=2.1.0,>=2.0.0
+requests>=2.14.2
+six>=1.10.0
+stevedore>=1.20.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-magnumclient-3.0.0/tox.ini
new/python-magnumclient-3.0.1/tox.ini
--- old/python-magnumclient-3.0.0/tox.ini 2020-04-08 02:53:47.000000000
+0200
+++ new/python-magnumclient-3.0.1/tox.ini 2020-07-01 12:13:08.000000000
+0200
@@ -11,7 +11,7 @@
VIRTUAL_ENV={envdir}
PYTHONWARNINGS=default::DeprecationWarning
deps =
-
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
+
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/ussuri}
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
@@ -21,14 +21,14 @@
[testenv:bandit]
basepython = python3
deps =
-
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
+
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/ussuri}
-r{toxinidir}/test-requirements.txt
commands = bandit -r magnumclient -x tests -n5 -ll
[testenv:pypy]
basepython = python3
deps =
-
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
+
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/ussuri}
setuptools<3.2
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt