-
Notifications
You must be signed in to change notification settings - Fork 55
/
setup.py
54 lines (47 loc) · 1.67 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
#!/usr/bin/env python
"""The setup script."""
import time
import pandas as pd
from pathlib import Path
from setuptools import setup, find_packages
DIR = Path(__file__).resolve().parent
version = time.strftime("%Y.%m.%d.%H.%M.%S", time.localtime())
with open('README.md') as readme_file:
readme = readme_file.read()
get_requirements = lambda p='requirements.txt': pd.read_csv(p, comment='#', names=['name']).name.tolist()
extras_require = {v.name.split('_')[1][:-4]: get_requirements(v) for v in DIR.glob('requirements_*')}
extras_require['all'] = list(set(sum(extras_require.values(), [])))
setup(
author="yuanjie",
author_email='[email protected]',
python_requires='>=3.7',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
description="Create a Python package.",
entry_points={
'console_scripts': [
'chatllm-run=chatllm.clis.cli:cli'
],
},
setup_requires=["pandas"],
install_requires=get_requirements(),
extras_require=extras_require, # pip install -U meutils\[all\]
license="MIT license",
long_description=readme,
long_description_content_type="text/markdown",
include_package_data=True,
keywords='chatllm',
name='chatllm',
# name='llm2openai', # 抢占包
packages=find_packages(include=['chatllm', 'chatllm.*']),
test_suite='tests',
url='https://github.com/yuanjie-ai/ChatLLM',
version=version, # '0.0.0',
zip_safe=False,
)