From bc72f356e2b61b72cbb76b46c62e657237427e22 Mon Sep 17 00:00:00 2001 From: Bruno Rocha Date: Tue, 28 Aug 2018 10:48:42 -0300 Subject: [PATCH] Adicionado extra_requirements --- .gitignore | 1 + .travis.yml | 7 ++++--- setup.py | 16 ++++++++++++---- 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index ce907bd..8945788 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +venv .talkshow *.egg-info database diff --git a/.travis.yml b/.travis.yml index cac2954..6e06389 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,9 +2,10 @@ language: python python: - "3.6" install: - - "python setup.py install" - - "pip install flake8" + - "pip install --upgrade pip" + - "pip install .[dev]" script: - "flake8 talkshow/" - "flake8 tests/" - - "py.test -v tests/" \ No newline at end of file + - "py.test --cov=talkshow -v tests/" +after_success: codecov diff --git a/setup.py b/setup.py index ab6f66c..a9fcafa 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,4 @@ # coding: utf-8 - from setuptools import setup requirements = [ @@ -10,18 +9,27 @@ 'flask-admin', 'flask-wtf', 'flask-restful', - 'flask-pytest', 'flask-bootstrap', 'python-dotenv', 'flasgger' ] +requirements_extra = { + 'dev': [ + 'flake8', + 'codecov', + 'pytest', + 'pytest-cov', + 'pytest-flask', + ] +} setup( name='talkshow', - version='0.0.1', + version='0.1.0', description="Call for papers system", packages=['talkshow'], include_package_data=True, - install_requires=requirements + install_requires=requirements, + extras_require=requirements_extra )