From 39f9c57334451a6f5735ec13c0aab5565481e5ba243d9ac9e8049fe284f3ddd2 Mon Sep 17 00:00:00 2001 From: Robert Schweikert Date: Mon, 15 Apr 2019 13:02:47 +0000 Subject: [PATCH] Accepting request 694298 from home:glaubitz:branches:devel:languages:python:azure3 - Update Python Azure SDK to latest version OBS-URL: https://build.opensuse.org/request/show/694298 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:azure/python-azure-mgmt-iothub?expand=0&rev=4 --- ami_drop-compatible-releases-operator.patch | 12 ++++++------ ami_drop-extras-require.patch | 11 +++++++++++ azure-mgmt-iothub-0.6.0.zip | 3 --- azure-mgmt-iothub-0.7.0.zip | 3 +++ python-azure-mgmt-iothub.changes | 20 ++++++++++++++++++++ python-azure-mgmt-iothub.spec | 19 +++++++++++-------- 6 files changed, 51 insertions(+), 17 deletions(-) create mode 100644 ami_drop-extras-require.patch delete mode 100644 azure-mgmt-iothub-0.6.0.zip create mode 100644 azure-mgmt-iothub-0.7.0.zip diff --git a/ami_drop-compatible-releases-operator.patch b/ami_drop-compatible-releases-operator.patch index f5811b2..9dab7a5 100644 --- a/ami_drop-compatible-releases-operator.patch +++ b/ami_drop-compatible-releases-operator.patch @@ -1,12 +1,12 @@ -diff -Nru azure-mgmt-iothub-0.6.0.orig/setup.py azure-mgmt-iothub-0.6.0/setup.py ---- azure-mgmt-iothub-0.6.0.orig/setup.py 2018-08-27 22:09:50.000000000 +0200 -+++ azure-mgmt-iothub-0.6.0/setup.py 2018-09-06 15:59:25.071868961 +0200 -@@ -80,7 +80,7 @@ +diff -Nru azure-mgmt-iothub-0.7.0.orig/setup.py azure-mgmt-iothub-0.7.0/setup.py +--- azure-mgmt-iothub-0.7.0.orig/setup.py 2018-12-14 22:29:40.000000000 +0100 ++++ azure-mgmt-iothub-0.7.0/setup.py 2019-03-27 15:17:34.025585016 +0100 +@@ -79,7 +79,7 @@ install_requires=[ 'msrest>=0.5.0', 'msrestazure>=0.4.32,<2.0.0', - 'azure-common~=1.1', + 'azure-common>=1.1', ], - cmdclass=cmdclass - ) + extras_require={ + ":python_version<'3.0'": ['azure-mgmt-nspkg'], diff --git a/ami_drop-extras-require.patch b/ami_drop-extras-require.patch new file mode 100644 index 0000000..8c90eca --- /dev/null +++ b/ami_drop-extras-require.patch @@ -0,0 +1,11 @@ +diff -Nru azure-mgmt-iothub-0.7.0.orig/setup.py azure-mgmt-iothub-0.7.0/setup.py +--- azure-mgmt-iothub-0.7.0.orig/setup.py 2019-03-27 15:17:58.921837774 +0100 ++++ azure-mgmt-iothub-0.7.0/setup.py 2019-03-27 15:18:09.949949693 +0100 +@@ -81,7 +81,4 @@ + 'msrestazure>=0.4.32,<2.0.0', + 'azure-common>=1.1', + ], +- extras_require={ +- ":python_version<'3.0'": ['azure-mgmt-nspkg'], +- } + ) diff --git a/azure-mgmt-iothub-0.6.0.zip b/azure-mgmt-iothub-0.6.0.zip deleted file mode 100644 index 7b26f13..0000000 --- a/azure-mgmt-iothub-0.6.0.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a95b20466572f331f884d3e8cd5f159b3924b9ffd9069439b3afcfe6ad388434 -size 136991 diff --git a/azure-mgmt-iothub-0.7.0.zip b/azure-mgmt-iothub-0.7.0.zip new file mode 100644 index 0000000..69b64aa --- /dev/null +++ b/azure-mgmt-iothub-0.7.0.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a0055fa6ec7a8d6dc9458605878d04d229f57f248096e54bc82dbe4c16d17634 +size 140713 diff --git a/python-azure-mgmt-iothub.changes b/python-azure-mgmt-iothub.changes index 52b732b..c6db7b0 100644 --- a/python-azure-mgmt-iothub.changes +++ b/python-azure-mgmt-iothub.changes @@ -1,3 +1,23 @@ +------------------------------------------------------------------- +Fri Apr 12 12:07:37 UTC 2019 - John Paul Adrian Glaubitz + +- New upstream release + + Version 0.7.0 + + For detailed information about changes see the + HISTORY.txt file provided with this package +- Add patch to drop extras_require field from setup.py, + required for SLES12 as the setuptools version is too old + + ami_drop-extras-require.patch +- Bump minimum version for namespace packages + to 3.0.0 in BuildRequires and Requires +- Remove python-devel package from BuildRequires +- Refresh patches for new version + + ami_drop-compatible-releases-operator.patch +- Run fdupes to hardlink duplicate files + + Add fdupes to BuildRequires + + Add %fdupes invocation to %install +- Update BuildRequires and Requires from setup.py + ------------------------------------------------------------------- Thu Sep 6 14:01:48 UTC 2018 - John Paul Adrian Glaubitz diff --git a/python-azure-mgmt-iothub.spec b/python-azure-mgmt-iothub.spec index e060df6..3594e23 100644 --- a/python-azure-mgmt-iothub.spec +++ b/python-azure-mgmt-iothub.spec @@ -1,7 +1,7 @@ # # spec file for package python-azure-mgmt-iothub # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,13 +12,13 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-azure-mgmt-iothub -Version: 0.6.0 +Version: 0.7.0 Release: 0 Summary: Microsoft Azure IoTHub Management Client Library License: MIT @@ -27,16 +27,17 @@ Url: https://github.com/Azure/azure-sdk-for-python Source: https://files.pythonhosted.org/packages/source/a/azure-mgmt-iothub/azure-mgmt-iothub-%{version}.zip Source1: LICENSE.txt Patch1: ami_drop-compatible-releases-operator.patch -BuildRequires: %{python_module azure-mgmt-nspkg} -BuildRequires: %{python_module azure-nspkg} -BuildRequires: %{python_module devel} +Patch2: ami_drop-extras-require.patch +BuildRequires: %{python_module azure-mgmt-nspkg >= 3.0.0} +BuildRequires: %{python_module azure-nspkg >= 3.0.0} BuildRequires: %{python_module setuptools} +BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: unzip Requires: python-azure-common < 2.0.0 Requires: python-azure-common >= 1.1 -Requires: python-azure-mgmt-nspkg -Requires: python-azure-nspkg +Requires: python-azure-mgmt-nspkg >= 3.0.0 +Requires: python-azure-nspkg >= 3.0.0 Requires: python-msrest >= 0.5.0 Requires: python-msrestazure < 2.0.0 Requires: python-msrestazure >= 0.4.32 @@ -57,6 +58,7 @@ This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7. %prep %setup -q -n azure-mgmt-iothub-%{version} %patch1 -p1 +%patch2 -p1 %build install -m 644 %{SOURCE1} %{_builddir}/azure-mgmt-iothub-%{version} @@ -64,6 +66,7 @@ install -m 644 %{SOURCE1} %{_builddir}/azure-mgmt-iothub-%{version} %install %python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} %{python_expand # delete common files rm -rf %{buildroot}%{$python_sitelib}/azure/mgmt/__init__.* rm -rf %{buildroot}%{$python_sitelib}/azure/mgmt/__pycache__