Skip to content

Commit

Permalink
v0.20.0
Browse files Browse the repository at this point in the history
  • Loading branch information
peppelinux committed Jul 1, 2020
1 parent 5ddf0b1 commit 978d6c1
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ tags
.vscode/
build/
dist/
*__pycache__*
3 changes: 2 additions & 1 deletion CHANGES
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
Changes
=======

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

0.19.1 (2020-06-15)
------------------
Expand Down
4 changes: 2 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
include README
include README.rst
include CHANGES
include COPYING
global-include *.html *.csr *.key *.pem *.xml
include djangosaml2/tests/attribute-maps/*.py
global-exclude *.pyc
global-exclude *.pyc
2 changes: 0 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -547,8 +547,6 @@ You can also run the unit tests as follows::
python3 tests/manage.py migrate
python tests/run_tests.py
# or
python tests/manage.py test -v 3


If you have `tox`_ installed you can simply call tox inside the root directory
Expand Down
11 changes: 4 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,18 @@ def read(*rnames):

setup(
name='djangosaml2',
version='0.19.1',
version='0.20.0',
description='pysaml2 integration for Django',
long_description=read('README.rst'),
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.0",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"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",
Expand All @@ -59,11 +56,11 @@ def read(*rnames):
zip_safe=False,
install_requires=[
'defusedxml>=0.4.1',
'Django>=2.2',
'pysaml2>=5.0.0',
'Django>=2.2,<4',
'pysaml2>=5.3.0',
],
tests_require=[
# Provides assert_called_once.
'mock;python_version < "3.6"',
'mock',
]
)
3 changes: 3 additions & 0 deletions tests/testprofiles/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,8 @@ class RequiredFieldUser(models.Model):

USERNAME_FIELD = 'email'

def __repr__(self):
return self.email

def set_unusable_password(self):
pass
2 changes: 1 addition & 1 deletion tests/testprofiles/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def test_get_or_create_user_create(self):
self.assertTrue(isinstance(user, TestUser))
self.assertTrue(created)
self.assertIn(
f"DEBUG:djangosaml2:New user created: {user}",
"DEBUG:djangosaml2:New user created: {}".format(user),
logs.output,
)

Expand Down

0 comments on commit 978d6c1

Please sign in to comment.