-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
51 lines (39 loc) · 1.17 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
#!/usr/bin/env python3
# -*- coding:utf-8 -*-
# author:cch
# datetime:2020/12/7 下午5:09
import os
from setuptools import setup, find_packages, Extension
import sys
import os
sys.path.append(os.getcwd())
__author__ = [
'"chenchanghao"<[email protected]>'
]
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
# def readme():
# # with codecs.open(os.path.join(SCRIPT_DIR, "README.md"),"r","utf-8") as file:
# # return file.read()
# return open(os.path.join(SCRIPT_DIR, "README.md"),
# 'r+', encoding="utf-8").read()
# Maybe here use >= or ~= is more suitable.
with open("requirements.txt", "r") as file:
install_requires = file.readlines()
setup(name='gpt_service',
version='1.0.0',
description="gpt2 service",
# long_description=readme(),
keywords="gpt2 service",
author="Simulation Team",
license="MIT",
packages=find_packages(),
# platforms='python 3.5',
url="None",
python_requires='~=3.6',
entry_points={
'console_scripts':
['gpt2_server=chatbot.server.server:main']
},
install_requires=install_requires,
zip_safe=False
)