1
0
forked from pool/python-Django

Accepting request 883369 from home:aplanas:branches:devel:languages:python:django

- Update to 3.2.0
  + Automatic ~django.apps.AppConfig discovery
  + Customizing type of auto-created primary keys
  + Functional indexes
  + pymemcache support
  + New decorators for the admin site  
  + For a complete description of new features check:
    https://github.com/django/django/blob/main/docs/releases/3.2.txt
- Update PYTHOPATH to include the local tests
- Drop i18n_test.patch, i18n_test_extraction.patch,
  test_clear_site_cache-sort.patch

OBS-URL: https://build.opensuse.org/request/show/883369
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-Django?expand=0&rev=78
This commit is contained in:
2021-04-24 07:12:22 +00:00
committed by Git OBS Bridge
parent 92c2e14db0
commit 74ea9e2062
9 changed files with 91 additions and 125 deletions

View File

@@ -23,25 +23,21 @@
%bcond_with memcached
Name: python-Django
# We want support LTS versions of Django - numbered 2.2 -> 3.2 -> 4.2 etc
Version: 3.1.4
Version: 3.2
Release: 0
Summary: A high-level Python Web framework
License: BSD-3-Clause
URL: https://www.djangoproject.com
Source: https://www.djangoproject.com/m/releases/3.1/Django-%{version}.tar.gz
Source: https://www.djangoproject.com/m/releases/3.2/Django-%{version}.tar.gz
Source1: https://www.djangoproject.com/m/pgp/Django-%{version}.checksum.txt#/Django-%{version}.tar.gz.asc
Source2: %{name}.keyring
Source99: python-Django-rpmlintrc
Patch0: i18n_test.patch
Patch1: test_clear_site_cache-sort.patch
# PATCH-FIX-OPENSUSE i18n_test_extraction.patch
Patch2: i18n_test_extraction.patch
BuildRequires: %{python_module Jinja2 >= 2.9.2}
BuildRequires: %{python_module Pillow}
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module argon2-cffi >= 16.1.0}
BuildRequires: %{python_module asgiref >= 3.2.10}
BuildRequires: %{python_module base >= 3.5}
BuildRequires: %{python_module base >= 3.6}
BuildRequires: %{python_module bcrypt}
BuildRequires: %{python_module docutils}
BuildRequires: %{python_module geoip2}
@@ -61,10 +57,9 @@ Requires: python-pytz
Requires: python-setuptools
Requires: python-sqlparse >= 0.2.2
Requires(post): update-alternatives
Requires(preun): update-alternatives
Requires(preun):update-alternatives
Recommends: python-Jinja2 >= 2.9.2
Recommends: python-PyYAML
Recommends: python-argon2-cffi >= 16.1.0
Recommends: python-bcrypt
Recommends: python-geoip2
Recommends: python-pylibmc
@@ -101,7 +96,6 @@ echo "`grep -e '^[0-9a-f]\{64\} Django-%{version}.tar.gz' %{SOURCE1} | cut -c1-
%setup -q -n Django-%{version}
%autopatch -p1
chmod a-x django/contrib/admin/static/admin/js/vendor/xregexp/xregexp.js
%build
%python_build
@@ -129,9 +123,9 @@ export LANG=en_US.UTF8
export PYTHONDONTWRITEBYTECODE=1
%if %{with selenium}
export PATH=%{_libdir}/chromium:$PATH
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} xvfb-run $python tests/runtests.py -v 2 --selenium=chrome
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib}:. xvfb-run $python tests/runtests.py -v 2 --selenium=chrome
%else
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python tests/runtests.py -v 2
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib}:. $python tests/runtests.py -v 2
%endif
%post