Skip to content

Commit

Permalink
Merge pull request #44 from RIPE-NCC/nosetestSetup
Browse files Browse the repository at this point in the history
Adding `nosetest` support into `setup.py`.
  • Loading branch information
danielquinn committed Dec 16, 2014
2 parents 0e34803 + 92799cd commit d39ebfa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
"IPy",
]

tests_require = ["nose"]

# pyOpenSSL support is flaky on some systems (I'm looking at you Apple)
if "SAGAN_WITHOUT_SSL" not in os.environ:
install_requires.append("pyOpenSSL>=0.12")
Expand All @@ -37,6 +39,8 @@
maintainer="Daniel Quinn",
maintainer_email="dquinn@ripe.net",
install_requires=install_requires,
tests_require=tests_require,
test_suite="nose.collector",
scripts=[
"scripts/parse_abuf"
],
Expand Down
6 changes: 6 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[tox]
envlist=py26,py27,py33

[testenv]
commands=python setup.py test []
deps=nose

0 comments on commit d39ebfa

Please sign in to comment.