-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
33 lines (29 loc) · 1006 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from setuptools import setup
from setuptools.command.test import test as TestCommand
import sys
class PyTest(TestCommand):
""" This class is copied directly from the docs """
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
setup(
name = "summonses",
version = "0.1",
author = "Kevin Wilson",
author_email = "khwilson@gmail.com",
description = ("Analysis of how summonses affect collisions"),
license = "Apache2",
keywords = "example data-analysis nyc",
url = "https://github.com/khwilson/summonses",
packages=['summonses'],
long_description=open('README.md', 'r').read(),
install_requires=open('requirements.txt', 'r').readlines(),
tests_require=['pytest'],
cmdclass={'test': PyTest}
)