-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
38 lines (33 loc) · 935 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
31
32
33
34
35
36
37
38
import setuptools
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
with open("src/ecp/__init__.py") as f:
lines = f.readlines()
version = None
for l in lines:
if l.startswith("__version__"):
version = l.split("=")[1].strip()[1:-1]
if version is None:
raise Exception("Version not found!")
setuptools.setup(
name="py-ecp",
version=version,
author="Conqu3red",
description="ECP programming language",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/ecp-lang/ecp-interpreter",
package_dir={"": "src"},
packages=setuptools.find_packages(where="src"),
python_requires=">=3.6",
install_requires=[
"tabulate",
"astor",
"parsergen==2.0.0b10"
],
entry_points = {
'console_scripts': [
'ecp = ecp.__main__:main'
]
},
)