Hello community, here is the log from the commit of package python-django-rest-invitations for openSUSE:Factory checked in at 2020-05-04 18:40:31 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-django-rest-invitations (Old) and /work/SRC/openSUSE:Factory/.python-django-rest-invitations.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-django-rest-invitations" Mon May 4 18:40:31 2020 rev:2 rq:799969 version:0.1.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-django-rest-invitations/python-django-rest-invitations.changes 2020-03-31 17:15:33.175639321 +0200 +++ /work/SRC/openSUSE:Factory/.python-django-rest-invitations.new.2738/python-django-rest-invitations.changes 2020-05-04 18:41:36.853186748 +0200 @@ -1,0 +2,12 @@ +Mon May 4 06:50:44 UTC 2020 - Tomáš Chvátal <tchva...@suse.com> + +- Update to 0.1.3: + - DRF 3.10 support + - Drop support for python 2.7 and python 3.4 + - Add support for python 3.8 + - Add support for django 3.0 +- Drop merged patches: + * merged_pr_11.patch + * fix-test-middleware-classes.patch + +------------------------------------------------------------------- Old: ---- django-rest-invitations-0.1.1.tar.gz fix-test-middleware-classes.patch merged_pr_11.patch New: ---- django-rest-invitations-0.1.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-django-rest-invitations.spec ++++++ --- /var/tmp/diff_new_pack.hj0FLY/_old 2020-05-04 18:41:40.377194015 +0200 +++ /var/tmp/diff_new_pack.hj0FLY/_new 2020-05-04 18:41:40.381194024 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-django-rest-invitations # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,25 +19,21 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-django-rest-invitations -Version: 0.1.1 +Version: 0.1.2 Release: 0 Summary: A set of Django REST API endpoints to handle invitations License: GPL-3.0-only -Group: Development/Languages/Python -URL: http://github.com/fmarco/django-rest-invitations +URL: https://github.com/fmarco/django-rest-invitations Source: https://github.com/fmarco/django-rest-invitations/archive/%{version}.tar.gz#/django-rest-invitations-%{version}.tar.gz -# Subset of https://github.com/fmarco/django-rest-invitations/pull/6 -Patch0: fix-test-middleware-classes.patch -Patch1: merged_pr_11.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-django-invitations >= 1.9.2 -Requires: python-djangorestframework >= 3.7.7 +Requires: python-django-invitations >= 1.9.3 +Requires: python-djangorestframework >= 3.10 BuildArch: noarch # SECTION test requirements -BuildRequires: %{python_module django-invitations >= 1.9.2} -BuildRequires: %{python_module djangorestframework >= 3.7.7} +BuildRequires: %{python_module django-invitations >= 1.9.3} +BuildRequires: %{python_module djangorestframework >= 3.10} BuildRequires: %{python_module pytest-django} # /SECTION %python_subpackages @@ -47,8 +43,7 @@ %prep %setup -q -n django-rest-invitations-%{version} -%patch0 -p1 -%patch1 -p1 +sed -i -e 's:==:>=:g' setup.py %build %python_build ++++++ django-rest-invitations-0.1.1.tar.gz -> django-rest-invitations-0.1.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/django-rest-invitations-0.1.1/.gitignore new/django-rest-invitations-0.1.2/.gitignore --- old/django-rest-invitations-0.1.1/.gitignore 2018-07-27 09:38:39.000000000 +0200 +++ new/django-rest-invitations-0.1.2/.gitignore 2020-04-29 19:08:08.000000000 +0200 @@ -99,3 +99,5 @@ # mypy .mypy_cache/ + +.idea \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/django-rest-invitations-0.1.1/.travis.yml new/django-rest-invitations-0.1.2/.travis.yml --- old/django-rest-invitations-0.1.1/.travis.yml 2018-07-27 09:38:39.000000000 +0200 +++ new/django-rest-invitations-0.1.2/.travis.yml 2020-04-29 19:08:08.000000000 +0200 @@ -1,10 +1,10 @@ sudo: false language: python python: -- "2.7" -- "3.4" - "3.5" - "3.6" +- "3.7" +- "3.8" cache: directories: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/django-rest-invitations-0.1.1/CHANGELOG new/django-rest-invitations-0.1.2/CHANGELOG --- old/django-rest-invitations-0.1.1/CHANGELOG 2018-07-27 09:38:39.000000000 +0200 +++ new/django-rest-invitations-0.1.2/CHANGELOG 2020-04-29 19:08:08.000000000 +0200 @@ -6,4 +6,13 @@ 0.1.1 (2018-07-27) ---------------- -- Handle delete operation on InvitationViewSet \ No newline at end of file +- Handle delete operation on InvitationViewSet + + +0.1.2 (2020-04-29) +---------------- + +- DRF 3.10 support +- Drop support for python 2.7 and python 3.4 +- Add support for python 3.8 +- Add support for django 3.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/django-rest-invitations-0.1.1/README.md new/django-rest-invitations-0.1.2/README.md --- old/django-rest-invitations-0.1.1/README.md 2018-07-27 09:38:39.000000000 +0200 +++ new/django-rest-invitations-0.1.2/README.md 2020-04-29 19:08:08.000000000 +0200 @@ -7,16 +7,22 @@ Rest customizable extension for [django-invitations](https://github.com/bee-keeper/django-invitations) -Supported Django versions: +Supported Python versions: -* 2.7 -* 3.4 * 3.5 * 3.6 +* 3.7 +* 3.8 Supported Django versions: * Django 1.11 +* Django 2.0 +* Django 3.0 + +Supported DRF versions: + +* at least DRF 3.10 or greater ### Requirements diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/django-rest-invitations-0.1.1/rest_invitations/views.py new/django-rest-invitations-0.1.2/rest_invitations/views.py --- old/django-rest-invitations-0.1.1/rest_invitations/views.py 2018-07-27 09:38:39.000000000 +0200 +++ new/django-rest-invitations-0.1.2/rest_invitations/views.py 2020-04-29 19:08:08.000000000 +0200 @@ -3,8 +3,7 @@ from invitations.app_settings import app_settings as invitations_settings from invitations.signals import invite_accepted from rest_framework import mixins, status, viewsets -from rest_framework.decorators import (api_view, detail_route, list_route, - permission_classes) +from rest_framework.decorators import action, api_view, permission_classes from rest_framework.permissions import AllowAny, IsAuthenticated from rest_framework.response import Response @@ -35,7 +34,8 @@ invitation.save() invitation.send_invitation(request) - @detail_route( + @action( + detail=True, methods=['post'], permission_classes=[IsAuthenticated], url_path=SEND_URL ) @@ -45,7 +45,8 @@ content = {'detail': 'Invite sent'} return Response(content, status=status.HTTP_200_OK) - @list_route( + @action( + detail=False, methods=['post'], permission_classes=[IsAuthenticated], url_path=CREATE_AND_SEND_URL ) @@ -58,7 +59,8 @@ content = {'detail': 'Invite sent'} return Response(content, status=status.HTTP_200_OK) - @list_route( + @action( + detail=False, methods=['post'], permission_classes=[IsAuthenticated], url_path=SEND_MULTIPLE_URL ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/django-rest-invitations-0.1.1/setup.py new/django-rest-invitations-0.1.2/setup.py --- old/django-rest-invitations-0.1.1/setup.py 2018-07-27 09:38:39.000000000 +0200 +++ new/django-rest-invitations-0.1.2/setup.py 2020-04-29 19:08:08.000000000 +0200 @@ -3,7 +3,7 @@ setup( name='django-rest-invitations', - version='0.1.1', + version='0.1.2', author='Marco Federighi', author_email='federighi.ma...@gmail.com', url='http://github.com/fmarco/django-rest-invitations', @@ -12,8 +12,8 @@ keywords=['django', 'invitation', 'django-allauth', 'invite', 'rest', 'django-rest-framework', 'drf', 'invitations'], zip_safe=False, install_requires=[ - 'djangorestframework>=3.7.7', - 'django-invitations==1.9.2' + 'djangorestframework>=3.10', + 'django-invitations==1.9.3' ], include_package_data=True, classifiers=[ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/django-rest-invitations-0.1.1/test_settings.py new/django-rest-invitations-0.1.2/test_settings.py --- old/django-rest-invitations-0.1.1/test_settings.py 2018-07-27 09:38:39.000000000 +0200 +++ new/django-rest-invitations-0.1.2/test_settings.py 2020-04-29 19:08:08.000000000 +0200 @@ -40,7 +40,8 @@ "django.contrib.messages.context_processors.messages", ) -MIDDLEWARE_CLASSES = ( + +MIDDLEWARE = ( 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/django-rest-invitations-0.1.1/tox.ini new/django-rest-invitations-0.1.2/tox.ini --- old/django-rest-invitations-0.1.1/tox.ini 2018-07-27 09:38:39.000000000 +0200 +++ new/django-rest-invitations-0.1.2/tox.ini 2020-04-29 19:08:08.000000000 +0200 @@ -1,9 +1,9 @@ [tox] envlist = - py27-django111 - py34-django111 - py35-django111 - py36-django111 + py35-django{111,22} + py36-django{111,22,30} + py37-django{111,22,3} + py38-django{22,3} flake8 isort @@ -12,7 +12,9 @@ PYTHONWARNINGS = all deps = -rrequirements_test.txt - django111: Django>=1.11,<2.0 + django111: Django>=1.11.17,<2.0 + django22: Django>=2.2.6 + django3: Django>=3.0.1 commands = python -V coverage run manage.py test --settings=test_settings