From 0f612a9bcebf311f53e13ed9cd564cfa62dc3cf0 Mon Sep 17 00:00:00 2001 From: Jeremy Cline Date: Mar 28 2018 14:39:39 +0000 Subject: Initial import (#1560639) Signed-off-by: Jeremy Cline --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..56d08b5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/social-auth-core-1.7.0.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 46b6ab4..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# python-social-auth-core - -The python-social-auth-core package \ No newline at end of file diff --git a/Unpin-the-test-requirements-and-use-unittest2-for-Py.patch b/Unpin-the-test-requirements-and-use-unittest2-for-Py.patch new file mode 100644 index 0000000..373ec9c --- /dev/null +++ b/Unpin-the-test-requirements-and-use-unittest2-for-Py.patch @@ -0,0 +1,36 @@ +From 2cd23ffb960641ebeff3c3071e0658d54c8d1a45 Mon Sep 17 00:00:00 2001 +Message-Id: <2cd23ffb960641ebeff3c3071e0658d54c8d1a45.1522075821.git.jeremy@jcline.org> +From: Jeremy Cline +Date: Mon, 26 Mar 2018 10:47:22 -0400 +Subject: [PATCH] Unpin the test requirements and use unittest2 for Python 3 + +unittest2 now supports Python 3 and the old unittest2py3k package is +abandoned: https://pypi.org/project/unittest2/. + +Signed-off-by: Jeremy Cline +--- + social_core/tests/requirements-python2.txt | 4 ++-- + social_core/tests/requirements-python3.txt | 2 +- + 2 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/social_core/tests/requirements-python2.txt b/social_core/tests/requirements-python2.txt +index 5ff9aa8..be3d83f 100644 +--- a/social_core/tests/requirements-python2.txt ++++ b/social_core/tests/requirements-python2.txt +@@ -1,3 +1,3 @@ + -r requirements-base.txt +-unittest2==0.5.1 +-mock==1.0.1 ++unittest2 ++mock +diff --git a/social_core/tests/requirements-python3.txt b/social_core/tests/requirements-python3.txt +index b41e8a2..ba79e41 100644 +--- a/social_core/tests/requirements-python3.txt ++++ b/social_core/tests/requirements-python3.txt +@@ -1,2 +1,2 @@ + -r requirements-base.txt +-unittest2py3k==0.5.1 ++unittest2 +-- +2.17.0.rc1 + diff --git a/python-social-auth-core.spec b/python-social-auth-core.spec new file mode 100644 index 0000000..ce76b06 --- /dev/null +++ b/python-social-auth-core.spec @@ -0,0 +1,85 @@ +%global srcname social-auth-core +%global desc Python Social Auth is an easy to setup social \ +authentication/registration mechanism with support for several frameworks and \ +auth providers. This is the core component of the python-social-auth ecosystem, \ +it implements the common interface to define new authentication backends to \ +third parties services, implement integrations with web frameworks and storage \ +solutions. \ + +Name: python-%{srcname} +Version: 1.7.0 +Release: 1%{?dist} +Summary: The core component of the python-social-auth ecosystem + +License: BSD +URL: https://pypi.python.org/pypi/%{srcname} +Source0: https://github.com/python-social-auth/social-core/archive/%{version}/%{srcname}-%{version}.tar.gz +Patch0: Unpin-the-test-requirements-and-use-unittest2-for-Py.patch + +BuildArch: noarch +BuildRequires: python2-devel python3-devel + + +%description +%{desc} + + +%package -n python3-%{srcname} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{srcname}} +BuildRequires: %{py3_dist cryptography} +BuildRequires: %{py3_dist unittest2} +BuildRequires: %{py3_dist nose} +BuildRequires: %{py3_dist httpretty} +BuildRequires: %{py3_dist defusedxml} +BuildRequires: %{py3_dist python3-openid} +BuildRequires: %{py3_dist python3-saml} +BuildRequires: %{py3_dist requests} +BuildRequires: %{py3_dist oauthlib} +BuildRequires: %{py3_dist requests-oauthlib} +BuildRequires: %{py3_dist six} +BuildRequires: %{py3_dist PyJWT} +Requires: %{py3_dist cryptography} +Requires: %{py3_dist defusedxml} +Requires: %{py3_dist python3-openid} +Requires: %{py3_dist python3-saml} +Requires: %{py3_dist requests} +Requires: %{py3_dist oauthlib} +Requires: %{py3_dist requests-oauthlib} +Requires: %{py3_dist six} +Requires: %{py3_dist PyJWT} + + +%description -n python3-%{srcname} +%{desc} + + +%prep +%autosetup -p1 -n social-core-%{version} +rm -f requirements-openidconnect.txt +touch requirements-openidconnect.txt +rm -f social_core/tests/requirements-base.txt +touch social_core/tests/requirements-base.txt + + +%build +%py3_build + + +%install +%py3_install + + +%check +%__python3 setup.py test + + +%files -n python3-%{srcname} +%license LICENSE +%doc README.md CHANGELOG.md +%{python3_sitelib}/* + + +%changelog +* Thu Jan 25 2018 Jeremy Cline - 1.6.0-1 +- Initial package. diff --git a/sources b/sources new file mode 100644 index 0000000..dc6199b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (social-auth-core-1.7.0.tar.gz) = b295ab6d6d74d0fbf4c648f540af5434348e6d6f775b096f679fb514e98780fa54dfac6287b591bbebcba0060dc8aa6e8c205a0ba631d3ce54f270a89b6e6aaf