2023-06-02 10:46:41 +00:00
|
|
|
from pathlib import Path
|
|
|
|
from typing import Union
|
|
|
|
|
|
|
|
import setuptools
|
|
|
|
|
|
|
|
with open("README.md", "r") as fh:
|
|
|
|
long_description = fh.read()
|
|
|
|
|
|
|
|
|
|
|
|
def read_requirements(path: Union[str, Path]):
|
|
|
|
with open(path, "r") as file:
|
|
|
|
return file.read().splitlines()
|
|
|
|
|
|
|
|
|
|
|
|
requirements = read_requirements("requirements.txt")
|
|
|
|
requirements_dev = read_requirements("requirements_dev.txt")
|
|
|
|
|
|
|
|
def get_all_files(path):
|
|
|
|
path = Path(path)
|
|
|
|
file_list = []
|
|
|
|
for file_path in path.rglob('*'):
|
|
|
|
if file_path.is_file():
|
|
|
|
if file_path.name != "__pycache__" and file_path.suffix !=".pyc" and file_path.name!="local_config.yaml" and file_path.name!=".installed" and file_path.name!=".git" and file_path.name!=".gitignore":
|
|
|
|
file_list.append("/".join(str(file_path).replace("\\","/").split("/")[1:]))
|
|
|
|
return file_list
|
|
|
|
|
|
|
|
setuptools.setup(
|
|
|
|
name="lollms",
|
2023-11-13 09:48:05 +00:00
|
|
|
version="6.4.2",
|
2023-06-02 10:46:41 +00:00
|
|
|
author="Saifeddine ALOUI",
|
|
|
|
author_email="aloui.saifeddine@gmail.com",
|
|
|
|
description="A python library for AI personality definition",
|
|
|
|
long_description=long_description,
|
|
|
|
long_description_content_type="text/markdown",
|
|
|
|
url="https://github.com/ParisNeo/lollms",
|
|
|
|
packages=setuptools.find_packages(),
|
|
|
|
include_package_data=True,
|
|
|
|
install_requires=requirements,
|
|
|
|
entry_points={
|
|
|
|
'console_scripts': [
|
2023-10-06 23:09:09 +00:00
|
|
|
'lollms-elf = lollms.apps.elf:main',
|
2023-07-16 18:35:18 +00:00
|
|
|
'lollms-server = lollms.apps.server:main',
|
|
|
|
'lollms-console = lollms.apps.console:main',
|
|
|
|
'lollms-settings = lollms.apps.settings:main',
|
2023-10-30 09:45:21 +00:00
|
|
|
'lollms-discord = lollms.apps.discord_bot:main',
|
2023-08-26 23:15:52 +00:00
|
|
|
'lollms-playground = lollms.apps.playground:main'
|
2023-06-02 10:46:41 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
extras_require={"dev": requirements_dev},
|
|
|
|
classifiers=[
|
2023-06-29 09:33:09 +00:00
|
|
|
"Programming Language :: Python :: 3.10",
|
2023-06-02 10:46:41 +00:00
|
|
|
"License :: OSI Approved :: Apache Software License",
|
|
|
|
"Operating System :: OS Independent",
|
|
|
|
],
|
|
|
|
)
|