Hello community, here is the log from the commit of package python-adal for openSUSE:Factory checked in at 2017-07-19 11:20:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-adal (Old) and /work/SRC/openSUSE:Factory/.python-adal.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-adal" Wed Jul 19 11:20:46 2017 rev:2 rq:509676 version:0.4.5 Changes: -------- --- /work/SRC/openSUSE:Factory/python-adal/python-adal.changes 2017-02-03 18:57:06.675950293 +0100 +++ /work/SRC/openSUSE:Factory/.python-adal.new/python-adal.changes 2017-07-19 12:21:46.121927604 +0200 @@ -1,0 +2,16 @@ +Tue Jul 11 08:02:20 UTC 2017 - [email protected] + +- Update package names in Requires + + Rename python-dateutil to python-python-dateutil + +------------------------------------------------------------------- +Mon Jul 10 13:19:29 UTC 2017 - [email protected] + +- New upstream release + + Version 0.4.5 +- Provide full source URL in Source field +- Convert package to single spec +- Add patch from upstream to enforce UTF-8 decoding + + 0001-Forcing-utf8-decoding.patch + +------------------------------------------------------------------- Old: ---- adal-0.4.3.tar.gz New: ---- 0001-Forcing-utf8-decoding.patch adal-0.4.5.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-adal.spec ++++++ --- /var/tmp/diff_new_pack.qz90su/_old 2017-07-19 12:21:46.749838998 +0200 +++ /var/tmp/diff_new_pack.qz90su/_new 2017-07-19 12:21:46.753838434 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-adal # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 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 @@ -14,40 +14,48 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-adal -Version: 0.4.3 +Version: 0.4.5 Release: 0 Summary: Azure Active Directory library License: MIT Group: Development/Languages/Python Url: https://pypi.python.org/pypi/adal -Source: adal-%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/a/adal/adal-%{version}.tar.gz +Patch1: 0001-Forcing-utf8-decoding.patch +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} BuildRequires: fdupes -BuildRequires: python-devel -BuildRequires: python-setuptools +BuildRequires: python-rpm-macros Requires: python-PyJWT >= 1.0.0 -Requires: python-requests >= 2.7.0 -Requires: python-dateutil >= 2.1.0 Requires: python-cryptography >= 1.1.0 +Requires: python-python-dateutil >= 2.1.0 +Requires: python-requests >= 2.7.0 BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch +%python_subpackages + %description The ADAL for Python library makes it easy for python application to authenticate to Azure Active Directory (AAD) in order to access AAD protected web resources. %prep %setup -q -n adal-%{version} +%patch1 -p1 %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install %fdupes %{buildroot}/%{python_sitelib}/* -%files +%files %{python_files} %defattr(-,root,root,-) %{python_sitelib}/* ++++++ 0001-Forcing-utf8-decoding.patch ++++++ >From 72341d1e3fc2b02504c42234434a894b9a916483 Mon Sep 17 00:00:00 2001 From: Ray Luo <[email protected]> Date: Fri, 2 Jun 2017 12:51:02 -0700 Subject: [PATCH] Forcing utf8 decoding Otherwise some locale uses default ascii decoding and can not handle BOM. --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -Nru adal-0.4.5.orig/setup.py adal-0.4.5/setup.py --- adal-0.4.5.orig/setup.py 2017-02-27 23:02:17.000000000 +0100 +++ adal-0.4.5/setup.py 2017-07-10 15:07:25.697577653 +0200 @@ -27,12 +27,12 @@ #------------------------------------------------------------------------------ from setuptools import setup -import re +import re, io # setup.py shall not import adal __version__ = re.search( r'__version__\s*=\s*[\'"]([^\'"]*)[\'"]', # It excludes inline comment too - open('adal/__init__.py').read()).group(1) + io.open('adal/__init__.py', encoding='utf8').read()).group(1) # To build: # python setup.py sdist ++++++ adal-0.4.3.tar.gz -> adal-0.4.5.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/adal-0.4.3/PKG-INFO new/adal-0.4.5/PKG-INFO --- old/adal-0.4.3/PKG-INFO 2016-11-19 00:13:18.000000000 +0100 +++ new/adal-0.4.5/PKG-INFO 2017-02-27 23:06:35.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: adal -Version: 0.4.3 +Version: 0.4.5 Summary: The ADAL for Python library makes it easy for python application to authenticate to Azure Active Directory (AAD) in order to access AAD protected web resources. Home-page: https://github.com/AzureAD/azure-activedirectory-library-for-python Author: Microsoft Corporation @@ -16,4 +16,5 @@ Classifier: Programming Language :: Python :: 3.3 Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: 3.5 +Classifier: Programming Language :: Python :: 3.6 Classifier: License :: OSI Approved :: MIT License diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/adal-0.4.3/adal/__init__.py new/adal-0.4.5/adal/__init__.py --- old/adal-0.4.3/adal/__init__.py 2016-11-18 23:55:40.000000000 +0100 +++ new/adal-0.4.5/adal/__init__.py 2017-02-27 23:02:17.000000000 +0100 @@ -27,7 +27,7 @@ # pylint: disable=wrong-import-position -__version__ = '0.4.3' +__version__ = '0.4.5' import logging diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/adal-0.4.3/adal/util.py new/adal-0.4.5/adal/util.py --- old/adal-0.4.3/adal/util.py 2016-08-25 01:35:04.000000000 +0200 +++ new/adal-0.4.5/adal/util.py 2017-02-27 23:02:17.000000000 +0100 @@ -26,7 +26,6 @@ #------------------------------------------------------------------------------ import sys -import platform import base64 try: from urllib.parse import urlparse @@ -55,7 +54,7 @@ headers[AdalIdParameters.SKU] = AdalIdParameters.PYTHON_SKU headers[AdalIdParameters.VERSION] = adal.__version__ headers[AdalIdParameters.OS] = sys.platform - headers[AdalIdParameters.CPU] = 'x64' if platform.architecture()[0] == '64bit' else 'x86' + headers[AdalIdParameters.CPU] = 'x64' if sys.maxsize > 2 ** 32 else 'x86' def create_request_options(self, *options): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/adal-0.4.3/adal.egg-info/PKG-INFO new/adal-0.4.5/adal.egg-info/PKG-INFO --- old/adal-0.4.3/adal.egg-info/PKG-INFO 2016-11-19 00:13:17.000000000 +0100 +++ new/adal-0.4.5/adal.egg-info/PKG-INFO 2017-02-27 23:06:35.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: adal -Version: 0.4.3 +Version: 0.4.5 Summary: The ADAL for Python library makes it easy for python application to authenticate to Azure Active Directory (AAD) in order to access AAD protected web resources. Home-page: https://github.com/AzureAD/azure-activedirectory-library-for-python Author: Microsoft Corporation @@ -16,4 +16,5 @@ Classifier: Programming Language :: Python :: 3.3 Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: 3.5 +Classifier: Programming Language :: Python :: 3.6 Classifier: License :: OSI Approved :: MIT License diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/adal-0.4.3/adal.egg-info/requires.txt new/adal-0.4.5/adal.egg-info/requires.txt --- old/adal-0.4.3/adal.egg-info/requires.txt 2016-11-19 00:13:17.000000000 +0100 +++ new/adal-0.4.5/adal.egg-info/requires.txt 2017-02-27 23:06:35.000000000 +0100 @@ -1,4 +1,4 @@ PyJWT>=1.0.0 -requests>=2.0.0,!=2.12.* +requests>=2.0.0 python-dateutil>=2.1.0 cryptography>=1.1.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/adal-0.4.3/setup.cfg new/adal-0.4.5/setup.cfg --- old/adal-0.4.3/setup.cfg 2016-11-19 00:13:18.000000000 +0100 +++ new/adal-0.4.5/setup.cfg 2017-02-27 23:06:35.000000000 +0100 @@ -7,5 +7,4 @@ [egg_info] tag_build = tag_date = 0 -tag_svn_revision = 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/adal-0.4.3/setup.py new/adal-0.4.5/setup.py --- old/adal-0.4.3/setup.py 2016-11-18 23:55:40.000000000 +0100 +++ new/adal-0.4.5/setup.py 2017-02-27 23:02:17.000000000 +0100 @@ -67,12 +67,13 @@ 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', 'License :: OSI Approved :: MIT License', ], packages=['adal'], install_requires=[ 'PyJWT>=1.0.0', - 'requests>=2.0.0,!=2.12.*', + 'requests>=2.0.0', 'python-dateutil>=2.1.0', 'cryptography>=1.1.0' ]
