Accepting request 571406 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/571406
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-adal?expand=0&rev=3
This commit is contained in:
Dominique Leuenberger 2018-02-14 08:27:35 +00:00 committed by Git OBS Bridge
parent f9e5fcf67f
commit 5288e92840
6 changed files with 86 additions and 35 deletions

View File

@ -1,28 +0,0 @@
From 72341d1e3fc2b02504c42234434a894b9a916483 Mon Sep 17 00:00:00 2001
From: Ray Luo <rayluo@microsoft.com>
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

66
HISTORY.txt Normal file
View File

@ -0,0 +1,66 @@
ADAL Python 0.5.0
Enhancement: Add a new parameter in the AuthenticationContext to pass requests (connect,read) timeout parameters. (#112)
Adjustment: By default, no Personally Identifiable Information (PII) will be logged by ADAL Python. (#111)
Adjustment: Surfaces the requests.HTTPError so that app developer can deal with the Retry-After info from HTTP 429 error, if desired. (#117)
ADAL Python 0.4.7
Bugfix: Handle refresh token in Azure Stack (ADFS 2016) properly (#105)
Pre-release
ADAL Python 0.4.6
Enhancement: Add one more trusted authority host login.microsoftonline.us (#77, #78)
Enhancement: Bubble up the server response. (#85, #88)
Bugfix: Should not attempt to refresh a token when RT is unavailable (#82, #87)
Bugfix: Now we force utf-8 decoding so that package builders would be able to pack ADAL Python regardless of their locale. The ADAL Python library users will
NOT be affected by this change. (#89, #91)
Other sample code and readme file adjustments (#76, #73, #84, #92, #95, #97, #98)
ADAL for Python 0.4.5
Fixes platform resolution issue found in Gunicorn/Gevent context (#74)
ADAL for Python 0.4.4
Revert a workaround introduced in 0.4.3, we now have better understanding and recommend a different way to solve it. (#61)
ADAL for Python 0.4.3
Fixes logger bug to ensure proper logging (#55)
Updates dependency to exclude the requests package 2.12.* (#58)
Introduces a new switch to override the default behavior (#57)
ADAL for Python 0.4.2
Fix decoding exception when decoding id_token with non-ASCII characters on Python 2.x (#52)
Minor adjustment on version string handling (#48)
ADAL for Python 0.4.1
Fix encoding exceptions on formatting error text #44
Minor typo fixes in sample code #45
ADAL for Python 0.4.0
Support login using federated credentials through protocols of wstrust 1.3 or 2005
Support http tracing through proxies by exposing the environment variable of ADAL_PYTHON_SSL_NO_VERIFY
ADAL for Python 0.3.0
Support device code flow, required for accounts with 2FA enforced, or MSA accounts such as live id
Support service principal with certificate.
Support token cache.
Remove all JS style of callbacks for better code readability and maintainability.
Improve 'AuthenticationContext' class to be consistent with ADAL node and C# versions.
Add samples showing how to use the ADAL in correct ways. Convenient methods in init.py were removed as it has no integrations with cache and used client id
belonging to other client app.
Update readme with common authentication flows and smooth package installations.
Update for US Government and German Government Authority.
Initial release of ADAL for Python
0.1.0
Add the author_email attribute back in to setup.py

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c5ddfd473fe272ae1deefcee22f99f094f9f195bcb52a8678b2e315b755fe253
size 27788

3
adal-0.5.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:120821f72ca9d59a7c7197fc14d0e27448ff8d331fae230f92d713b9b5c721f7
size 31990

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Wed Jan 31 13:54:39 UTC 2018 - adrian.glaubitz@suse.com
- New upstream release
+ Version 0.5.0
+ For detailed information about changes see the
HISTORY.txt file provided with this package
- Install HISTORY.txt into doc directory
- Install README.md into doc directory
- Remove patches merged upstream
+ 0001-Forcing-utf8-decoding.patch
-------------------------------------------------------------------
Tue Jul 11 08:02:20 UTC 2017 - adrian.glaubitz@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package python-adal
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 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
@ -18,14 +18,14 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-adal
Version: 0.4.5
Version: 0.5.0
Release: 0
Summary: Azure Active Directory library
License: MIT
Group: Development/Languages/Python
Url: https://pypi.python.org/pypi/adal
Source: https://files.pythonhosted.org/packages/source/a/adal/adal-%{version}.tar.gz
Patch1: 0001-Forcing-utf8-decoding.patch
Source1: HISTORY.txt
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
@ -45,7 +45,7 @@ Azure Active Directory (AAD) in order to access AAD protected web resources.
%prep
%setup -q -n adal-%{version}
%patch1 -p1
cp %{SOURCE1} HISTORY.txt
%build
%python_build
@ -57,6 +57,7 @@ Azure Active Directory (AAD) in order to access AAD protected web resources.
%files %{python_files}
%defattr(-,root,root,-)
%doc HISTORY.txt README.md
%{python_sitelib}/*
%changelog