-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
65 lines (58 loc) · 2.06 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
from setuptools import setup, find_packages
VERSION = "0.5.10"
def read_requirements():
"""
Read requirements from requirements.txt.
"""
with open("requirements.txt", encoding="UTF-8") as file:
return list(file)
def get_long_description():
"""
Read the README.md file.
"""
with open("README.md", encoding="UTF8") as file:
return file.read()
setup(
name="LMtoolbox",
description="A collection of CLI tools leveraging language models",
long_description=get_long_description(),
long_description_content_type="text/markdown",
author="Sébastien De Revière",
url="https://github.com/sderev/lmtoolbox",
project_urls={
"Documentation": "https://github.com/sderev/lmtoolbox",
"Issues": "http://github.com/sderev/lmtoolbox/issues",
"Changelog": "https://github.com/sderev/lmtoolbox/releases",
},
license="Apache Licence, Version 2.0",
version=VERSION,
packages=find_packages(),
package_data={
"lmtoolbox": ["tools/templates/*.yaml"],
},
install_requires=read_requirements(),
entry_points={
"console_scripts": [
"cheermeup=lmtoolbox.cli:cheermeup",
"codereview=lmtoolbox.cli:codereview",
"commitgen=lmtoolbox.cli:commitgen",
"critique=lmtoolbox.cli:critique",
"define=lmtoolbox.cli:define",
"explain=lmtoolbox.cli:explain",
"lessonize=lmtoolbox.cli:lessonize",
"life=lmtoolbox.cli:life",
"lmtoolbox=lmtoolbox.cli:cli",
"lmt=lmterminal.cli:lmt",
"pathlearner=lmtoolbox.cli:pathlearner",
"proofread=lmtoolbox.cli:proofread",
"shellgenius=shellgenius.cli:shellgenius",
"study=lmtoolbox.cli:study",
"summarize=lmtoolbox.cli:summarize",
"teachlib=lmtoolbox.cli:teachlib",
"thesaurus=lmtoolbox.cli:thesaurus",
"translate=lmtoolbox.cli:translate",
"vocabmaster=vocabmaster.cli:vocabmaster",
]
},
python_requires=">=3.8",
)