Skip to content
Snippets Groups Projects
Commit 0980e590 authored by Art's avatar Art :lizard:
Browse files

Add requirements.txt into setup.py

parent 5d04d269
Branches
Tags
No related merge requests found
from setuptools import setup, find_packages from setuptools import setup, find_packages
from pip.req import parse_requirements
import os import os
# 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)))
# automagic
requirements_parsed = parse_requirements(open(os.path.join(os.path.dirname(__file__), "requirements.txt")))
requirements_list = [str(r.req) for r in requirements_parsed]
setup( setup(
name='django-hshassets', name='django-hshassets',
version='0.1', version='0.1',
...@@ -16,6 +23,7 @@ setup( ...@@ -16,6 +23,7 @@ setup(
author='Tim Fechner', author='Tim Fechner',
author_email='tim.fechner@hs-hannover.de', author_email='tim.fechner@hs-hannover.de',
zip_safe=False, zip_safe=False,
install_requires=requirements_list,
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