-
Notifications
You must be signed in to change notification settings - Fork 47
/
setup.py
41 lines (37 loc) · 1.5 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
import pathlib
import re
import setuptools
from Cython.Build import cythonize
init = (pathlib.Path('tree_sitter_languages') / '__init__.py').read_text()
match = re.search(r"^__version__ = '(.+)'$", init, re.MULTILINE)
version = match.group(1)
with open('README.rst') as reader:
readme = reader.read()
setuptools.setup(
name='tree_sitter_languages',
version=version,
description='Binary Python wheels for all tree sitter languages.',
long_description=readme,
author='Grant Jenks',
url='https://github.com/grantjenks/py-tree-sitter-languages',
license='Apache 2.0',
ext_modules=cythonize('tree_sitter_languages/core.pyx', language_level='3'),
packages=['tree_sitter_languages'],
package_data={'tree_sitter_languages': ['languages.so', 'languages.dll']},
install_requires=['tree-sitter'],
project_urls={
'Documentation': 'https://github.com/grantjenks/py-tree-sitter-languages',
'Source': 'https://github.com/grantjenks/py-tree-sitter-languages',
'Tracker': 'https://github.com/grantjenks/py-tree-sitter-languages/issues',
},
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: Implementation :: CPython',
],
)