-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
75 lines (62 loc) · 2.04 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
import setuptools, os
from setuptools import setup
from haf.config import *
PACKAGE_NAME = "haf"
requires = [
'requests',
'openpyxl',
'pymysql',
'redis',
'twine',
'assertpy',
'flask',
'flask_restful',
'jinja2',
'pyaml',
'deepdiff',
'setuptools',
'hafapiserver',
'hafsqlpublish',
'jsonschema',
'pluggy',
'progress'
]
with open('ReadMe.md', encoding='utf8') as f:
long_description = f.read()
def package_files(directory):
paths = []
for (path, directories, filenames) in os.walk(directory):
for filename in filenames:
paths.append(os.path.join('..', path, filename))
return paths
package_extras = []
package_extras.extend(package_files('{}/common'.format(PACKAGE_NAME)))
package_extras.extend(package_files('{}/ext/jinjia2report'.format(PACKAGE_NAME)))
package_extras.extend(package_files('{}/ext/resource/report'.format(PACKAGE_NAME)))
package_extras.extend(package_files('{}/ext/webserver'.format(PACKAGE_NAME)))
setup(
name = 'haf',
version = f"{MAIN_VERSION}.{SUB_VERSION}.{FIX_VERSION}",
author = 'wei.meng',
author_email = 'mengwei1101@hotmail.com',
long_description = long_description,
long_description_content_type='text/markdown',
url='http://github.com/tsbxmw/haf',
packages = setuptools.find_packages(exclude=['testcases','thirdparty']),
package_data = {"": package_extras},
python_requires='>=3.6',
install_requires=requires,
platforms='Posix; MacOS X; Windows',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Software Development :: Testing',
'Programming Language :: Python',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
)