commit 8b8467811640dfc2340083d16db641fceaaa880291e45bb00166b41014cb7adb Author: Tomáš Chvátal Date: Wed Feb 27 10:29:55 2019 +0000 Accepting request 677424 from home:jayvdb:django - Skip five failing tests - Initial spec for v0.38.0 OBS-URL: https://build.opensuse.org/request/show/677424 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-allauth?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..37a8eaa --- /dev/null +++ b/.gitattributes @@ -0,0 +1,24 @@ +*.changes merge=merge-changes +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tar filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8b731c3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.obscpio +*.osc +_build.* +.pbuild diff --git a/django-allauth-0.38.0.tar.gz b/django-allauth-0.38.0.tar.gz new file mode 100644 index 0000000..cf4c5b8 --- /dev/null +++ b/django-allauth-0.38.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:45661b6fe308466154adf54461679fab6f0c6850b10c56dc322fbbb9d47e03d9 +size 511013 diff --git a/python-django-allauth.changes b/python-django-allauth.changes new file mode 100644 index 0000000..9d2eb0d --- /dev/null +++ b/python-django-allauth.changes @@ -0,0 +1,9 @@ +------------------------------------------------------------------- +Sun Feb 17 07:59:01 UTC 2019 - John Vandenberg + +- Skip five failing tests + +------------------------------------------------------------------- +Sat Feb 16 09:45:04 UTC 2019 - John Vandenberg + +- Initial spec for v0.38.0 diff --git a/python-django-allauth.spec b/python-django-allauth.spec new file mode 100644 index 0000000..0f27a01 --- /dev/null +++ b/python-django-allauth.spec @@ -0,0 +1,108 @@ +# +# spec file for package python-django-allauth +# +# 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-django-allauth +Version: 0.38.0 +Release: 0 +Summary: Django authentication, registration, account management +License: MIT +Group: Development/Languages/Python +URL: http://github.com/pennersr/django-allauth +Source: https://files.pythonhosted.org/packages/source/d/django-allauth/django-allauth-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-Django >= 1.11 +Requires: python-requests +Requires: python-requests-oauthlib >= 0.3.0 +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module Django >= 1.11} +BuildRequires: %{python_module requests-oauthlib >= 0.3.0} +BuildRequires: %{python_module requests} +BuildRequires: python2-mock >= 1.0.1 +BuildRequires: python2-python-openid >= 2.2.5 +BuildRequires: python3-python3-openid >= 3.0.8 +# /SECTION +%ifpython2 +Requires: python-python-openid >= 2.2.5 +%endif +%ifpython3 +Requires: python-python3-openid >= 3.0.8 +%endif +%python_subpackages + +%package lang +Summary: Translations for package %{name} +Group: System/Localization +Requires: %{name} = %{version} +Provides: %{name}-lang-all = %{version} +Supplements: %{name} +BuildArch: noarch + +%description lang +Provides translations for the "%{name}" package. + +%description +Integrated set of Django applications addressing authentication, registration, +account management as well as 3rd party (social) account authentication. + +%prep +%setup -q -n django-allauth-%{version} + +# Five errors reported at https://github.com/pennersr/django-allauth/issues/2210 + +# Cern provider test module fails +rm allauth/socialaccount/providers/cern/tests.py + +# 2 tests failing with KeyError: 'location' (not in response headers) +sed -i 's/test_login/_test_login/' allauth/socialaccount/providers/openid/tests.py + +%build +%python_build + +%install +%python_install +%find_lang django +%python_expand grep -F "%{$python_sitelib}" django.lang > django_%{$python_bin_suffix}.lang +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +export PYTHONPATH=. +%python_expand django-admin-%{$python_bin_suffix} test --settings=test_settings + +%files %{python_files} +%doc AUTHORS ChangeLog.rst README.rst +%license LICENSE +%exclude %{python_sitelib}/allauth/locale +%{python_sitelib}/* + +%if %have_python2 && ! 0%{?skip_python2} +%files -n %{python2_prefix}-django-allauth-lang -f django_%{python2_bin_suffix}.lang +%license LICENSE +%{python2_sitelib}/allauth/locale +%endif + +%if %have_python2 && ! 0%{?skip_python3} +%files -n %{python3_prefix}-django-allauth-lang -f django_%{python3_bin_suffix}.lang +%license LICENSE +%{python3_sitelib}/allauth/locale +%endif + +%changelog