Skip to content

Commit

Permalink
Split requirements in some files
Browse files Browse the repository at this point in the history
  • Loading branch information
perdy committed Jan 5, 2016
1 parent b3e49f2 commit b0c5697
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 11 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Expand Up @@ -3,6 +3,7 @@ include CHANGELOG
include README.rst
include CONTRIBUTORS.rst
include requirements.txt
include requirements-base.txt
recursive-exclude audit_tools.egg-info *
recursive-exclude dist *
recursive-exclude audit_tools/tests *
Expand Down
10 changes: 10 additions & 0 deletions requirements-base.txt
@@ -0,0 +1,10 @@
##########################################
# Django Audit Tools - Requirements base #
##########################################

psutil>=2.1,<3.0
mongoengine>=0.8,<1.0
celery>=3.1,<4.0
django-celery>=3.1,<4.0
djangorestframework>=3.3,<4.0
django-rest-framework-mongoengine>=3.3,<4.0
2 changes: 1 addition & 1 deletion requirements-tests.txt
Expand Up @@ -2,7 +2,7 @@
# Django Audit Tools - Requirements for testing #
#################################################

-r requirements.txt
-r requirements-base.txt

# Utils
ipdb
Expand Down
10 changes: 4 additions & 6 deletions requirements.txt
@@ -1,9 +1,7 @@
#####################################
# Django Audit Tools - Requirements #
#####################################
psutil>=2.1,<3.0
mongoengine>=0.8,<1.0
celery>=3.1,<4.0
django-celery>=3.1,<4.0
djangorestframework>=3.3,<4.0
django-rest-framework-mongoengine>=3.3,<4.0

-r requirements-base.txt

Django>=1.7
9 changes: 5 additions & 4 deletions setup.py
Expand Up @@ -5,11 +5,13 @@

from setuptools import setup
from setuptools.command.test import test as TestCommand
from pip.req import parse_requirements
from pip.download import PipSession

import audit_tools

with open(os.path.join(os.path.dirname(__file__), 'requirements.txt'), 'r') as f:
requires = f.read().splitlines()
requirements_file = os.path.join(os.path.dirname(__file__), 'requirements.txt')
requires = [str(r.req) for r in parse_requirements(requirements_file, session=PipSession())]


class Tox(TestCommand):
Expand Down Expand Up @@ -56,10 +58,9 @@ def run_tests(self):
# Environment
'Environment :: Web Environment',
# Intended Audience:
'Intended Audience :: Support',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'Intended Audience :: Telecommunications Industry',
# License
'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',
# Natural Language
Expand Down

0 comments on commit b0c5697

Please sign in to comment.