Skip to content

Commit

Permalink
cleaner setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Niru Maheswaranathan committed Oct 22, 2015
1 parent dfe36cd commit 60adea7
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import os
import sys
import jetpack
Expand All @@ -10,20 +9,6 @@
except IOError:
README = ''


class PyTest(TestCommand):

def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True

def run_tests(self):
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)


setup(name='jetpack',
version=jetpack.__version__,
author='Niru Maheswaranathan',
Expand All @@ -32,6 +17,5 @@ def run_tests(self):
requires=[req.strip() for req in open("requirements.txt").readlines()],
long_description=README,
packages=find_packages(),
license='LICENSE.md',
cmdclass={'test': PyTest}
license='LICENSE.md'
)

0 comments on commit 60adea7

Please sign in to comment.