-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
95 lines (88 loc) · 2.6 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# -*- coding: utf-8 -*-
from setuptools import find_packages, setup
from os import path as os_path
import time
this_directory = os_path.abspath(os_path.dirname(__file__))
# 读取文件内容
def read_file(filename):
with open(os_path.join(this_directory, filename), encoding='utf-8') as f:
long_description = f.read()
return long_description
# 获取依赖
def read_requirements(filename):
return [line.strip() for line in read_file(filename).splitlines()
if not line.startswith('#')]
long_description="""
这里是说明
文本操作库
"""
setup(
name='tkitNlp',
version='0.0.1.1',
description='Terry toolkit',
author='Terry Chan',
author_email='napoler2008@gmail.com',
url='https://terry-toolkit.terrychan.org/zh/master/',
# install_requires=read_requirements('requirements.txt'), # 指定需要安装的依赖
long_description=long_description,
long_description_content_type="text/markdown",
install_requires=[
# 'beautifulsoup4==4.7.1',
# 'bs4==0.0.1',
# 'MagicBaidu==0.0.9',
# 'requests==2.21.0',
# 'textrank4zh==0.3',
# 'readability-lxml==0.7.1',
# 'html2text==2019.9.26',
'tqdm==4.38.0',
# 'unqlite==0.7.1',
# 'cacheout==0.11.2',
# 'harvesttext==0.5.4.2',
# 'tqdm==4.38.0',
# 'sqlitedict==1.6.0',
# 'Whoosh==2.7.4',
# 'plyvel==1.1.0',
'pyltp==0.2.1',
'pympler==0.8'
],
packages=['tkitNlp'])
# install_requires=[
# # asn1crypto==0.24.0
# # beautifulsoup4==4.7.1
# # bs4==0.0.1
# # certifi==2019.3.9
# # chardet==3.0.4
# # cryptography==2.1.4
# # cycler==0.10.0
# # docopt==0.6.2
# # idna==2.6
# # jieba==0.39
# # keyring==10.6.0
# # keyrings.alt==3.0
# # kiwisolver==1.0.1
# # matplotlib==3.0.3
# # numpy==1.16.2
# # pandas==0.24.2
# # pipreqs==0.4.9
# # PyAudio==0.2.11
# # pycrypto==2.6.1
# # pygobject==3.26.1
# # pyparsing==2.4.0
# # python-dateutil==2.8.0
# # pytz==2019.1
# # pyxdg==0.25
# # requests==2.21.0
# # scipy==1.2.1
# # SecretStorage==2.3.1
# # six==1.11.0
# # soupsieve==1.9.1
# # urllib3==1.24.1
# # yarg==0.1.9
# ],
#install_requires=['jieba'])
"""
pip freeze > requirements.txt
python3 setup.py sdist
#python3 setup.py install
python3 setup.py sdist upload
"""