use setup.py test. This fixes #56

This commit is contained in:
Armin Ronacher 2010-05-31 17:53:10 +02:00
parent a6617f44c0
commit 707b30749d
2 changed files with 10 additions and 2 deletions

View file

@ -3,7 +3,7 @@
all: clean-pyc test
test:
python tests/flask_tests.py
python setup.py test
release:
python setup.py release sdist upload

View file

@ -41,6 +41,13 @@ Links
from setuptools import setup
def run_tests():
import os, sys
sys.path.append(os.path.join(os.path.dirname(__file__), 'tests'))
from flask_tests import suite
return suite()
setup(
name='Flask',
version='0.4',
@ -67,5 +74,6 @@ setup(
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
]
],
test_suite='__main__.run_tests'
)