-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathsetup.py
More file actions
46 lines (42 loc) · 1.22 KB
/
setup.py
File metadata and controls
46 lines (42 loc) · 1.22 KB
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
from setuptools import setup, find_packages
import sys
# 基礎相依套件
requiredPkgs = [
'packaging',
'requests',
'busm >= 0.9.5'
]
# production 才使用的相依套件
# test.pypi.org 沒有這兩個套件
if '--production' in sys.argv:
at = sys.argv.index('--production')
sys.argv = sys.argv[0:at] + sys.argv[at+1:]
requiredPkgs += [
'PyYAML >= 5.1',
'cryptography >= 2.9.0',
'comtypes >= 1.1.7; platform_system=="Windows"',
'pywin32 >= 1.0; platform_system=="Windows"',
]
# Load Markdown description.
readme = open('README.md', 'r', encoding='utf-8')
longdesc = readme.read()
readme.close()
# See
# https://packaging.python.org/tutorials/packaging-projects/
# https://python-packaging.readthedocs.io/en/latest/non-code-files.html
setup(
name='skcom',
version='0.9.9',
description='Get stock informations by Capital API.',
long_description=longdesc,
long_description_content_type='text/markdown',
packages=find_packages(),
url='https://github.com/tacosync/skcom',
license='MIT',
author='Raymond Wu',
package_data={
'skcom': ['conf/*', 'samples/*', 'tools/*']
},
install_requires=requiredPkgs,
python_requires='>=3.7'
)