Anonymous avatar Anonymous committed 9b81619

Added tox config, packaging fixes

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']},
 )

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 []
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.