From 37e310c8bbea2af062a69ecbbdbac79a7f73634e Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Wed, 13 Sep 2023 14:48:47 +0200 Subject: [PATCH] Add support for Django 4.2. Fix #84 --- CHANGELOG.rst | 9 +++++++++ README.rst | 10 +++++----- requirements.txt | 2 +- setup.py | 6 +++--- 4 files changed, 18 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index a8ea1ce..fc6bac3 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -6,6 +6,15 @@ All notable changes to this project will be documented in this file. .. contents:: Table of Contents :depth: 2 +Unreleased +========== + +Added +----- + +* Support for Django 4.2 + + v2.0.0 - 2022-10-17 =================== diff --git a/README.rst b/README.rst index 69d8fc1..154f5b1 100644 --- a/README.rst +++ b/README.rst @@ -21,7 +21,7 @@ Features * Possibility to rename/rewrite attributes per service * Possibility to require some attribute values per service * Federated mode between multiple CAS -* Supports Django 1.11, 2.2, 3.2, 4.0 and 4.1 +* Supports Django 1.11, 2.2, 3.2, 4.2 * Supports Python 3.6+ Dependencies @@ -29,7 +29,7 @@ Dependencies ``django-cas-server`` depends on the following python packages: -* Django >= 1.11 < 4.2 +* Django >= 1.11 < 4.3 * requests >= 2.4 * requests_futures >= 0.9.5 * lxml >= 3.4 @@ -146,12 +146,12 @@ Quick start 2. Include the cas_server URLconf in your project urls.py like this:: - from django.conf.urls import url, include + from django.urls import path, include urlpatterns = [ - url(r'^admin/', admin.site.urls), + path('admin/', admin.site.urls), ... - url(r'^cas/', include('cas_server.urls', namespace="cas_server")), + path('cas/', include('cas_server.urls', namespace="cas_server")), ] 3. Run ``python manage.py migrate`` to create the cas_server models. diff --git a/requirements.txt b/requirements.txt index da78ada..583263e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -Django >= 1.11,<4.2 +Django >= 1.11,<4.3 setuptools>=5.5 requests>=2.4 requests_futures>=0.9.5 diff --git a/setup.py b/setup.py index 53d2b14..7c7b02d 100644 --- a/setup.py +++ b/setup.py @@ -33,20 +33,20 @@ 'Framework :: Django', 'Framework :: Django :: 1.11', 'Framework :: Django :: 2.2', - 'Framework :: Django :: 3.1', 'Framework :: Django :: 3.2', + 'Framework :: Django :: 4.2', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.11', 'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', @@ -61,7 +61,7 @@ }, keywords=['django', 'cas', 'cas3', 'server', 'sso', 'single sign-on', 'authentication', 'auth'], install_requires=[ - 'Django >= 1.11,<4.2', 'requests >= 2.4', 'requests_futures >= 0.9.5', + 'Django >= 1.11,<4.3', 'requests >= 2.4', 'requests_futures >= 0.9.5', 'lxml >= 3.4', 'six >= 1' ], url="https://github.com/nitmir/django-cas-server",