forked from emrgnt-cmplxty/automata
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
33 lines (28 loc) · 1017 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
from setuptools import find_packages, setup
def read_requirements():
with open("automata/pyproject.toml", "r") as pyproject_file:
requirements = []
for skippable_line in pyproject_file:
if "[tool.poetry.dependencies]" in skippable_line:
break
# Skips the python version line
next(pyproject_file)
for line in pyproject_file:
if line == "\n":
break
requirements.append(line.rstrip() + "\n")
return requirements
setup(
name="automata",
version="0.1.0",
packages=find_packages(),
install_requires=read_requirements(),
entry_points={
"console_scripts": [
# If you want to create command-line executables, you can define them here.
# e.g.: 'my-command=your_project_name.framework.main:main',
"automata=automata.cli.__main__:cli",
],
},
python_requires=">=3.10", # Adjust this to your desired minimum Python version
)