Hello community,
here is the log from the commit of package python-djangorestframework for
openSUSE:Factory checked in at 2019-03-01 16:50:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-djangorestframework (Old)
and /work/SRC/openSUSE:Factory/.python-djangorestframework.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-djangorestframework"
Fri Mar 1 16:50:09 2019 rev:4 rq:680460 version:3.9.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-djangorestframework/python-djangorestframework.changes
2018-11-14 14:43:31.914672788 +0100
+++
/work/SRC/openSUSE:Factory/.python-djangorestframework.new.28833/python-djangorestframework.changes
2019-03-01 16:50:13.565735681 +0100
@@ -1,0 +2,15 @@
+Fri Mar 1 11:10:35 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Switch to multibuild to avoid buildcycle with django-filter
+
+-------------------------------------------------------------------
+Sun Feb 24 01:47:04 UTC 2019 - John Vandenberg <[email protected]>
+
+- Activate test suite
+- Add Recommends and Suggests for optional runtime dependencies
+- Update to v3.9.1
+ * Resolve XSS issue in browsable API
+ * Resolve issues with composable permissions
+ * Respect `limit_choices_to` on foreign keys
+
+-------------------------------------------------------------------
Old:
----
djangorestframework-3.9.0.tar.gz
New:
----
_multibuild
djangorestframework-3.9.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-djangorestframework.spec ++++++
--- /var/tmp/diff_new_pack.4Gq6gw/_old 2019-03-01 16:50:14.281735412 +0100
+++ /var/tmp/diff_new_pack.4Gq6gw/_new 2019-03-01 16:50:14.281735412 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-djangorestframework
#
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# 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
@@ -18,22 +18,46 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
-Name: python-djangorestframework
-Version: 3.9.0
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == "test"
+%define psuffix -test
+%bcond_without test
+%else
+%define psuffix %{nil}
+%bcond_with test
+%endif
+Name: python-djangorestframework%{psuffix}
+Version: 3.9.1
Release: 0
Summary: A REST Framework for Django
License: BSD-2-Clause
Group: Development/Languages/Python
URL: http://django-rest-framework.org/
-Source:
https://files.pythonhosted.org/packages/source/d/djangorestframework/djangorestframework-%{version}.tar.gz
-BuildRequires: %{python_module Django >= 1.11}
-BuildRequires: %{python_module devel}
+Source:
https://github.com/encode/django-rest-framework/archive/%{version}.tar.gz#/djangorestframework-%{version}.tar.gz
+BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Django >= 1.11
+Recommends: python-Markdown
+Recommends: python-Pygments
+Recommends: python-coreapi
+Recommends: python-coreschema
+Recommends: python-requests
+Suggests: psycopg2
Provides: python-django-rest-framework = %{version}
Obsoletes: python-django-rest-framework < %{version}
BuildArch: noarch
+%if %{with test}
+BuildRequires: %{python_module Django >= 1.11}
+BuildRequires: %{python_module Markdown >= 2.6.11}
+BuildRequires: %{python_module PyYAML}
+BuildRequires: %{python_module coreapi >= 2.3.1}
+BuildRequires: %{python_module coreschema >= 0.0.4}
+BuildRequires: %{python_module django-guardian >= 1.4.9}
+BuildRequires: %{python_module psycopg2}
+BuildRequires: %{python_module pytest-django >= 3.3.2}
+BuildRequires: python3-django-filter >= 1.1.0
+%endif
%ifpython2
Provides: %{oldpython}-django-rest-framework = %{version}
Obsoletes: %{oldpython}-django-rest-framework < %{version}
@@ -50,17 +74,26 @@
authentication and permission policies out of the box.
%prep
-%setup -q -n djangorestframework-%{version}
+%setup -q -n django-rest-framework-%{version}
%build
%python_build
%install
+%if !%{with test}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%endif
+
+%check
+%if %{with test}
+%python_exec -m pytest
+%endif
+%if !%{with test}
%files %{python_files}
%license LICENSE.md
%{python_sitelib}/*
+%endif
%changelog
++++++ _multibuild ++++++
<multibuild>
<package>test</package>
</multibuild>
++++++ djangorestframework-3.9.0.tar.gz -> djangorestframework-3.9.1.tar.gz
++++++
/work/SRC/openSUSE:Factory/python-djangorestframework/djangorestframework-3.9.0.tar.gz
/work/SRC/openSUSE:Factory/.python-djangorestframework.new.28833/djangorestframework-3.9.1.tar.gz
differ: char 4, line 1