Changeset - 650f55ded245
[Not reviewed]
default
1 1 4
Branko Majic (branko) - 11 years ago 2013-06-30 20:20:27
branko@majic.rs
Created split-up requirements for different set-ups for Conntrackt. Switched the requirements reading in setup to use pip for parsing.
6 files changed with 15 insertions and 5 deletions:
0 comments (0 inline, 0 general)
requirements.txt
Show inline comments
 
deleted file
requirements/base.txt
Show inline comments
 
new file 100644
 
django>=1.5
 
South
 
django-braces
requirements/development.txt
Show inline comments
 
new file 100644
 
-r base.txt
 
coverage
 
django-discover-runner
requirements/production.txt
Show inline comments
 
new file 100644
 
-r base.txt
requirements/test.txt
Show inline comments
 
new file 100644
 
-r base.txt
 
coverage
 
django-discover-runner
setup.py
Show inline comments
 
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',
0 comments (0 inline, 0 general)