Revision 2715ade4 snf-pithos-backend/setup.py

b/snf-pithos-backend/setup.py
89 89
# Note: you may want to copy this into your setup.py file verbatim, as
90 90
# you can't import this from another package, when you don't know if
91 91
# that package is installed yet.
92

  
93

  
92 94
def find_package_data(
93 95
    where=".",
94 96
    package="",
95 97
    exclude=standard_exclude,
96 98
    exclude_directories=standard_exclude_directories,
97 99
    only_in_packages=True,
98
    show_ignored=False):
100
        show_ignored=False):
99 101
    """
100 102
    Return a dictionary suitable for use in ``package_data``
101 103
    in a distutils ``setup.py`` file.
......
132 134
                bad_name = False
133 135
                for pattern in exclude_directories:
134 136
                    if (fnmatchcase(name, pattern)
135
                        or fn.lower() == pattern.lower()):
137
                            or fn.lower() == pattern.lower()):
136 138
                        bad_name = True
137 139
                        if show_ignored:
138 140
                            print >> sys.stderr, (
......
142 144
                if bad_name:
143 145
                    continue
144 146
                if (os.path.isfile(os.path.join(fn, "__init__.py"))
145
                    and not prefix):
147
                        and not prefix):
146 148
                    if not package:
147 149
                        new_package = name
148 150
                    else:
149 151
                        new_package = package + "." + name
150 152
                    stack.append((fn, "", new_package, False))
151 153
                else:
152
                    stack.append((fn, prefix + name + "/", package, only_in_packages))
154
                    stack.append(
155
                        (fn, prefix + name + "/", package, only_in_packages))
153 156
            elif package or not only_in_packages:
154 157
                # is a file
155 158
                bad_name = False
156 159
                for pattern in exclude:
157 160
                    if (fnmatchcase(name, pattern)
158
                        or fn.lower() == pattern.lower()):
161
                            or fn.lower() == pattern.lower()):
159 162
                        bad_name = True
160 163
                        if show_ignored:
161 164
                            print >> sys.stderr, (
......
164 167
                        break
165 168
                if bad_name:
166 169
                    continue
167
                out.setdefault(package, []).append(prefix+name)
170
                out.setdefault(package, []).append(prefix + name)
168 171
    return out
169 172

  
170 173
setup(
171
    name = 'snf-pithos-backend',
172
    version = VERSION,
173
    license = 'BSD',
174
    url = 'http://code.grnet.gr/',
175
    description = SHORT_DESCRIPTION,
176
    long_description=README + '\n\n' +  CHANGES,
177
    classifiers = CLASSIFIERS,
178

  
179
    author = 'Package author',
180
    author_email = 'author@grnet.gr',
181
    maintainer = 'Package maintainer',
182
    maintainer_email = 'maintainer@grnet.gr',
183

  
184
    namespace_packages = ['pithos'],
185
    packages = PACKAGES,
186
    package_dir= {'': PACKAGES_ROOT},
174
    name='snf-pithos-backend',
175
    version=VERSION,
176
    license='BSD',
177
    url='http://code.grnet.gr/',
178
    description=SHORT_DESCRIPTION,
179
    long_description=README + '\n\n' + CHANGES,
180
    classifiers=CLASSIFIERS,
181

  
182
    author='Package author',
183
    author_email='author@grnet.gr',
184
    maintainer='Package maintainer',
185
    maintainer_email='maintainer@grnet.gr',
186

  
187
    namespace_packages=['pithos'],
188
    packages=PACKAGES,
189
    package_dir={'': PACKAGES_ROOT},
187 190
    package_data=find_package_data("."),
188
    include_package_data = True,
189
    zip_safe = False,
191
    include_package_data=True,
192
    zip_safe=False,
190 193

  
191
    dependency_links = [
194
    dependency_links=[
192 195
        'http://docs.dev.grnet.gr/pypi/'],
193 196

  
194
    install_requires = INSTALL_REQUIRES,
195
    extras_require = EXTRAS_REQUIRES,
196
    tests_require = TESTS_REQUIRES,
197
    install_requires=INSTALL_REQUIRES,
198
    extras_require=EXTRAS_REQUIRES,
199
    tests_require=TESTS_REQUIRES,
197 200

  
198
    entry_points = {
199
     'console_scripts': [
200
         'pithos-migrate = pithos.backends.migrate:main'
201
     ],
201
    entry_points={
202
        'console_scripts': [
203
            'pithos-migrate = pithos.backends.migrate:main'
204
        ],
202 205
    },
203 206
)
204

  

Also available in: Unified diff