-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
executable file
·72 lines (65 loc) · 2.22 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
"""
python setup.py install --record log
cat log | xargs rm -rf
"""
from setuptools import setup, find_packages
import codecs
def read(filename):
with codecs.open(filename, 'r') as f:
return f.read()
def read_reqs(filename):
return read(filename).strip().splitlines()
def install_requires():
return read_reqs('etc/requirements.txt')
setup(
name="cswd",
version="1.4.0",
packages=find_packages(),
install_requires=install_requires(),
# python_requires='>=3.6',
include_package_data=True,
#zip_safe=False,
package_data={
# If any package contains *.txt or *.rst files, include them:
'': ['*.csv'],
# And include any *.msg files found in the 'hello' package, too:
# 'hello': ['*.msg'],
},
scripts=[
'scripts/init_db_data.py',
'scripts/create_tables.py',
'scripts/before_trading.py',
'scripts/flush_trading_calendar.py',
'scripts/daily.py',
'scripts/flush_by_notice.py',
'scripts/after_trading.py',
'scripts/flush_global_news.py',
'scripts/flush_stock_quote.py',
'scripts/weekly.py',
'scripts/monthly.py',
'scripts/delete_tmp_files.py',
'scripts/cjmx.py'
],
entry_points={
'console_scripts': [
'create-db-tables = create_tables:main',
'init-stock-data = init_db_data:main',
'before-trading = before_trading:main',
'refresh-trading-calendar = flush_trading_calendar:main',
'refresh-stock-quote = flush_stock_quote:main',
'daily-refresh = daily:main',
'daily-refresh-notice = flush_by_notice:by_notice',
'refresh-trading-data = after_trading:main',
'refresh-cjmx = cjmx:main',
'refresh-global-news = flush_global_news:main',
'weekly-refresh = weekly:main',
'monthly-refresh = monthly:main',
'delete-tmp-files = delete_tmp_files:main',
],
},
author="LDF",
author_email="[email protected]",
description="Utilities for fetching Chinese stock webpage data",
license="MIT",
keywords="Chinese stock data tools",
)