-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
47 lines (42 loc) · 1.66 KB
/
setup.py
File metadata and controls
47 lines (42 loc) · 1.66 KB
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
"""Setup file."""
import pathlib
import os
import setuptools
PARENT: pathlib.Path = pathlib.Path(__file__).parent
def _read_requirements():
requirement_path: str = PARENT / 'requirements.txt'
packages = open(requirement_path, encoding='utf-8').readlines()
return [package.removesuffix('\n') for package in packages]
def _read_version():
init_path: str = os.path.join(PARENT, 'LocalAssistant', '__init__.py')
return open(init_path, encoding='utf-8').read().split()[-1][1:-1]
setuptools.setup(
name="LocalAssistant",
version=_read_version(),
description="LocalAssistant (locas) is an AI designed to be used in CLI. \
(Currently in development)",
long_description=pathlib.Path('README.md').read_text(encoding="utf-8"),
long_description_content_type="text/markdown",
author="Linos",
project_urls={
"Source": "https://github.com/Linos1391/LocalAssistant",
},
classifiers=[
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Natural Language :: English",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Environment :: Console",
"Environment :: GPU :: NVIDIA CUDA",
"Operating System :: Microsoft :: Windows",
"Operating System :: Unix",
],
python_requires=">=3.10",
install_requires=_read_requirements(),
packages=setuptools.find_packages(),
include_package_data=True,
entry_points={"console_scripts": ["locas = LocalAssistant.main:main"]},
)