-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
33 lines (27 loc) · 859 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
# from http://pytest.org/latest/goodpractises.html
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = [
'--cov=purplex',
'--pep8',
]
self.test_suite = True
def run_tests(self):
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
setup(name='purplex',
version='0.2.4',
description='Pure Python lexer and parser implementation.',
author='Michael Tom-Wing',
author_email='mtomwing@gmail.com',
url='https://github.com/mtomwing/purplex',
packages=['purplex'],
license='MIT',
cmdclass={'test': PyTest},
install_requires=['six'],
zip_safe=False)