From a8ef535c4bc4ef8d423da1352ba8849c17866598 Mon Sep 17 00:00:00 2001 From: Alfredo Moralejo Date: Sep 07 2021 12:00:30 +0000 Subject: Import python-django-appconf-1.0.3-5.el9 in CloudSIG xena --- diff --git a/.python-django-appconf.metadata b/.python-django-appconf.metadata new file mode 100644 index 0000000..64fbc5a --- /dev/null +++ b/.python-django-appconf.metadata @@ -0,0 +1 @@ +447b5ab517eebab5b64a537b4f5f46aeb60aaf04 SOURCES/python-django-appconf-1.0.3.tar.gz diff --git a/SOURCES/0001-Add-SessionMiddleware-to-test_settings.patch b/SOURCES/0001-Add-SessionMiddleware-to-test_settings.patch new file mode 100644 index 0000000..a454f68 --- /dev/null +++ b/SOURCES/0001-Add-SessionMiddleware-to-test_settings.patch @@ -0,0 +1,24 @@ +From 5d7c020e552c1cedf2204d6896306f8ee3cd5847 Mon Sep 17 00:00:00 2001 +From: Matthias Runge +Date: Thu, 11 Jul 2019 10:22:50 +0200 +Subject: [PATCH] Add SessionMiddleware to test_settings + +--- + tests/test_settings.py | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/tests/test_settings.py b/tests/test_settings.py +index f8c171b..2fd11aa 100644 +--- a/tests/test_settings.py ++++ b/tests/test_settings.py +@@ -22,6 +22,7 @@ INSTALLED_APPS = [ + MIDDLEWARE = [ + "django.contrib.auth.middleware.AuthenticationMiddleware", + "django.contrib.messages.middleware.MessageMiddleware", ++ "django.contrib.sessions.middleware.SessionMiddleware", + ] + + TEMPLATES = [ +-- +2.21.0 + diff --git a/SOURCES/82501d4c4d40cce7434d71cf88e2e2a136c5e592.patch b/SOURCES/82501d4c4d40cce7434d71cf88e2e2a136c5e592.patch new file mode 100644 index 0000000..3d4866d --- /dev/null +++ b/SOURCES/82501d4c4d40cce7434d71cf88e2e2a136c5e592.patch @@ -0,0 +1,43 @@ +From 82501d4c4d40cce7434d71cf88e2e2a136c5e592 Mon Sep 17 00:00:00 2001 +From: Niouby +Date: Tue, 16 Apr 2019 16:48:42 +0200 +Subject: [PATCH] Add template and middleware settings in test_settings + +--- + tests/test_settings.py | 20 ++++++++++++++++++++ + 1 file changed, 20 insertions(+) + +diff --git a/tests/test_settings.py b/tests/test_settings.py +index 61f17d7..f8c171b 100644 +--- a/tests/test_settings.py ++++ b/tests/test_settings.py +@@ -14,9 +14,29 @@ + 'django.contrib.sites', + 'django.contrib.auth', + 'django.contrib.admin', ++ 'django.contrib.messages', ++ 'django.contrib.sessions', + 'tests', + ] + ++MIDDLEWARE = [ ++ "django.contrib.auth.middleware.AuthenticationMiddleware", ++ "django.contrib.messages.middleware.MessageMiddleware", ++] ++ ++TEMPLATES = [ ++ { ++ "BACKEND": "django.template.backends.django.DjangoTemplates", ++ "APP_DIRS": True, ++ "OPTIONS": { ++ "context_processors": [ ++ "django.contrib.auth.context_processors.auth", ++ "django.contrib.messages.context_processors.messages", ++ ] ++ }, ++ } ++] ++ + if django.VERSION[:2] < (1, 6): + TEST_RUNNER = 'discover_runner.DiscoverRunner' + diff --git a/SPECS/python-django-appconf.spec b/SPECS/python-django-appconf.spec new file mode 100644 index 0000000..a15a2c9 --- /dev/null +++ b/SPECS/python-django-appconf.spec @@ -0,0 +1,166 @@ +%global pypi_name django-appconf +%global with_tests 0 + +Name: python-%{pypi_name} +Version: 1.0.3 +Release: 5%{?dist} +Summary: A helper class for handling configuration defaults of packaged apps gracefully + +License: BSD +URL: http://pypi.python.org/pypi/django-appconf/ +Source0: https://github.com/django-compressor/%{pypi_name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +BuildArch: noarch + + +%global _description\ +A helper class for handling configuration\ +defaults of packaged Django\ +apps gracefully. + +%description %_description + + +%package -n python3-%{pypi_name} +Summary: A helper class for handling configuration defaults of packaged apps gracefully + +BuildRequires: python3-coverage +BuildRequires: python3-devel +BuildRequires: python3-django +BuildRequires: python3-setuptools +BuildRequires: python3-sphinx +BuildRequires: python3-six + +Requires: python3-django + +Obsoletes: python2-%{pypi_name} < 1.0.2-6 +Obsoletes: python-%{pypi_name} < 1.0.2-6 + +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} %_description + + +%prep +%autosetup -n %{pypi_name}-%{version} -p1 + + +%build +%py3_build + +# generate html docs +sphinx-build-3 -b html docs html +# remove the sphinx-build leftovers +rm -rf html/.{doctrees,buildinfo} + + +%install +%py3_install + + +# checks fail in mock +%check +export PYTHONPATH=.:$PYTHONPATH +export DJANGO_SETTINGS_MODULE=tests.test_settings +%{__python3} setup.py test +# coverage3 run %{_bindir}/python3-django-admin test -v2 test +# ^ change to django-admin once that is Python 3 + + +%files -n python3-%{pypi_name} +%doc html README.rst +%license LICENSE +%{python3_sitelib}/appconf +%{python3_sitelib}/django_appconf-%{version}-py%{python3_version}.egg-info + + +%changelog +* Wed Jan 27 2021 Fedora Release Engineering - 1.0.3-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 1.0.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue May 26 2020 Miro Hrončok - 1.0.3-3 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 1.0.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Sep 05 2019 Matthias Runge - 1.0.3-1 +- update to 1.0.3 and FTBFS (rhbz#1737272) +- skip coverage tests for now + +* Mon Aug 19 2019 Miro Hrončok - 1.0.2-13 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 1.0.2-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jul 11 2019 Matthias Runge - 1.0.2-11 +- fix FTBFS (rhbz#1707040) + +* Sat Feb 02 2019 Fedora Release Engineering - 1.0.2-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 14 2018 Fedora Release Engineering - 1.0.2-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 1.0.2-8 +- Rebuilt for Python 3.7 + +* Fri Feb 09 2018 Fedora Release Engineering - 1.0.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Tue Jan 16 2018 Miro Hrončok - 1.0.2-6 +- Removed Python 2 subpackage for https://fedoraproject.org/wiki/Changes/Django20 + +* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 1.0.2-5 +- Python 2 binary package renamed to python2-django-appconf + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + +* Thu Jul 27 2017 Fedora Release Engineering - 1.0.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 1.0.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Dec 19 2016 Miro Hrončok - 1.0.2-2 +- Rebuild for Python 3.6 + +* Wed Nov 02 2016 Matthias Runge - 1.0.2-1 +- update to 1.0.2 (rhbz#1328640) + +* Tue Jul 19 2016 Fedora Release Engineering - 1.0.1-5 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Thu Feb 04 2016 Fedora Release Engineering - 1.0.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Tue Nov 10 2015 Fedora Release Engineering - 1.0.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 + +* Thu Aug 27 2015 Matthias Runge - 1.0.1-2 +- update to 1.0.1 +- python3 subpackage +- fix requirements py/py3 + +* Thu Jun 18 2015 Fedora Release Engineering - 0.6-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 0.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sun Aug 04 2013 Fedora Release Engineering - 0.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Wed Mar 06 2013 Matthias Runge - 0.6-1 +- update to appconf-0.6 + +* Thu Feb 14 2013 Fedora Release Engineering - 0.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Wed Sep 26 2012 Matthias Runge - 0.5-2 +- also add requirement: Django/python-django + +* Tue Sep 11 2012 Matthias Runge - 0.5-1 +- Initial package.