srid/modern-package-template — pull request #5 by msabramo (2012-06-16 01:52:08+00:00)
Title: Add support for unittest tests + tox (http://tox.testrun.org/) and Travis CI (http://travis-ci.org/)

```
[last: 0] marca@scml-marca:~/dev/git-repos/modern-package-template$ paster create --no-interactive -t modern_package FooBarDog
Selected and implied templates:
modern-package-template#modern_package Package with distribute and buildout support

Variables:
egg: FooBarDog
package: foobardog
project: FooBarDog
Creating template modern_package
Creating directory ./FooBarDog
Copying HACKING.txt to ./FooBarDog/HACKING.txt
Copying MANIFEST.in to ./FooBarDog/MANIFEST.in
Copying NEWS.rst to ./FooBarDog/NEWS.rst
Copying README.rst to ./FooBarDog/README.rst
Copying bootstrap.py to ./FooBarDog/bootstrap.py
Copying buildout.cfg_tmpl to ./FooBarDog/buildout.cfg
Copying setup.py_tmpl to ./FooBarDog/setup.py
Recursing into tests
Creating ./FooBarDog/tests/
Copying __init__.py to ./FooBarDog/tests/__init__.py
Copying test_+package+.py_tmpl to ./FooBarDog/tests/test_foobardog.py
Copying tox.ini to ./FooBarDog/tox.ini
Running /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python setup.py egg_info
[last: 0] marca@scml-marca:~/dev/git-repos/modern-package-template$ cd FooBarDog/
[last: 0] marca@scml-marca:~/dev/git-repos/modern-package-template/FooBarDog$ tox
GLOB sdist-make: /Users/marca/dev/git-repos/modern-package-template/FooBarDog/setup.py
py24 create: /Users/marca/dev/git-repos/modern-package-template/FooBarDog/.tox/py24
py24 sdist-inst: /Users/marca/dev/git-repos/modern-package-template/FooBarDog/.tox/dist/FooBarDog-0.1.zip
py24 runtests: commands[0]
running test
running egg_info
writing src/FooBarDog.egg-info/PKG-INFO
writing top-level names to src/FooBarDog.egg-info/top_level.txt
writing dependency_links to src/FooBarDog.egg-info/dependency_links.txt
writing entry points to src/FooBarDog.egg-info/entry_points.txt
reading manifest file 'src/FooBarDog.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'src/FooBarDog.egg-info/SOURCES.txt'
running build_ext
test_something (tests.test_foobardog.FooBarDogTests) ... ok

----------------------------------------------------------------------
Ran 1 test in 0.000s

OK
py25 create: /Users/marca/dev/git-repos/modern-package-template/FooBarDog/.tox/py25
py25 sdist-inst: /Users/marca/dev/git-repos/modern-package-template/FooBarDog/.tox/dist/FooBarDog-0.1.zip
py25 runtests: commands[0]
running test
running egg_info
writing src/FooBarDog.egg-info/PKG-INFO
writing top-level names to src/FooBarDog.egg-info/top_level.txt
writing dependency_links to src/FooBarDog.egg-info/dependency_links.txt
writing entry points to src/FooBarDog.egg-info/entry_points.txt
reading manifest file 'src/FooBarDog.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'src/FooBarDog.egg-info/SOURCES.txt'
running build_ext
test_something (tests.test_foobardog.FooBarDogTests) ... ok

----------------------------------------------------------------------
Ran 1 test in 0.000s

OK
py26 create: /Users/marca/dev/git-repos/modern-package-template/FooBarDog/.tox/py26
py26 sdist-inst: /Users/marca/dev/git-repos/modern-package-template/FooBarDog/.tox/dist/FooBarDog-0.1.zip
py26 runtests: commands[0]
running test
running egg_info
writing src/FooBarDog.egg-info/PKG-INFO
writing top-level names to src/FooBarDog.egg-info/top_level.txt
writing dependency_links to src/FooBarDog.egg-info/dependency_links.txt
writing entry points to src/FooBarDog.egg-info/entry_points.txt
reading manifest file 'src/FooBarDog.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'src/FooBarDog.egg-info/SOURCES.txt'
running build_ext
test_something (tests.test_foobardog.FooBarDogTests) ... ok

----------------------------------------------------------------------
Ran 1 test in 0.000s

OK
py27 create: /Users/marca/dev/git-repos/modern-package-template/FooBarDog/.tox/py27
py27 sdist-inst: /Users/marca/dev/git-repos/modern-package-template/FooBarDog/.tox/dist/FooBarDog-0.1.zip
py27 runtests: commands[0]
running test
running egg_info
writing src/FooBarDog.egg-info/PKG-INFO
writing top-level names to src/FooBarDog.egg-info/top_level.txt
writing dependency_links to src/FooBarDog.egg-info/dependency_links.txt
writing entry points to src/FooBarDog.egg-info/entry_points.txt
reading manifest file 'src/FooBarDog.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'src/FooBarDog.egg-info/SOURCES.txt'
running build_ext
test_something (tests.test_foobardog.FooBarDogTests) ... ok

----------------------------------------------------------------------
Ran 1 test in 0.000s

OK
py30 create: /Users/marca/dev/git-repos/modern-package-template/FooBarDog/.tox/py30
py30 sdist-inst: /Users/marca/dev/git-repos/modern-package-template/FooBarDog/.tox/dist/FooBarDog-0.1.zip
py30 runtests: commands[0]
running test
running egg_info
writing src/FooBarDog.egg-info/PKG-INFO
writing top-level names to src/FooBarDog.egg-info/top_level.txt
writing dependency_links to src/FooBarDog.egg-info/dependency_links.txt
writing entry points to src/FooBarDog.egg-info/entry_points.txt
reading manifest file 'src/FooBarDog.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'src/FooBarDog.egg-info/SOURCES.txt'
running build_ext
test_something (tests.test_foobardog.FooBarDogTests) ... ok

----------------------------------------------------------------------
Ran 1 test in 0.000s

OK
py31 create: /Users/marca/dev/git-repos/modern-package-template/FooBarDog/.tox/py31
py31 sdist-inst: /Users/marca/dev/git-repos/modern-package-template/FooBarDog/.tox/dist/FooBarDog-0.1.zip
py31 runtests: commands[0]
running test
running egg_info
writing src/FooBarDog.egg-info/PKG-INFO
writing top-level names to src/FooBarDog.egg-info/top_level.txt
writing dependency_links to src/FooBarDog.egg-info/dependency_links.txt
writing entry points to src/FooBarDog.egg-info/entry_points.txt
reading manifest file 'src/FooBarDog.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'src/FooBarDog.egg-info/SOURCES.txt'
running build_ext
test_something (tests.test_foobardog.FooBarDogTests) ... ok

----------------------------------------------------------------------
Ran 1 test in 0.000s

OK
py32 create: /Users/marca/dev/git-repos/modern-package-template/FooBarDog/.tox/py32
py32 sdist-inst: /Users/marca/dev/git-repos/modern-package-template/FooBarDog/.tox/dist/FooBarDog-0.1.zip
py32 runtests: commands[0]
running test
running egg_info
writing src/FooBarDog.egg-info/PKG-INFO
writing top-level names to src/FooBarDog.egg-info/top_level.txt
writing dependency_links to src/FooBarDog.egg-info/dependency_links.txt
writing entry points to src/FooBarDog.egg-info/entry_points.txt
reading manifest file 'src/FooBarDog.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'src/FooBarDog.egg-info/SOURCES.txt'
running build_ext
test_something (tests.test_foobardog.FooBarDogTests) ... ok

----------------------------------------------------------------------
Ran 1 test in 0.000s

OK
py33 create: /Users/marca/dev/git-repos/modern-package-template/FooBarDog/.tox/py33
py33 sdist-inst: /Users/marca/dev/git-repos/modern-package-template/FooBarDog/.tox/dist/FooBarDog-0.1.zip
py33 runtests: commands[0]
running test
running egg_info
writing dependency_links to src/FooBarDog.egg-info/dependency_links.txt
writing src/FooBarDog.egg-info/PKG-INFO
writing top-level names to src/FooBarDog.egg-info/top_level.txt
writing entry points to src/FooBarDog.egg-info/entry_points.txt
reading manifest file 'src/FooBarDog.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'src/FooBarDog.egg-info/SOURCES.txt'
running build_ext
test_something (tests.test_foobardog.FooBarDogTests) ... ok

----------------------------------------------------------------------
Ran 1 test in 0.000s

OK
pypy create: /Users/marca/dev/git-repos/modern-package-template/FooBarDog/.tox/pypy
pypy sdist-inst: /Users/marca/dev/git-repos/modern-package-template/FooBarDog/.tox/dist/FooBarDog-0.1.zip
pypy runtests: commands[0]
running test
running egg_info
writing src/FooBarDog.egg-info/PKG-INFO
writing top-level names to src/FooBarDog.egg-info/top_level.txt
writing dependency_links to src/FooBarDog.egg-info/dependency_links.txt
writing entry points to src/FooBarDog.egg-info/entry_points.txt
reading manifest file 'src/FooBarDog.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'src/FooBarDog.egg-info/SOURCES.txt'
running build_ext
test_something (tests.test_foobardog.FooBarDogTests) ... ok

----------------------------------------------------------------------
Ran 1 test in 0.000s

OK
jython create: /Users/marca/dev/git-repos/modern-package-template/FooBarDog/.tox/jython
jython sdist-inst: /Users/marca/dev/git-repos/modern-package-template/FooBarDog/.tox/dist/FooBarDog-0.1.zip
jython runtests: commands[0]
WARNING:test command found but not installed in testenv
cmd: /Library/Frameworks/Python.framework/Versions/Current/bin/python
env: /Users/marca/dev/git-repos/modern-package-template/FooBarDog/.tox/jython
Maybe forgot to specify a dependency?
running test
running egg_info
writing src/FooBarDog.egg-info/PKG-INFO
writing top-level names to src/FooBarDog.egg-info/top_level.txt
writing dependency_links to src/FooBarDog.egg-info/dependency_links.txt
writing entry points to src/FooBarDog.egg-info/entry_points.txt
reading manifest file 'src/FooBarDog.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'src/FooBarDog.egg-info/SOURCES.txt'
running build_ext
test_something (tests.test_foobardog.FooBarDogTests) ... ok

----------------------------------------------------------------------
Ran 1 test in 0.000s

OK
_________________________________________________________________________ summary __________________________________________________________________________
py24: commands succeeded
py25: commands succeeded
py26: commands succeeded
py27: commands succeeded
py30: commands succeeded
py31: commands succeeded
py32: commands succeeded
py33: commands succeeded
pypy: commands succeeded
jython: commands succeeded
congratulations :)
```