[python-django-federated-login] problems with python3 compatibility
Luis Enrique Bazán De León
lbazan at fedoraproject.org
Tue Apr 1 18:57:04 UTC 2014
commit 3472b0fa2b989ba8f4cc479b8d73a0c4cdcb8e01
Author: lbazan <lbazan at fedoraproject.org>
Date: Tue Apr 1 13:56:43 2014 -0500
problems with python3 compatibility
python-django-federated-login.spec | 73 +++---------------------------------
1 files changed, 6 insertions(+), 67 deletions(-)
---
diff --git a/python-django-federated-login.spec b/python-django-federated-login.spec
index 288b956..89903c1 100644
--- a/python-django-federated-login.spec
+++ b/python-django-federated-login.spec
@@ -1,10 +1,8 @@
-%bcond_without python3
-
%global pkgname django-federated-login
Name: python-django-federated-login
Version: 1.0.0
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Provides federated logins to django projects
Group: Development/Languages
@@ -26,11 +24,6 @@ Requires: python-coverage
Requires: python-django
BuildRequires: python-django
-%if 0%{?with_python3}
-BuildRequires: python3-devel
-BuildRequires: python3-setuptools
-%endif
-
%description
Django Federated Login provides an authentication bridge between
@@ -44,81 +37,27 @@ The provided backend matches users based on the e-mail address returned
from the identity provider. If no matching user could be found, a user
account can optionally be created.
-%if 0%{?with_python3}
-%package -n python3-django-federated-login
-Summary: Provides federated logins to django projects
-Group: Development/Languages
-
-BuildRequires: python3-openid
-Requires: python3-openid
-BuildRequires: python3-flake8
-Requires: python3-flake8
-BuildRequires: python3-django
-Requires: python3-django
-BuildRequires: python3-coverage
-Requires: python3-coverage
-
-%description -n python3-django-federated-login
-Django Federated Login provides an authentication bridge between
-Django projects and OpenID-enabled identity providers. The bridge is
-pre-wired to be used with a single Google Apps domain, but could be
-extended to be linked with other OpenID providers also. It is different
-from other OpenID consumers as this consumer only allows connecting to
-a pre-defined identity provider.
-
-The provided backend matches users based on the e-mail address returned
-from the identity provider. If no matching user could be found, a user
-account can optionally be created.
-
-%endif
-
%prep
%setup -q -n %{pkgname}-%{version}
-%if 0%{?with_python3}
-cp -a . %{py3dir}
-%endif
-
%build
python setup.py build
-%if 0%{?with_python3}
-pushd %{py3dir}
-%{__python3} setup.py build
-popd
-%endif
-
%install
python setup.py install --skip-build --root %{buildroot}
-%if 0%{?with_python3}
-pushd %{py3dir}
-%{__python3} setup.py install --skip-build --root %{buildroot}
-popd
-%endif
-
-#%check
-#python -m unittest 'django.tests.tests.py'
-
-#%if 0%{?with_python3}
-#pushd %{py3dir}
-#%{__python3} -m unittest 'django.tests.tests.py'
-#popd
-#%endif
-
+%check
+python setup.py test
+
%files
%doc README.rst LICENSE.txt
%{python_sitelib}/federated_login
%{python_sitelib}/django_federated_login-*.egg-info
-%if 0%{?with_python3}
-%files -n python3-django-federated-login
-%doc README.rst LICENSE.txt
-%{python3_sitelib}/federated_login
-%{python3_sitelib}/django_federated_login-*.egg-info
-%endif
-
%changelog
+* Tue Apr 01 2014 Luis Bazan <lbazan at fedoraproject.org> - 1.0.0-4
+- eliminating support for python3
+
* Mon Mar 31 2014 Luis Bazan <lbazan at fedoraproject.org> - 1.0.0-3
- comment test area
More information about the scm-commits
mailing list