Skip to content
Snippets Groups Projects
Commit 760d49b0 authored by schulmax's avatar schulmax
Browse files

The automagic is no longer supported by pip

parent 9a01595c
No related branches found
No related tags found
No related merge requests found
import os import os
from setuptools import setup, find_packages from setuptools import setup, find_packages
from pip.req import parse_requirements
import pip
README = open(os.path.join(os.path.dirname(__file__), "README.md")).read() README = open(os.path.join(os.path.dirname(__file__), "README.md")).read()
# automagic
requirements_parsed = parse_requirements(open(os.path.join(os.path.dirname(__file__), "requirements.txt")), session=pip.download.PipSession())
requirements_list = [str(r.req) for r in requirements_parsed]
# allow setup.py to be run from any path # allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
...@@ -27,7 +20,10 @@ setup( ...@@ -27,7 +20,10 @@ setup(
author='Art Lukyanchyk', author='Art Lukyanchyk',
author_email='artiom.lukyanchyk@hs-hannover.de', author_email='artiom.lukyanchyk@hs-hannover.de',
zip_safe=False, zip_safe=False,
install_requires=requirements_list, install_requires=[
'python3-saml',
'Django>=1.11,<2.0'
],
classifiers=[ classifiers=[
'Environment :: Web Environment', 'Environment :: Web Environment',
'Framework :: Django', 'Framework :: Django',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment