Skip to content

Commit

Permalink
Add tests_requires as an extras_require part in setup.py. (#151)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
bjornt authored and lyschoening committed Nov 28, 2018
1 parent ce9445d commit 2e1a394
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
import codecs
from setuptools import setup, find_packages


tests_require = [
'Flask-Testing>=0.4.1',
'Flask-Principal>=0.4.0',
'Flask-SQLAlchemy>=2.0',
'Flask-MongoEngine>=0.7.1',
'peewee==2.*',
'nose>=1.1.2',
]

setup(
name='Flask-Potion',
version='0.15.1',
Expand All @@ -14,14 +24,7 @@
description='Powerful REST API framework for Flask and SQLAlchemy',
long_description=codecs.open('README.rst', encoding='utf-8').read(),
test_suite='nose.collector',
tests_require=[
'Flask-Testing>=0.4.1',
'Flask-Principal>=0.4.0',
'Flask-SQLAlchemy>=2.0',
'Flask-MongoEngine>=0.7.1',
'peewee==2.*',
'nose>=1.1.2',
],
tests_require=tests_require,
install_requires=[
'Flask>=0.10',
'jsonschema>=2.4.0',
Expand Down Expand Up @@ -61,5 +64,6 @@
'mongoengine': [
'Flask-MongoEngine>=0.7.0'
],
'tests': tests_require,
}
)

0 comments on commit 2e1a394

Please sign in to comment.