forked from season-framework/dizest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
63 lines (59 loc) · 1.85 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
import importlib.util
import os
from setuptools import setup, find_packages
SRC_DIR = 'src'
SEASON_PKG_DIR = os.path.join(SRC_DIR, 'dizest')
spec = importlib.util.spec_from_file_location('version', os.path.join(SEASON_PKG_DIR, 'version.py'))
version = importlib.util.module_from_spec(spec)
spec.loader.exec_module(version)
def package_files(directory):
paths = []
for (path, directories, filenames) in os.walk(directory):
for filename in filenames:
paths.append(os.path.join(path, filename)[11:])
return paths
extra_files = package_files(os.path.join(SEASON_PKG_DIR, 'command'))
extra_files = extra_files + package_files(os.path.join(SEASON_PKG_DIR, 'res'))
extra_files = extra_files + package_files(os.path.join(SEASON_PKG_DIR, 'util'))
extra_files = extra_files + package_files(os.path.join(SEASON_PKG_DIR, 'kernel'))
setup(
name='dizest',
version=version.VERSION_STRING,
description='season dizest: data management platform',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
url='https://github.com/season-framework/dizest',
author='proin',
author_email='[email protected]',
license='MIT',
package_dir={'': SRC_DIR},
packages=find_packages(SRC_DIR),
include_package_data=True,
package_data = {
'dizest': extra_files
},
zip_safe=False,
entry_points={'console_scripts': [
'dizest = dizest.cmd:main [dizest]',
]},
install_requires=[
'argh',
'python-crontab',
'matplotlib',
'psutil',
'requests',
'Pillow',
'numpy',
'pandas',
'pymysql',
'natsort',
'season==1.0.7',
'peewee',
'bcrypt',
'python-socketio[client]'
],
python_requires='>=3.6',
classifiers=[
'License :: OSI Approved :: MIT License'
]
)