|
|
import os
|
|
|
from setuptools import setup
|
|
|
from pip.req import parse_requirements
|
|
|
|
|
|
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
|
|
|
REQUIREMENTS = open(os.path.join(os.path.dirname(__file__), 'requirements.txt')).read().split("\n")
|
|
|
INSTALL_REQUIREMENTS = [r.req for r in parse_requirements("requirements/production.txt")]
|
|
|
TEST_REQUIREMENTS = [r.req for r in parse_requirements("requirements/test.txt")]
|
|
|
|
|
|
# allow setup.py to be run from any path
|
|
|
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
|
|
@@ -18,7 +20,8 @@ setup(
|
|
|
url='http://projects.majic.rs/conntrackt',
|
|
|
author='Branko Majic',
|
|
|
author_email='branko@majic.rs',
|
|
|
install_requires=REQUIREMENTS,
|
|
|
install_requires=INSTALL_REQUIREMENTS,
|
|
|
tests_requires=TEST_REQUIREMENTS,
|
|
|
classifiers=[
|
|
|
'Environment :: Web Environment',
|
|
|
'Framework :: Django',
|