-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
57 lines (46 loc) · 1.43 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/usr/bin/env python
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
def readme():
with open('README.rst') as f:
return f.read()
def license_text():
with open('LICENSE') as f:
return f.read()
class Tox(TestCommand):
def initialize_options(self):
TestCommand.initialize_options(self)
self.tox_args = None
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import tox
import shlex
args = self.tox_args
if args:
args = shlex.split(self.tox_args)
errno = tox.cmdline(args)
sys.exit(errno)
setup(name='simplepeg',
version='1.0.4',
description='Python version of SimplePEG',
long_description=readme(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.7',
'Topic :: Text Processing :: Linguistic',
],
url='https://github.com/SimplePEG/Python',
author='Oleksii Okhrymenko',
author_email='[email protected]',
keywords='peg parser grammar',
license=license_text(),
tests_require=['pytest', 'tox'],
cmdclass={'test': Tox},
packages=['simplepeg'],
include_package_data=True,
zip_safe=False)