# Package requirements
INSTALL_REQUIRES = [
- 'snf-common>=0.9.0rc',
+ 'snf-common>0.9.13',
'SQLAlchemy==0.6.3',
'alembic>=0.3.4, <0.4',
]
# Provided as an attribute, so you can append to these instead
# of replicating them:
-standard_exclude = ["*.py", "*.pyc", "*$py.class", "*~", ".*", "*.bak"]
+standard_exclude = ["*.pyc", "*$py.class", "*~", ".*", "*.bak"]
standard_exclude_directories = [
".*", "CVS", "_darcs", "./build", "./dist", "EGG-INFO", "*.egg-info", "snf-0.7"
]
# Note: you may want to copy this into your setup.py file verbatim, as
# you can't import this from another package, when you don't know if
# that package is installed yet.
+
+
def find_package_data(
where=".",
package="",
exclude=standard_exclude,
exclude_directories=standard_exclude_directories,
only_in_packages=True,
- show_ignored=False):
+ show_ignored=False):
"""
Return a dictionary suitable for use in ``package_data``
in a distutils ``setup.py`` file.
bad_name = False
for pattern in exclude_directories:
if (fnmatchcase(name, pattern)
- or fn.lower() == pattern.lower()):
+ or fn.lower() == pattern.lower()):
bad_name = True
if show_ignored:
print >> sys.stderr, (
if bad_name:
continue
if (os.path.isfile(os.path.join(fn, "__init__.py"))
- and not prefix):
+ and not prefix):
if not package:
new_package = name
else:
new_package = package + "." + name
stack.append((fn, "", new_package, False))
else:
- stack.append((fn, prefix + name + "/", package, only_in_packages))
+ stack.append(
+ (fn, prefix + name + "/", package, only_in_packages))
elif package or not only_in_packages:
# is a file
bad_name = False
for pattern in exclude:
if (fnmatchcase(name, pattern)
- or fn.lower() == pattern.lower()):
+ or fn.lower() == pattern.lower()):
bad_name = True
if show_ignored:
print >> sys.stderr, (
break
if bad_name:
continue
- out.setdefault(package, []).append(prefix+name)
+ out.setdefault(package, []).append(prefix + name)
return out
setup(
- name = 'snf-pithos-backend',
- version = VERSION,
- license = 'BSD',
- url = 'http://code.grnet.gr/',
- description = SHORT_DESCRIPTION,
- long_description=README + '\n\n' + CHANGES,
- classifiers = CLASSIFIERS,
-
- author = 'Package author',
- author_email = 'author@grnet.gr',
- maintainer = 'Package maintainer',
- maintainer_email = 'maintainer@grnet.gr',
-
- namespace_packages = ['pithos'],
- packages = PACKAGES,
- package_dir= {'': PACKAGES_ROOT},
- include_package_data = True,
- package_data = find_package_data('.'),
- zip_safe = False,
-
- dependency_links = [
+ name='snf-pithos-backend',
+ version=VERSION,
+ license='BSD',
+ url='http://code.grnet.gr/',
+ description=SHORT_DESCRIPTION,
+ long_description=README + '\n\n' + CHANGES,
+ classifiers=CLASSIFIERS,
+
+ author='Package author',
+ author_email='author@grnet.gr',
+ maintainer='Package maintainer',
+ maintainer_email='maintainer@grnet.gr',
+
+ namespace_packages=['pithos'],
+ packages=PACKAGES,
+ package_dir={'': PACKAGES_ROOT},
+ package_data=find_package_data("."),
+ include_package_data=True,
+ zip_safe=False,
+
+ dependency_links=[
'http://docs.dev.grnet.gr/pypi/'],
- install_requires = INSTALL_REQUIRES,
- extras_require = EXTRAS_REQUIRES,
- tests_require = TESTS_REQUIRES,
+ install_requires=INSTALL_REQUIRES,
+ extras_require=EXTRAS_REQUIRES,
+ tests_require=TESTS_REQUIRES,
- entry_points = {
- 'console_scripts': [
- 'pithos-migrate = pithos.backends.migrate:main'
- ],
+ entry_points={
+ 'console_scripts': [
+ 'pithos-migrate = pithos.backends.migrate:main'
+ ],
},
)
-