Add install requirements to setup.py
This commit is contained in:
parent
2413421324
commit
f2c3cbb336
1 changed files with 13 additions and 2 deletions
15
setup.py
15
setup.py
|
@ -1,10 +1,20 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
import os
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
import symposion
|
import symposion
|
||||||
|
|
||||||
|
|
||||||
|
def read_file(filename):
|
||||||
|
"""Read a file into a string."""
|
||||||
|
path = os.path.abspath(os.path.dirname(__file__))
|
||||||
|
filepath = os.path.ojoin(path, filename)
|
||||||
|
try:
|
||||||
|
return open(filepath).read()
|
||||||
|
except IOError:
|
||||||
|
return ''
|
||||||
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="symposion",
|
name="symposion",
|
||||||
author="James Tauber",
|
author="James Tauber",
|
||||||
|
@ -12,7 +22,7 @@ setup(
|
||||||
version=symposion.__version__,
|
version=symposion.__version__,
|
||||||
description="A collection of Django apps for conference websites.",
|
description="A collection of Django apps for conference websites.",
|
||||||
url="http://eldarion.com/symposion/",
|
url="http://eldarion.com/symposion/",
|
||||||
packages=find_packages(exclude=["symposion_project"]),
|
packages=find_packages(),
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
classifiers=(
|
classifiers=(
|
||||||
"Development Status :: 4 - Beta",
|
"Development Status :: 4 - Beta",
|
||||||
|
@ -22,4 +32,5 @@ setup(
|
||||||
"Natural Language :: English",
|
"Natural Language :: English",
|
||||||
"License :: OSI Approved :: MIT License",
|
"License :: OSI Approved :: MIT License",
|
||||||
),
|
),
|
||||||
|
install_requires=read_file("requirements/base.txt").splitlines(),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue