Skip to content

Commit

Permalink
Merge pull request #20 from vapier/tests
Browse files Browse the repository at this point in the history
setup.py: add a test command
  • Loading branch information
gazpachoking committed Oct 24, 2016
2 parents c59d081 + b4d51f0 commit 0235f49
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
from distutils.core import setup
from distutils.core import setup, Command

from jsonref import __version__


class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import sys,subprocess
errno = subprocess.call(['py.test', 'tests.py'])
raise SystemExit(errno)


with open("README.rst") as readme:
long_description = readme.read()

Expand Down Expand Up @@ -36,4 +48,7 @@
license="MIT",
long_description=long_description,
url="https://github.com/gazpachoking/jsonref",
cmdclass={
'test': PyTest,
},
)

0 comments on commit 0235f49

Please sign in to comment.