-
Notifications
You must be signed in to change notification settings - Fork 100
/
setup.py
67 lines (55 loc) · 1.7 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
58
59
60
61
62
63
64
65
66
67
# coding: utf-8
from __future__ import unicode_literals
from setuptools import setup, find_packages, Command
from distutils.command.build import build as distutils_build
distutils_build.sub_commands.insert(0, ('gen_parsetab', lambda _: True))
class GenerateParsetab(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
from phply.phpparse import make_parser
make_parser(debug=False)
setup(name="phply",
version="1.2.6",
packages=find_packages(),
namespace_packages=['phply'],
include_package_data=True,
author='Ramen',
author_email='',
maintainer='Stanisław Pitucha',
maintainer_email='[email protected]',
description='Lexer and parser for PHP source implemented using PLY',
zip_safe=False,
platforms='any',
license='BSD',
url='https://github.com/viraptor/phply',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Education',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Programming Language :: PHP',
'Operating System :: Unix',
],
entry_points={
'console_scripts': [
'phpparse=phply.phpparse:main',
'phplex=phply.phplex:run_on_argv1',
],
},
install_requires=[
'ply',
],
setup_requires=[
'ply',
],
extras_require={'test': ['pytest', 'tox']},
cmdclass={
'gen_parsetab': GenerateParsetab,
}
)