From ef7fd4008481b5b98316240b0703d2c78fbd30e8 Mon Sep 17 00:00:00 2001 From: Leif Madsen Date: Fri, 28 Oct 2016 05:59:53 -0400 Subject: [WIP] Migrate to tox based environment Migrate the custom setup.py to a more formal setup environment using tox, in the same way that OpenStack configures their projects. Adds metadata to tox.ini from the setup.py file, and breaks out the dependencies from setup.py into requirements.txt and test-requirements.txt. Executes flake8 testing for pep8 coverage. Defaults to using Python 2 for the environment. Change-Id: Ieaea7d9f3dc227febd8fb1dc9142d478ba197a92 Signed-off-by: Leif Madsen Signed-off-by: zshi --- setup.py | 32 ++++---------------------------- 1 file changed, 4 insertions(+), 28 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 40dc4751..b9f6e141 100644 --- a/setup.py +++ b/setup.py @@ -7,32 +7,8 @@ # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## -from setuptools import setup, find_packages +import setuptools - -setup( - name="dovetail", - version="0.dev0", - packages=find_packages(), - include_package_data=True, - package_data={ - 'dovetail': [ - '*.py', - 'conf/*.py', - 'conf/*.yml', - 'utils/*.py', - ] - }, - url="https://www.opnfv.org", - install_requires=["coverage>=3.6", - "flake8", - "Jinja2>=2.6", - "PyYAML>=3.10", - "Click" - ], - entry_points={ - 'console_scripts': [ - 'dovetail=dovetail.main:main', - ], - } -) +setuptools.setup( + setup_requires=['pbr>=1.8'], + pbr=True) -- cgit 1.2.3-korg