-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
33 lines (30 loc) · 920 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
#!/usr/bin/env python
import os
import sys
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = ['--ignore', 'build']
self.test_suite = True
def run_tests(self):
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
setup(name='tartpy',
version='0.2.1',
description='Tiny Actor Run-Time in Python.',
url='http://github.com/waltermoreira/tartpy',
author='Walter Moreira',
author_email='[email protected]',
packages=find_packages(),
license='MIT',
long_description=open('README.rst').read(),
cmdclass = {'test': PyTest},
install_requires=[
"pytest >= 2.4",
"Logbook",
],
tests_require=['pytest']
)