-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
30 lines (26 loc) · 822 Bytes
/
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
import setuptools
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
with open("parsergen/__init__.py") as f:
lines = f.readlines()
for l in lines:
if l.startswith("__version__ ="):
version = l.split("=")[1].strip()[1:-1]
setuptools.setup(
name="parsergen",
version=version,
author="Conqu3red",
description="Python library for building Parsers and Lexers Easily",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/Conqu3red/parsergen",
packages=setuptools.find_packages(),
python_requires=">=3.6",
install_requires=[],
entry_points = {
'console_scripts': [
'parsergen = parsergen.__main__:main'
]
},
package_data={"": ["*.gram"]}
)