From 514485427aa631d49076ca59f8b26a967ebb70bc Mon Sep 17 00:00:00 2001 From: peppelinux Date: Sun, 14 Feb 2021 13:30:56 +0100 Subject: [PATCH] setup --- README.md | 5 ++++- requirements.txt | 1 - setup.py | 12 ++++++------ 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 1a4c159..231762a 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,10 @@ Run the example project Setup ------------ -* `pip install djangosaml2_spid` +djangosaml2_spid uses a pySAML2 fork. + +* `pip install git+https://github.com/peppelinux/pysaml2.git@pplnx-v6.5.1` +* `pip install git+https://github.com/italia/spid-django` * Import SPID SAML2 entity configuration in your project settings file: `from spid_config.spid_settings import *` * Add in `settings.INSTALLED_APPS` the following ``` diff --git a/requirements.txt b/requirements.txt index 1959916..2419ba1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,4 @@ django>3.0<4.0 -ipython # hint before: pip install -U setuptools pysaml2 @ git+https://github.com/peppelinux/pysaml2.git@pplnx-v6.5.1#pysaml2 diff --git a/setup.py b/setup.py index d2f0039..4233e16 100644 --- a/setup.py +++ b/setup.py @@ -11,14 +11,14 @@ with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme: README = readme.read() -def get_requirements(fname='requirements.txt'): - fopen = open(fname, 'r') - return fopen.read().splitlines() + +with open(os.path.join(os.path.dirname(__file__), 'requirements.txt')) as requirements: + REQUIREMENTS = requirements.read() setup( name="djangosaml2_spid", - version='0.4.1', + version='0.4.2-7', description="Djangosaml2 SPID Service Provider", long_description=README, long_description_content_type='text/markdown', @@ -40,6 +40,6 @@ def get_requirements(fname='requirements.txt'): "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Topic :: Software Development :: Libraries :: Python Modules"], - install_requires=get_requirements(), + install_requires=REQUIREMENTS, zip_safe=False, - ) +)