forked from zynga/jasy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·153 lines (122 loc) · 3.66 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
#!/usr/bin/env python3
#
# Jasy - Web Tooling Framework
# Copyright 2010-2012 Zynga Inc.
#
import sys
if sys.version < "3.2":
print("Jasy requires Python 3.2 or higher")
sys.exit(1)
# Prefer setuptools (aka distribute) over distutils
# - Distutils comes with Python3 but is not capable of installing requires, extras, etc.
# - Distribute is a fork of the Setuptools project (http://packages.python.org/distribute/)
try:
from setuptools import setup
uses = "distribute"
except ImportError:
print("Jasy prefers distribute over distutils for installing dependencies!")
from distutils.core import setup
uses = "distutils"
if uses == "distribute":
extra = {
"test_suite" : "jasy.test",
"install_requires" : [
"Pygments>=1.5",
"polib>=1.0",
"requests>=0.13",
"CherryPy>=3.2",
"PyYAML>=3"
],
"extras_require" : {
"jsdoc" : ["misaka"],
"daemon" : ["watchdog"],
"sprites" : ["pil"],
"doc" : ["sphinx"]
}
}
else:
extra = {}
# Integrate batch script for win32 only
extra["scripts"] = [ "bin/jasy", "bin/jasy-doc", "bin/jasy-test", "bin/jasy-util" ]
if sys.platform == "win32":
extra["scripts"] += [ "bin/jasy.bat", "bin/jasy-doc.bat", "bin/jasy-test.bat", "bin/jasy-util.bat" ]
# Import Jasy for version info etc.
import jasy
# Run setup
setup(
name = 'jasy',
version = jasy.__version__,
author = 'Zynga Inc.',
author_email = 'germany@zynga.com',
maintainer = 'Zynga Inc.',
maintainer_email = 'germany@zynga.com',
url = 'http://github.com/zynga/jasy',
download_url = "http://pypi.python.org/packages/source/j/jasy/jasy-%s.zip" % jasy.__version__,
license = "MIT",
platforms = 'any',
description = "Web Tooling Framework",
long_description = """Jasy is a powerful Python3-based tooling framework. It makes it
easy to manage heavy web projects. Its main goal is to offer
an API which could be used by developers to write their custom
build/deployment scripts.""",
# Via: http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers = [
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'License :: Freely Distributable',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Topic :: Documentation',
'Topic :: Software Development :: Build Tools',
'Topic :: Software Development :: Compilers',
'Topic :: Software Development :: Code Generators',
'Topic :: Software Development :: Internationalization',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Software Development :: Localization',
'Topic :: Software Development :: Testing',
'Topic :: Internet :: WWW/HTTP :: HTTP Servers',
],
packages = [
'jasy',
'jasy.asset',
'jasy.asset.sprite',
'jasy.core',
'jasy.env',
'jasy.http',
'jasy.item',
'jasy.js',
'jasy.js.api',
'jasy.js.clean',
'jasy.js.optimize',
'jasy.js.output',
'jasy.js.parse',
'jasy.js.tokenize',
'jasy.js.util',
'jasy.test',
'jasy.test.js',
'jasy.vcs',
],
package_data = {
'jasy': [
'data/cldr/VERSION',
'data/cldr/keys/*.xml',
'data/cldr/main/*.xml',
'data/cldr/supplemental/*.xml'
]
},
data_files = [
("jasy", [
"changelog.md",
"license.md",
"readme.md",
"requirements.txt"
]
)
],
**extra
)