Debian Codegraph @

third_party/python/esprima/setup.py

raw
1 # -*- coding: utf-8 -*-
2
3 try:
4 from setuptools import setup
5 except ImportError:
6 from distutils.core import setup
7
8 import os
9
10 from esprima import version
11
12
13 def read(fname):
14 try:
15 with open(os.path.join(os.path.dirname(__file__), fname), "r") as fp:
16 return fp.read().strip()
17 except IOError:
18 return ''
19
20
21 setup(
22 name="esprima",
23 version=version,
24 author="German M. Bravo (Kronuz)",
25 author_email="[email protected]",
26 url="https://github.com/Kronuz/esprima-python",
27 license="BSD License",
28 keywords="esprima ecmascript javascript parser ast",
29 description="ECMAScript parsing infrastructure for multipurpose analysis in Python",
30 long_description=read("README.rst"),
31 packages=["esprima"],
32 classifiers=[
33 "Development Status :: 5 - Production/Stable",
34 "Intended Audience :: Developers",
35 "License :: OSI Approved :: BSD License",
36 "Operating System :: OS Independent",
37 "Topic :: Software Development :: Code Generators",
38 "Topic :: Software Development :: Compilers",
39 "Topic :: Software Development :: Libraries :: Python Modules",
40 "Topic :: Text Processing :: General",
41 "Programming Language :: Python",
42 "Programming Language :: Python :: 2",
43 "Programming Language :: Python :: 2.7",
44 "Programming Language :: Python :: 3",
45 "Programming Language :: Python :: 3.3",
46 "Programming Language :: Python :: 3.4",
47 "Programming Language :: Python :: 3.5",
48 "Programming Language :: Python :: 3.6",
49 ],
50 entry_points={
51 'console_scripts': [
52 'esprima = esprima.__main__:main',
53 ]
54 },
55 )