Skip to content

Commit

Permalink
Update dependencies (#28)
Browse files Browse the repository at this point in the history
* [docs] Add Rafael to list of authors (contributors)
* [tools] Update CI to include all supported Python versions
* [tools] Update classifiers to include all supported Python versions
* [tools] Update test dependencies to latest versions
* [tools] Update dependencies to latest versions and remove Django
* [tools] Add latest django classifiers and remove obsolete versions
* [tools] Add test for different versions of Django
* [tools] Remove support for Python 3.5 and 3.6
* [tools] Add conditional build matrix because Django 4.0 doesn't support Python 3.7
* [tools] Update version and add changelog
  • Loading branch information
mostafa authored Mar 10, 2022
1 parent 03bdd03 commit c666146
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 17 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,32 @@ jobs:
test:
name: Test django-saml2-auth
runs-on: ubuntu-latest
strategy:
matrix:
versions:
- { "djangoVersion": "2.2.27", "pythonVersion": "3.7" }
- { "djangoVersion": "2.2.27", "pythonVersion": "3.8" }
- { "djangoVersion": "2.2.27", "pythonVersion": "3.9" }
- { "djangoVersion": "2.2.27", "pythonVersion": "3.10" }
- { "djangoVersion": "3.2.12", "pythonVersion": "3.7" }
- { "djangoVersion": "3.2.12", "pythonVersion": "3.8" }
- { "djangoVersion": "3.2.12", "pythonVersion": "3.9" }
- { "djangoVersion": "3.2.12", "pythonVersion": "3.10" }
- { "djangoVersion": "4.0.3", "pythonVersion": "3.8" }
- { "djangoVersion": "4.0.3", "pythonVersion": "3.9" }
- { "djangoVersion": "4.0.3", "pythonVersion": "3.10" }
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.7"
python-version: ${{ matrix.versions.pythonVersion }}
- name: Install xmlsec1
run: sudo apt-get install xmlsec1
- name: Install dependencies
run: pip install -r requirements_test.txt && pip install -e .
- name: Test
- name: Install Django ${{ matrix.versions.djangoVersion }}
run: pip install Django==${{ matrix.versions.djangoVersion }}
- name: Test Django ${{ matrix.versions.djangoVersion }}
run: pytest .
1 change: 1 addition & 0 deletions AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ If your code or changes are here, but you are not mentioned, please open
an issue.

- [Mostafa Moradian](https://github.com/mostafa) (k6.io & Grafana Labs)
- [Rafael Muñoz Cárdenas](https://github.com/Menda) (k6.io & Grafana Labs)
- [DSpeichert](https://github.com/DSpeichert)
- [jacobh](https://github.com/jacobh)
- [Gene Wood](http://github.com/gene1wood/)
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Django SAML2 Authentication Made Easy

- Original Author
- Original Author
Fang Li

- Maintainer
- Maintainer
Mostafa Moradian

- Version
- Version
Use 1.1.4 for Django \<=1.9, 2.x.x for Django \>= 1.9, Latest supported django version is 2.2. Version \>=3.0.0 is heavily refactored.

This project aims to provide a simple way to integrate SAML2 Authentication into your Django-powered app. Try it now, and get rid of the complicated configuration of SAML.
Expand Down Expand Up @@ -277,6 +277,8 @@ More information can be found in the [Okta Developer Documentation](https://deve

## Release Log

3.4.0: Add support for Django 3.2 and 4.0 and remove support for older Python and Django versions

3.3.0: Add support for PKI in JWT

3.2.0: Update dependencies (#22)
Expand Down
7 changes: 3 additions & 4 deletions requirements_test.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
Django==2.2.17
pytest==6.2.1
pytest-django==4.1.0
responses==0.12.1
pytest==7.0.1
pytest-django==4.5.2
responses==0.19.0
14 changes: 6 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
setup(
name="django_saml2_auth",

version="3.3.0",
version="3.4.0",

description="Django SAML2 Authentication Made Easy.",
long_description=long_description,
Expand All @@ -39,17 +39,15 @@

"License :: OSI Approved :: Apache Software License",

"Framework :: Django :: 1.7",
"Framework :: Django :: 1.8",
"Framework :: Django :: 1.9",
"Framework :: Django :: 1.10",
"Framework :: Django :: 2.1",
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",

"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",
],

keywords=[
Expand Down

0 comments on commit c666146

Please sign in to comment.