-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
51 lines (42 loc) · 1.44 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
#
# This file is part of ArgProc. ArgProc is free software that is made
# available under the MIT license. Consult the file "LICENSE" that is
# distributed together with this file for the exact licensing terms.
#
# ArgProc is copyright (c) 2010 by the ArgProc authors. See the file
# "AUTHORS" for a complete overview.
import os
from setuptools import setup, Extension, Command
class gentab(Command):
"""Generate the PLY parse tables."""
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
from argproc.parser import RuleParser
RuleParser._write_tables()
setup(
name = 'argproc',
version = '1.4',
description = 'A rule-based arguments processor',
author = 'Geert Jansen',
author_email = 'geertj@gmail.com',
url = 'http://github.com/geertj/argproc',
license = 'MIT',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules' ],
package_dir = {'': 'lib'},
packages = ['argproc', 'argproc.test'],
test_suite = 'nose.collector',
cmdclass = { 'gentab': gentab },
install_requires = ['ply >= 3.3', 'nose'],
use_2to3 = True
)