This repository was archived by the owner on May 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathsetup_freeze.py
More file actions
97 lines (87 loc) · 2.45 KB
/
setup_freeze.py
File metadata and controls
97 lines (87 loc) · 2.45 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
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
96
97
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
import os
from setuptools import find_packages
from cx_Freeze import setup, Executable
def read(*paths):
"""Build a file path from *paths* and return the contents."""
with open(os.path.join(*paths), 'r') as f:
return f.read()
here = os.path.abspath(os.path.dirname(__file__))
# put package test requirements here
requirements = [
"wheel",
"sh",
"requests",
"jinja2",
"multipledispatch",
"docker-py",
"arrow",
"PyYaml",
"colorlog",
"werkzeug",
"json-rpc",
"stackhut-client >= 0.1.1",
]
# put package test requirements here
test_requirements = []
options = {
'build_exe': {
'compressed': True,
'optimize': 2,
'include_files': ['stackhut_toolkit/res']
# 'init_script':'Console',
# 'includes': [
# 'testfreeze_1',
# 'testfreeze_2'
# ],
# 'path': sys.path + ['modules']
}
}
executables = [
Executable(
# script='stackhut/__main__.py',
script='stackhut.py',
initScript='Console',
)
]
setup(
executables=executables,
options=options,
name='stackhut',
version='0.5.8',
description="Deploy classes as Microservices",
long_description=read('readme_pip.rst'),
license='Apache',
author="StackHut",
author_email='stackhut@stackhut.com',
url='https://github.com/stackhut/stackhut-toolkit',
# download_url = 'https://github.com/stackhut/stackhut-tool/tarball/0.1.0'
packages=find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests", ""]),
include_package_data=True,
entry_points={
'console_scripts': [
'stackhut = stackhut_toolkit.__main__:main',
],
},
install_requires=requirements,
zip_safe=False,
test_suite='tests',
tests_require=test_requirements,
keywords='stackhut',
platforms=['POSIX'],
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'Environment :: Console',
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Topic :: Software Development',
#'Private :: Do Not Upload', # hack to force invalid package for upload
],
)