Skip to content

Commit

Permalink
Merge pull request #329 from g-as/feature/bump_minimum_versions
Browse files Browse the repository at this point in the history
Drop python 3.6 & django 2.2/3.1
  • Loading branch information
Giuseppe De Marco authored Apr 2, 2022
2 parents 00d443e + 245bb10 commit 7346f52
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 21 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9"]
django-version: ["2.2", "3.1", "3.2", "4.0"]
python-version: ["3.8", "3.9", "3.10"]
django-version: ["3.2", "4.0"]
include:
- python-version: "3.10"
django-version: "4.0"
- python-version: "3.7"
django-version: "3.2"

steps:
- uses: actions/checkout@v2
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repos:
- id: debug-statements

- repo: https://github.com/asottile/pyupgrade
rev: v2.31.0
rev: v2.31.1
hooks:
- id: pyupgrade
args: [--py36-plus]
Expand All @@ -32,15 +32,15 @@ repos:
args: ['--settings-path=pyproject.toml']

- repo: https://github.com/psf/black
rev: 21.12b0
rev: 22.3.0
hooks:
- id: black

- repo: https://github.com/adamchainz/django-upgrade
rev: 1.3.2
rev: 1.4.0
hooks:
- id: django-upgrade
args: [--target-version, "2.2"]
args: [--target-version, "3.2"]

- repo: https://github.com/pycqa/flake8
rev: 4.0.1
Expand Down
8 changes: 2 additions & 6 deletions djangosaml2/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,10 @@
from django.core.exceptions import ImproperlyConfigured
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import resolve_url
from saml2.mdstore import MetaDataMDX

try:
from django.utils.http import url_has_allowed_host_and_scheme
except ImportError: # django 2.2
from django.utils.http import is_safe_url as url_has_allowed_host_and_scheme
from django.utils.http import url_has_allowed_host_and_scheme

from saml2.config import SPConfig
from saml2.mdstore import MetaDataMDX
from saml2.s_utils import UnknownSystemEntity

logger = logging.getLogger(__name__)
Expand Down
5 changes: 1 addition & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,20 @@ def read(*rnames):

setup(
name="djangosaml2",
version="1.4.0",
version="1.5.0",
description="pysaml2 integration for Django",
long_description=read("README.md"),
long_description_content_type="text/markdown",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.1",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
Expand Down
4 changes: 1 addition & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
[tox]
envlist =
py{3.6,3.7,3.8,3.9,3.10}-django{2.2,3.1,3.2,4.0}
py{3.7,3.8,3.9,3.10}-django{3.2,4.0}

[testenv]
commands =
python tests/run_tests.py

deps =
django2.2: django~=2.2
django3.1: django~=3.1
django3.2: django~=3.2
django4.0: django~=4.0
djangomaster: https://github.com/django/django/archive/master.tar.gz
Expand Down

0 comments on commit 7346f52

Please sign in to comment.