-
Notifications
You must be signed in to change notification settings - Fork 24
/
setup.py
73 lines (64 loc) · 2.38 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
#!/usr/bin/env python
# coding: utf-8
import os
import sys
from setuptools import setup, find_packages
# Only load py2exe settings when its used, so we can install it first.
options = {}
cmdclass = {}
if os.name == 'nt' and 'py2exe' in sys.argv:
import py2exe # NOQA
from py2exe_MediaCollector import MediaCollector
options = {'py2exe': {
"skip_archive": True,
"dll_excludes": ['IPHLPAPI.DLL', 'WTSAPI32.dll', 'CRYPT32.dll', 'PSAPI.DLL', 'MSVCR100.dll'],
"optimize": 2,
"bundle_files": 3, # This tells py2exe to bundle everything
}}
cmdclass = {'py2exe': MediaCollector}
# Only load py2app settings when its used, so we can install it first.
if os.name == 'postix' and 'py2app' in sys.argv:
import py2app # NOQA
options = {'py2app': {
"optimize": 2,
}}
exec(open('dataserv_client/version.py').read()) # load __version__
SCRIPT = os.path.join('dataserv_client', 'bin', 'dataserv-client')
setup(
app=['dataserv_client/bin/dataserv-client'],
name='dataserv-client',
description="Client for storing and auditing data. http://storj.io",
long_description=open("README.rst").read(),
keywords="",
url='http://storj.io',
author='Shawn Wilkinson',
author_email='[email protected]',
license="MIT",
version=__version__, # NOQA
scripts=[SCRIPT],
console=[SCRIPT],
test_suite="tests",
dependency_links=[],
install_requires=open("requirements.txt").readlines(),
tests_require=open("test_requirements.txt").readlines(),
packages=find_packages(exclude=['dataserv_client.bin']),
classifiers=[
# "Development Status :: 1 - Planning",
"Development Status :: 2 - Pre-Alpha",
# "Development Status :: 3 - Alpha",
# "Development Status :: 4 - Beta",
# "Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Topic :: Software Development :: Libraries :: Python Modules",
],
cmdclass=cmdclass,
options=options
)