Hello community, here is the log from the commit of package python-ravello-sdk for openSUSE:Factory checked in at 2018-01-10 23:30:05 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-ravello-sdk (Old) and /work/SRC/openSUSE:Factory/.python-ravello-sdk.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-ravello-sdk" Wed Jan 10 23:30:05 2018 rev:5 rq:541756 version:2.7 Changes: -------- --- /work/SRC/openSUSE:Factory/python-ravello-sdk/python-ravello-sdk.changes 2017-09-28 12:35:56.954796916 +0200 +++ /work/SRC/openSUSE:Factory/.python-ravello-sdk.new/python-ravello-sdk.changes 2018-01-10 23:30:08.670167936 +0100 @@ -1,0 +2,15 @@ +Mon Nov 13 16:08:23 UTC 2017 - sean.mar...@suse.com + +- Update to v2.7 2017-11-12 (bsc#1067900) + + Fix setup.py. +- Update to v2.6 2017-10-09 + + Only use url.decode if needed. +- Update to v2.5 2017-07-09 + + Remove depracated invite user call. + +------------------------------------------------------------------- +Wed Nov 8 19:41:55 UTC 2017 - sean.mar...@suse.com + +- Fix check to run tests on Python2 and 3. + +------------------------------------------------------------------- Old: ---- ravello-sdk-2.4.tar.gz New: ---- ravello-sdk-2.7.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-ravello-sdk.spec ++++++ --- /var/tmp/diff_new_pack.LA0hIB/_old 2018-01-10 23:30:09.566125886 +0100 +++ /var/tmp/diff_new_pack.LA0hIB/_new 2018-01-10 23:30:09.570125698 +0100 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-ravello-sdk -Version: 2.4 +Version: 2.7 Release: 0 Summary: Python SDK for the Ravello API License: Apache-2.0 @@ -52,7 +52,7 @@ %python_install %check -python tests/unit.py +%python_exec tests/unit.py %files %{python_files} %defattr(-,root,root,-) ++++++ ravello-sdk-2.4.tar.gz -> ravello-sdk-2.7.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ravello-sdk-2.4/PKG-INFO new/ravello-sdk-2.7/PKG-INFO --- old/ravello-sdk-2.4/PKG-INFO 2017-06-19 08:02:46.000000000 +0200 +++ new/ravello-sdk-2.7/PKG-INFO 2017-11-12 16:04:06.000000000 +0100 @@ -1,11 +1,12 @@ Metadata-Version: 1.1 Name: ravello-sdk -Version: 2.4 +Version: 2.7 Summary: Python SDK for the Ravello API Home-page: https://github.com/ravello/python-sdk Author: Hadar Davidovich Author-email: hadar.davidov...@oracle.com License: Apache 2.0 +Description-Content-Type: UNKNOWN Description: UNKNOWN Platform: UNKNOWN Classifier: Development Status :: 5 - Production/Stable diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ravello-sdk-2.4/lib/ravello_sdk.egg-info/PKG-INFO new/ravello-sdk-2.7/lib/ravello_sdk.egg-info/PKG-INFO --- old/ravello-sdk-2.4/lib/ravello_sdk.egg-info/PKG-INFO 2017-06-19 08:02:46.000000000 +0200 +++ new/ravello-sdk-2.7/lib/ravello_sdk.egg-info/PKG-INFO 2017-11-12 16:04:06.000000000 +0100 @@ -1,11 +1,12 @@ Metadata-Version: 1.1 Name: ravello-sdk -Version: 2.4 +Version: 2.7 Summary: Python SDK for the Ravello API Home-page: https://github.com/ravello/python-sdk Author: Hadar Davidovich Author-email: hadar.davidov...@oracle.com License: Apache 2.0 +Description-Content-Type: UNKNOWN Description: UNKNOWN Platform: UNKNOWN Classifier: Development Status :: 5 - Production/Stable diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ravello-sdk-2.4/lib/ravello_sdk.py new/ravello-sdk-2.7/lib/ravello_sdk.py --- old/ravello-sdk-2.4/lib/ravello_sdk.py 2017-06-19 08:02:46.000000000 +0200 +++ new/ravello-sdk-2.7/lib/ravello_sdk.py 2017-11-12 15:38:40.000000000 +0100 @@ -707,7 +707,9 @@ headers = [('Accept', 'text/plain')] url = self.request('GET', '/applications/{0}/vms/{1}/vncUrl'.format(app, vm), headers=headers) - return url.decode('iso-8859-1') + if hasattr(url, "decode"): + return url.decode('iso-8859-1') + return url def get_detailed_charges_for_application(self, app, mode = 'deployment', deployment_options = {}): """Get the detailed hourly charges for an application. @@ -952,15 +954,14 @@ users = _match_filter(users, filter) return users - def create_user(self, user): - """Invite a new user to organization. + def invite_user(self, user): + """Invite a new user. The *user* parameter must be a dict describing the user to invite. The new user is returned. """ - org = self.get_organization()['id'] - return self.request('POST', '/organizations/{0}/users'.format(org), user) + return self.request('POST', '/users/invite', user) def update_user(self, user, userId): """Update an existing user. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ravello-sdk-2.4/setup.cfg new/ravello-sdk-2.7/setup.cfg --- old/ravello-sdk-2.4/setup.cfg 2017-06-19 08:02:46.000000000 +0200 +++ new/ravello-sdk-2.7/setup.cfg 2017-11-12 16:04:06.000000000 +0100 @@ -5,5 +5,4 @@ [egg_info] tag_build = tag_date = 0 -tag_svn_revision = 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ravello-sdk-2.4/setup.py new/ravello-sdk-2.7/setup.py --- old/ravello-sdk-2.4/setup.py 2017-06-19 08:02:46.000000000 +0200 +++ new/ravello-sdk-2.7/setup.py 2017-11-12 15:38:40.000000000 +0100 @@ -19,9 +19,10 @@ import os from setuptools import setup + version_info = { 'name': 'ravello-sdk', - 'version': '2.4', + 'version': '2.7', 'description': 'Python SDK for the Ravello API', 'author': 'Geert Jansen', 'maintainer': 'Hadar Davidovich', @@ -41,11 +42,18 @@ ] } - if __name__ == '__main__': setup( package_dir={'': 'lib'}, py_modules=['ravello_sdk', 'ravello_cli'], install_requires=['six', 'docopt', 'requests>=2.6.0'], - **version_info + name= version_info['name'], + version= version_info['version'], + description= version_info['description'], + author= version_info['author'], + maintainer= version_info['maintainer'], + maintainer_email= version_info['maintainer_email'], + url= version_info['url'], + license= version_info['license'], + classifiers= version_info['classifiers'] )