Skip to content

Commit 978d6c1

Browse files
committed
v0.20.0
1 parent 5ddf0b1 commit 978d6c1

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ tags
1515
.vscode/
1616
build/
1717
dist/
18+
*__pycache__*

CHANGES

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
Changes
22
=======
33

4-
0.19.2 (not released)
4+
0.20.0 (2020-06-29)
55
- Bugfix: Always save newly created users when ATTRIBUTE_MAPPING is missing in the config
6+
- pySAML2 v5.3.0
67

78
0.19.1 (2020-06-15)
89
------------------

MANIFEST.in

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
include README
1+
include README.rst
22
include CHANGES
33
include COPYING
44
global-include *.html *.csr *.key *.pem *.xml
55
include djangosaml2/tests/attribute-maps/*.py
6-
global-exclude *.pyc
6+
global-exclude *.pyc

README.rst

-2
Original file line numberDiff line numberDiff line change
@@ -547,8 +547,6 @@ You can also run the unit tests as follows::
547547
python3 tests/manage.py migrate
548548
549549
python tests/run_tests.py
550-
# or
551-
python tests/manage.py test -v 3
552550

553551

554552
If you have `tox`_ installed you can simply call tox inside the root directory

setup.py

+4-7
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,18 @@ def read(*rnames):
2424

2525
setup(
2626
name='djangosaml2',
27-
version='0.19.1',
27+
version='0.20.0',
2828
description='pysaml2 integration for Django',
2929
long_description=read('README.rst'),
3030
classifiers=[
3131
"Development Status :: 5 - Production/Stable",
3232
"Environment :: Web Environment",
3333
"Framework :: Django",
34-
"Framework :: Django :: 2.2",
3534
"Framework :: Django :: 3.0",
3635
"Intended Audience :: Developers",
3736
"License :: OSI Approved :: Apache Software License",
3837
"Operating System :: OS Independent",
3938
"Programming Language :: Python",
40-
"Programming Language :: Python :: 3",
41-
"Programming Language :: Python :: 3.5",
4239
"Programming Language :: Python :: 3.6",
4340
"Programming Language :: Python :: 3.7",
4441
"Programming Language :: Python :: 3.8",
@@ -59,11 +56,11 @@ def read(*rnames):
5956
zip_safe=False,
6057
install_requires=[
6158
'defusedxml>=0.4.1',
62-
'Django>=2.2',
63-
'pysaml2>=5.0.0',
59+
'Django>=2.2,<4',
60+
'pysaml2>=5.3.0',
6461
],
6562
tests_require=[
6663
# Provides assert_called_once.
67-
'mock;python_version < "3.6"',
64+
'mock',
6865
]
6966
)

tests/testprofiles/models.py

+3
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,8 @@ class RequiredFieldUser(models.Model):
3838

3939
USERNAME_FIELD = 'email'
4040

41+
def __repr__(self):
42+
return self.email
43+
4144
def set_unusable_password(self):
4245
pass

tests/testprofiles/tests.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def test_get_or_create_user_create(self):
265265
self.assertTrue(isinstance(user, TestUser))
266266
self.assertTrue(created)
267267
self.assertIn(
268-
f"DEBUG:djangosaml2:New user created: {user}",
268+
"DEBUG:djangosaml2:New user created: {}".format(user),
269269
logs.output,
270270
)
271271

0 commit comments

Comments
 (0)