Revision 5ce3ce4f snf-astakos-app/setup.py
b/snf-astakos-app/setup.py | ||
---|---|---|
65 | 65 |
|
66 | 66 |
# Package meta |
67 | 67 |
CLASSIFIERS = [ |
68 |
'Development Status :: 3 - Alpha',
|
|
69 |
'Operating System :: OS Independent',
|
|
70 |
'Programming Language :: Python',
|
|
71 |
'Topic :: Utilities',
|
|
72 |
'License :: OSI Approved :: BSD License',
|
|
68 |
'Development Status :: 3 - Alpha', |
|
69 |
'Operating System :: OS Independent', |
|
70 |
'Programming Language :: Python', |
|
71 |
'Topic :: Utilities', |
|
72 |
'License :: OSI Approved :: BSD License', |
|
73 | 73 |
] |
74 | 74 |
|
75 | 75 |
# Package requirements |
... | ... | |
103 | 103 |
# Note: you may want to copy this into your setup.py file verbatim, as |
104 | 104 |
# you can't import this from another package, when you don't know if |
105 | 105 |
# that package is installed yet. |
106 |
|
|
107 |
|
|
106 | 108 |
def find_package_data( |
107 | 109 |
where=".", |
108 | 110 |
package="", |
109 | 111 |
exclude=standard_exclude, |
110 | 112 |
exclude_directories=standard_exclude_directories, |
111 | 113 |
only_in_packages=True, |
112 |
show_ignored=False): |
|
114 |
show_ignored=False):
|
|
113 | 115 |
""" |
114 | 116 |
Return a dictionary suitable for use in ``package_data`` |
115 | 117 |
in a distutils ``setup.py`` file. |
... | ... | |
146 | 148 |
bad_name = False |
147 | 149 |
for pattern in exclude_directories: |
148 | 150 |
if (fnmatchcase(name, pattern) |
149 |
or fn.lower() == pattern.lower()): |
|
151 |
or fn.lower() == pattern.lower()):
|
|
150 | 152 |
bad_name = True |
151 | 153 |
if show_ignored: |
152 | 154 |
print >> sys.stderr, ( |
... | ... | |
156 | 158 |
if bad_name: |
157 | 159 |
continue |
158 | 160 |
if (os.path.isfile(os.path.join(fn, "__init__.py")) |
159 |
and not prefix): |
|
161 |
and not prefix):
|
|
160 | 162 |
if not package: |
161 | 163 |
new_package = name |
162 | 164 |
else: |
163 | 165 |
new_package = package + "." + name |
164 | 166 |
stack.append((fn, "", new_package, False)) |
165 | 167 |
else: |
166 |
stack.append((fn, prefix + name + "/", package, only_in_packages)) |
|
168 |
stack.append( |
|
169 |
(fn, prefix + name + "/", package, only_in_packages)) |
|
167 | 170 |
elif package or not only_in_packages: |
168 | 171 |
# is a file |
169 | 172 |
bad_name = False |
170 | 173 |
for pattern in exclude: |
171 | 174 |
if (fnmatchcase(name, pattern) |
172 |
or fn.lower() == pattern.lower()): |
|
175 |
or fn.lower() == pattern.lower()):
|
|
173 | 176 |
bad_name = True |
174 | 177 |
if show_ignored: |
175 | 178 |
print >> sys.stderr, ( |
... | ... | |
178 | 181 |
break |
179 | 182 |
if bad_name: |
180 | 183 |
continue |
181 |
out.setdefault(package, []).append(prefix+name)
|
|
184 |
out.setdefault(package, []).append(prefix + name)
|
|
182 | 185 |
return out |
183 | 186 |
|
184 | 187 |
setup( |
... | ... | |
186 | 189 |
version=VERSION, |
187 | 190 |
license='BSD', |
188 | 191 |
url='http://code.grnet.gr/projects/astakos', |
189 |
description = SHORT_DESCRIPTION,
|
|
190 |
long_description=README + '\n\n' + CHANGES,
|
|
191 |
classifiers = CLASSIFIERS,
|
|
192 |
description=SHORT_DESCRIPTION,
|
|
193 |
long_description=README + '\n\n' + CHANGES, |
|
194 |
classifiers=CLASSIFIERS,
|
|
192 | 195 |
author='GRNET', |
193 | 196 |
author_email='astakos@grnet.gr', |
194 | 197 |
|
... | ... | |
197 | 200 |
package_data=find_package_data('.'), |
198 | 201 |
zip_safe=False, |
199 | 202 |
|
200 |
install_requires = INSTALL_REQUIRES,
|
|
203 |
install_requires=INSTALL_REQUIRES,
|
|
201 | 204 |
|
202 |
dependency_links = ['http://docs.dev.grnet.gr/pypi'],
|
|
205 |
dependency_links=['http://docs.dev.grnet.gr/pypi'],
|
|
203 | 206 |
|
204 | 207 |
entry_points={ |
205 | 208 |
'synnefo': [ |
206 |
'default_settings = astakos.im.synnefo_settings',
|
|
207 |
'web_apps = astakos.im.synnefo_settings:installed_apps',
|
|
208 |
'web_middleware = astakos.im.synnefo_settings:middlware_classes',
|
|
209 |
'web_context_processors = astakos.im.synnefo_settings:context_processors',
|
|
210 |
'urls = astakos.urls:urlpatterns',
|
|
211 |
'web_static = astakos.im.synnefo_settings:static_files',
|
|
212 |
'loggers = astakos.im.synnefo_settings:loggers'
|
|
209 |
'default_settings = astakos.im.synnefo_settings', |
|
210 |
'web_apps = astakos.im.synnefo_settings:installed_apps', |
|
211 |
'web_middleware = astakos.im.synnefo_settings:middlware_classes', |
|
212 |
'web_context_processors = astakos.im.synnefo_settings:context_processors', |
|
213 |
'urls = astakos.urls:urlpatterns', |
|
214 |
'web_static = astakos.im.synnefo_settings:static_files', |
|
215 |
'loggers = astakos.im.synnefo_settings:loggers' |
|
213 | 216 |
] |
214 | 217 |
} |
215 | 218 |
) |
216 |
|
Also available in: Unified diff