changeset 246:1c6807a22cea

go tox
author Jeff Hammel <k0scist@gmail.com>
date Fri, 31 Mar 2017 17:53:26 -0700
parents 2eb0a8dc2303
children 43db853df1f8
files makeitso/python_package/setup.py setup.py tox.ini
diffstat 3 files changed, 9 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/makeitso/python_package/setup.py	Mon Feb 20 10:13:32 2017 -0800
+++ b/makeitso/python_package/setup.py	Fri Mar 31 17:53:26 2017 -0700
@@ -37,6 +37,7 @@
       license='',
       packages=['{{package}}'],
       include_package_data=True,
+      tests_require=['tox'],
       zip_safe=False,
       **kw
       )
--- a/setup.py	Mon Feb 20 10:13:32 2017 -0800
+++ b/setup.py	Fri Mar 31 17:53:26 2017 -0700
@@ -9,7 +9,6 @@
 
 import os
 from setuptools import setup
-join = os.path.join
 
 try:
     here = os.path.dirname(os.path.abspath(__file__))
@@ -32,15 +31,15 @@
       packages=['makeitso'],
       include_package_data=True,
       package_data={'makeitso': [
-            join('python_package', 'tests', '*')
-#            'python_package/*'
-]},
+            os.path.join('python_package', 'tests', '*')
+      ]},
       zip_safe=False,
       install_requires=[
           # -*- Extra requirements: -*-
           'tempita >= 0.5.1',
           'webob',
       ],
+      tests_require=['tox'],
       entry_points="""
       # -*- Entry points: -*-
       [console_scripts]
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tox.ini	Fri Mar 31 17:53:26 2017 -0700
@@ -0,0 +1,5 @@
+# https://tox.readthedocs.io/en/latest/
+[tox]
+envlist=py27
+[testenv]
+commands=python setup.py test
\ No newline at end of file