Skip to content

Commit

Permalink
Test requirements in separate file.
Browse files Browse the repository at this point in the history
  • Loading branch information
dokterbob committed Dec 21, 2015
1 parent 92b5a49 commit 84cbe8a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -29,6 +29,7 @@ install:
- pip install --upgrade pip
- pip install $DJANGO
- pip install -r requirements.txt
- pip install -r requirements_test.txt
- pip install coveralls

# command to run tests
Expand Down
4 changes: 4 additions & 0 deletions requirements_test.txt
@@ -0,0 +1,4 @@
django-imperavi
django-tinymce
pytz
Pillow
13 changes: 7 additions & 6 deletions setup.py
Expand Up @@ -32,6 +32,12 @@
except:
REQUIREMENTS = None

try:
TEST_REQUIREMENTS = open('requirements_test.txt').read()
except:
TEST_REQUIREMENTS = None


setup(
name='django-newsletter',
version="0.6-dev",
Expand Down Expand Up @@ -60,10 +66,5 @@
'Topic :: Utilities'
),
test_suite='runtests.runtests',
tests_require=(
'django-imperavi',
'django-tinymce',
'pytz',
'Pillow',
),
tests_require=TEST_REQUIREMENTS
)

0 comments on commit 84cbe8a

Please sign in to comment.