Commits

jpellerin  committed 9b81619

Added tox config, packaging fixes

  • Participants
  • Parent commits 5cf8477

Comments (0)

Files changed (5)

 docs/_build
 docs/_themes
 htmlcov
+.tox
+\$py\.class$
+include AUTHORS
+include requirements.txt
+include test-requirements.txt
+include nose2/plugins/plugins.cfg
+include tox.ini
+include unittest.cfg
+graft docs
+graft support
-from setuptools import setup
+from setuptools import setup, find_packages
 
 setup(
     name='nose2',
     version='0.1',
-    entry_points= {
+    packages=find_packages(),
+    entry_points={
         'console_scripts': [
             'nose2 = nose2:main_',
             ],
-        }
+        },
+    include_package_data=True,
+    package_data={'': ['nose2/plugins/plugins.cfg']},
 )

File test-requirements.txt

+-e hg+http://hg.python.org/unittest2/@plugins#egg=unittest2
+
+[tox]
+envlist=py24,py25,py26,py27,jython,pypy,docs
+
+[testenv:docs]
+deps=Sphinx>=1.0.5
+changedir=docs
+commands=pip install -r ../test-requirements.txt
+         make html
+
+[testenv:jython]
+deps=
+basepython=jython
+commands=pip install -r test-requirements.txt
+         unit2 discover
+
+[testenv:pypy]
+deps=
+basepython=pypy
+commands=pip install -r test-requirements.txt
+         unit2 discover
+
+[testenv]
+deps=coverage >=3.3
+commands=pip install -r test-requirements.txt
+         unit2 discover []