Skip to content

Commit 0e52004

Browse files
authored
Merge pull request #125 from snok/fundament/poetry_and_pypi_action
Implements workflow to push to PyPI
2 parents 03deea0 + ae9c578 commit 0e52004

File tree

9 files changed

+508
-66
lines changed

9 files changed

+508
-66
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github: jobec
1+
github: [jobec, jonasks, sondrelg]
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Publish django-auth-adfs to PyPI 📦
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build-and-publish:
9+
name: Build and publish
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Set up Python 3.8
14+
uses: actions/setup-python@v2
15+
with:
16+
python-version: 3.8
17+
- name: Install poetry
18+
uses: snok/[email protected]
19+
- name: Build and publish
20+
run: |
21+
poetry config pypi-token.pypi ${{ secrets.pypi_password }}
22+
poetry publish --build --no-interaction

CHANGELOG.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
Changelog
22
=========
33

4+
5+
`1.4.0`_ - 2021-01-16
6+
---------------------
7+
8+
**Features**
9+
* Added support for enterprice app SSO certificates #87
10+
* Added setting to disable user creation #96
11+
12+
**Fixed**
13+
* Dependency compatibility for PyJWT 2.0 #120
14+
* Django 4.0 deprecation cleanup #
15+
* Fixed a bug where IntegrityError could occur if a users groups changed, and multiple requests were done quickly. #95
16+
17+
418
`1.3.1`_ - 2019-11-06
519
---------------------
620

django_auth_adfs/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
Adding imports here will break setup.py
55
"""
66

7-
__version__ = '1.3.1'
7+
__version__ = '1.4.0'

poetry.lock

Lines changed: 415 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
[tool.poetry]
2+
name = 'django-auth-adfs'
3+
version = '1.4.0' # Remember to also change __init__.py version
4+
description = 'A Django authentication backend for Microsoft ADFS and AzureAD'
5+
authors = ['Joris Beckers <[email protected]>']
6+
maintainers = ['Jonas Krüger Svensson <[email protected]>', 'Sondre Lillebø Gundersen <[email protected]>']
7+
license = 'BSD'
8+
homepage = 'https://github.com/snok/django-auth-adfs'
9+
repository = 'https://github.com/snok/django-auth-adfs'
10+
documentation = 'https://django-auth-adfs.readthedocs.io/en/latest'
11+
keywords = ['django', 'authentication', 'adfs', 'azure', 'ad', 'oauth2']
12+
readme = 'README.rst'
13+
classifiers=[
14+
'Environment :: Web Environment',
15+
'Framework :: Django :: 1.11',
16+
'Framework :: Django :: 2.0',
17+
'Framework :: Django :: 2.1',
18+
'Framework :: Django :: 2.2',
19+
'Framework :: Django :: 3.0',
20+
'Framework :: Django :: 3.1',
21+
'Intended Audience :: Developers',
22+
'Intended Audience :: End Users/Desktop',
23+
'Operating System :: OS Independent',
24+
'License :: OSI Approved :: BSD License',
25+
'Programming Language :: Python',
26+
'Programming Language :: Python :: 3',
27+
'Programming Language :: Python :: 3.5',
28+
'Programming Language :: Python :: 3.6',
29+
'Programming Language :: Python :: 3.7',
30+
'Programming Language :: Python :: 3.8',
31+
'Programming Language :: Python :: 3.9',
32+
'Topic :: Internet :: WWW/HTTP',
33+
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
34+
'Topic :: Internet :: WWW/HTTP :: WSGI',
35+
'Topic :: Software Development :: Libraries :: Application Frameworks',
36+
'Topic :: Software Development :: Libraries :: Python Modules',
37+
'Development Status :: 5 - Production/Stable',
38+
]
39+
include = ['CHANGELOG.rst']
40+
41+
[tool.poetry.dependencies]
42+
python = '^3'
43+
django = ' ^3.0 ||^2.0 || ^1.1'
44+
requests = '^1 || ^2'
45+
cryptography = '^1.7 || ^2.0 || ^3.0'
46+
PyJWT = "^1.0.1 || ^2.0"
47+
48+
[tool.poetry.dev-dependencies]
49+
responses = '*'
50+
mock = '*'
51+
coverage = '*'
52+
tox = '*'
53+
djangorestframework = '*'
54+
PyJWT = "^1.0.1" # Even though PyJWT>=2 works for auth-adfs, the utils for our tests does not.

setup.cfg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11
[flake8]
22
max-line-length = 120
3-
4-
[bdist_wheel]
5-
universal=1

setup.py

Lines changed: 0 additions & 61 deletions
This file was deleted.

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ deps =
99
coverage
1010
mock
1111
responses
12+
pyjwt==1.7.1
1213
django111: Django>=1.11,<1.12
1314
django20: Django>=2.0,<2.1
1415
django21: Django>=2.1,<2.2

0 commit comments

Comments
 (0)