Skip to content

Commit 2e1a394

Browse files
bjorntlyschoening
authored andcommitted
Add tests_requires as an extras_require part in setup.py. (biosustain#151)
* Add tests_requires as an extras_require part in setup.py. This allows you to pip install .[tests] so that you can more easily run unit tests locally, using nose directly. * Update setup.py
1 parent ce9445d commit 2e1a394

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

setup.py

+12-8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@
33
import codecs
44
from setuptools import setup, find_packages
55

6+
7+
tests_require = [
8+
'Flask-Testing>=0.4.1',
9+
'Flask-Principal>=0.4.0',
10+
'Flask-SQLAlchemy>=2.0',
11+
'Flask-MongoEngine>=0.7.1',
12+
'peewee==2.*',
13+
'nose>=1.1.2',
14+
]
15+
616
setup(
717
name='Flask-Potion',
818
version='0.15.1',
@@ -14,14 +24,7 @@
1424
description='Powerful REST API framework for Flask and SQLAlchemy',
1525
long_description=codecs.open('README.rst', encoding='utf-8').read(),
1626
test_suite='nose.collector',
17-
tests_require=[
18-
'Flask-Testing>=0.4.1',
19-
'Flask-Principal>=0.4.0',
20-
'Flask-SQLAlchemy>=2.0',
21-
'Flask-MongoEngine>=0.7.1',
22-
'peewee==2.*',
23-
'nose>=1.1.2',
24-
],
27+
tests_require=tests_require,
2528
install_requires=[
2629
'Flask>=0.10',
2730
'jsonschema>=2.4.0',
@@ -61,5 +64,6 @@
6164
'mongoengine': [
6265
'Flask-MongoEngine>=0.7.0'
6366
],
67+
'tests': tests_require,
6468
}
6569
)

0 commit comments

Comments
 (0)