-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
executable file
·25 lines (22 loc) · 1.03 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
import io, os, glob
from setuptools import find_packages, setup
def read(path):
return io.open(os.path.join(os.path.dirname(__file__), path), encoding="utf8").read().strip()
def read_requirements(path):
return list(map(lambda l: l.strip(), filter(lambda l: not l.startswith(('"', "#", "-", "git+")), read(path).split("\n"))))
setup(
name="AutoCog",
version=read("VERSION"),
description="Automaton & Cognition: programming models for language models",
url="https://github.com/LLNL/autocog/",
long_description=read("README.md"),
long_description_content_type="text/markdown",
packages=find_packages(exclude=["share", "tests"]),
install_requires=read_requirements("requirements.txt"),
data_files=[
( 'share/autocog/library/mcq', glob.glob("share/library/mcq/*") ),
( 'share/autocog/library/dfl', glob.glob("share/library/dfl/*") ),
( 'share/autocog/library/elementary', glob.glob("share/library/elementary/*") ),
( 'share/autocog/library/tools', glob.glob("share/library/tools/*") )
],
)