-
Notifications
You must be signed in to change notification settings - Fork 14
/
setup.py
executable file
·53 lines (47 loc) · 1.55 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
#!/usr/bin/env python
"""
SourceMap
~~~~~~~~~
Parse JavaScript source maps.
>>> import sourcemap
>>> sourcemap.discover('...')
'jquery.min.map'
>>> index = sourcemap.loads('...')
>>> index.lookup(line=10, column=10)
<Token: dst_line=10 dst_column=10 src='jquery.js' src_line=50 src_col=200 name='lol'>
:copyright: (c) 2013 by Matt Robenolt
:license: BSD, see LICENSE for more details.
"""
from setuptools import setup, find_packages
import re
# lol
version = re.search(r'__version__ = \'([^\']+)\'', open('sourcemap/__init__.py').read(), re.MULTILINE).groups()[0]
install_requires = []
tests_require = []
setup(
name='sourcemap',
version=version,
author='Matt Robenolt',
author_email='matt@ydekproductions.com',
url='https://github.com/mattrobenolt/python-sourcemap',
description='Parse JavaScript source maps.',
long_description=__doc__,
packages=find_packages(),
install_requires=install_requires,
tests_require=tests_require,
zip_safe=False,
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python',
'Topic :: Software Development'
],
)