Hello community,
here is the log from the commit of package python-django-guardian for openSUSE:Factory checked in at 2019-03-01 16:47:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-django-guardian (Old)
and /work/SRC/openSUSE:Factory/.python-django-guardian.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-django-guardian"
Fri Mar 1 16:47:47 2019 rev:13 rq:680043 version:1.5.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-django-guardian/python-django-guardian.changes 2015-05-07 09:22:25.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-django-guardian.new.28833/python-django-guardian.changes 2019-03-01 16:47:48.409790404 +0100
@@ -1,0 +2,19 @@
+Thu Feb 28 08:51:02 UTC 2019 - Tomáš Chvátal
+
+- Do not bother with the locale handling for now, causes
+ conflicts on migration, we really need to properly fix this in
+ macros rather than hacking it in.
+
+-------------------------------------------------------------------
+Sun Feb 24 13:16:33 UTC 2019 - John Vandenberg
+
+- Use single spec syntax, renaming Python 2 package to use python2- prefix
+- Increase minimum Django version to 1.8
+- Adds no-maxsplit.patch to fix a minor Python3-only syntax.
+- Activate test suite
+- from v1.5.0
+ * Updates for compatibility with latest Python and Django versions
+- Update from v1.2.5 to v1.4.9
+ (see CHANGES for full log)
+
+-------------------------------------------------------------------
Old:
----
django-guardian-1.2.5.tar.gz
New:
----
django-guardian-1.5.0.tar.gz
no-maxsplit.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-django-guardian.spec ++++++
--- /var/tmp/diff_new_pack.lV7nEU/_old 2019-03-01 16:47:49.105790141 +0100
+++ /var/tmp/diff_new_pack.lV7nEU/_new 2019-03-01 16:47:49.105790141 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-django-guardian
#
-# Copyright (c) 2015 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
@@ -12,47 +12,54 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
-Name: python-django-guardian
-Version: 1.2.5
+%define pypi_package_name django-guardian
+Name: python-%{pypi_package_name}
+Version: 1.5.0
Release: 0
Url: http://github.com/lukaszb/django-guardian
-Summary: Implementation of per object permissions for Django 1.2
+Summary: Implementation of per object permissions for Django
License: BSD-3-Clause
Group: Development/Languages/Python
Source: https://pypi.python.org/packages/source/d/django-guardian/django-guardian-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
+Patch0: no-maxsplit.patch
+BuildRequires: %{python_module Django >= 1.8}
+BuildRequires: %{python_module django-environ}
+BuildRequires: %{python_module mock}
+BuildRequires: %{python_module pytest-django}
+BuildRequires: %{python_module pytest-runner}
+BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
-BuildRequires: python-devel
-BuildRequires: python-setuptools
-Requires: python-django >= 1.2
-%if 0%{?suse_version} && 0%{?suse_version} <= 1110
-%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%else
+BuildRequires: python-rpm-macros
+Requires: python-Django >= 1.8
BuildArch: noarch
-%endif
+%python_subpackages
%description
django-guardian is implementation of per object permissions as
-authorization backend which is supported since Django 1.2. It won't
-work with older Django releases.
+authorization backend.
%prep
%setup -q -n django-guardian-%{version}
+%patch0 -p1
%build
-python setup.py build
+%python_build
%install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
-%fdupes %{buildroot}/%{_prefix}
-%find_lang django %{name}.lang
+%python_install
+%python_expand rm -r %{buildroot}%{$python_sitelib}/guardian/testapp
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
+
+%check
+# mv's avoid pytest's compiled file conflict detection.
+rm -rf build/ _build*/
+%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python setup.py test
-%files -f %{name}.lang
-%defattr(-,root,root,-)
+%files %{python_files}
%doc CHANGES README.rst
%{python_sitelib}/*
++++++ django-guardian-1.2.5.tar.gz -> django-guardian-1.5.0.tar.gz ++++++
++++ 17225 lines of diff (skipped)
++++++ no-maxsplit.patch ++++++
diff -ur django-guardian-1.5.0-orig/guardian/backends.py django-guardian-1.5.0/guardian/backends.py
--- django-guardian-1.5.0-orig/guardian/backends.py 2019-02-24 18:17:53.894083513 +0700
+++ django-guardian-1.5.0/guardian/backends.py 2019-02-24 20:06:22.146532227 +0700
@@ -82,7 +82,7 @@
return False
if '.' in perm:
- app_label, _ = perm.split('.', maxsplit=1)
+ app_label, _ = perm.split('.', 1)
if app_label != obj._meta.app_label:
# Check the content_type app_label when permission
# and obj app labels don't match.
diff -ur django-guardian-1.5.0-orig/guardian/core.py django-guardian-1.5.0/guardian/core.py
--- django-guardian-1.5.0-orig/guardian/core.py 2019-02-24 18:17:53.874083337 +0700
+++ django-guardian-1.5.0/guardian/core.py 2019-02-24 20:06:17.810500223 +0700
@@ -74,7 +74,7 @@
elif self.user and self.user.is_superuser:
return True
if '.' in perm:
- _, perm = perm.split('.', maxsplit=1)
+ _, perm = perm.split('.', 1)
return perm in self.get_perms(obj)
def get_group_filters(self, obj):