Commit fe250250 authored by Jason Madden's avatar Jason Madden

Cleanup whitespace in setup.py

parent 7fb15fe5
...@@ -11,11 +11,11 @@ ...@@ -11,11 +11,11 @@
# FOR A PARTICULAR PURPOSE. # FOR A PARTICULAR PURPOSE.
# #
############################################################################## ##############################################################################
version = '5.2.5.dev0'
import os import os
from setuptools import setup, find_packages from setuptools import setup, find_packages
version = '5.2.5.dev0'
classifiers = """\ classifiers = """\
Intended Audience :: Developers Intended Audience :: Developers
License :: OSI Approved :: Zope Public License License :: OSI Approved :: Zope Public License
...@@ -79,7 +79,7 @@ def alltests(): ...@@ -79,7 +79,7 @@ def alltests():
suite = unittest.TestSuite() suite = unittest.TestSuite()
base = pkg_resources.working_set.find( base = pkg_resources.working_set.find(
pkg_resources.Requirement.parse('ZODB')).location pkg_resources.Requirement.parse('ZODB')).location
for dirpath, dirnames, filenames in os.walk(base): for dirpath, _dirnames, filenames in os.walk(base):
if os.path.basename(dirpath) == 'tests': if os.path.basename(dirpath) == 'tests':
for filename in filenames: for filename in filenames:
if filename.endswith('.py') and filename.startswith('test'): if filename.endswith('.py') and filename.startswith('test'):
...@@ -104,27 +104,28 @@ tests_require = [ ...@@ -104,27 +104,28 @@ tests_require = [
'zope.testrunner >= 4.4.6', 'zope.testrunner >= 4.4.6',
] ]
setup(name="ZODB", setup(
name="ZODB",
version=version, version=version,
author="Jim Fulton", author="Jim Fulton",
author_email="jim@zope.com", author_email="jim@zope.com",
maintainer="Zope Foundation and Contributors", maintainer="Zope Foundation and Contributors",
maintainer_email="zodb-dev@zope.org", maintainer_email="zodb-dev@zope.org",
keywords="database nosql python zope", keywords="database nosql python zope",
packages = find_packages('src'), packages=find_packages('src'),
package_dir = {'': 'src'}, package_dir={'': 'src'},
url = 'http://www.zodb.org/', url='http://www.zodb.org/',
license = "ZPL 2.1", license="ZPL 2.1",
platforms = ["any"], platforms=["any"],
classifiers = list(filter(None, classifiers.split("\n"))), classifiers=list(filter(None, classifiers.split("\n"))),
description = long_description.split('\n', 2)[1], description=long_description.split('\n', 2)[1],
long_description = long_description, long_description=long_description,
test_suite="__main__.alltests", # to support "setup.py test" test_suite="__main__.alltests", # to support "setup.py test"
tests_require = tests_require, tests_require=tests_require,
extras_require = { extras_require={
'test': tests_require, 'test': tests_require,
}, },
install_requires = [ install_requires=[
'persistent >= 4.2.0', 'persistent >= 4.2.0',
'BTrees >= 4.2.0', 'BTrees >= 4.2.0',
'ZConfig', 'ZConfig',
...@@ -134,8 +135,8 @@ setup(name="ZODB", ...@@ -134,8 +135,8 @@ setup(name="ZODB",
'zope.interface', 'zope.interface',
'zodbpickle >= 0.6.0', 'zodbpickle >= 0.6.0',
], ],
zip_safe = False, zip_safe=False,
entry_points = """ entry_points="""
[console_scripts] [console_scripts]
fsdump = ZODB.FileStorage.fsdump:main fsdump = ZODB.FileStorage.fsdump:main
fsoids = ZODB.scripts.fsoids:main fsoids = ZODB.scripts.fsoids:main
...@@ -143,5 +144,5 @@ setup(name="ZODB", ...@@ -143,5 +144,5 @@ setup(name="ZODB",
fstail = ZODB.scripts.fstail:Main fstail = ZODB.scripts.fstail:Main
repozo = ZODB.scripts.repozo:main repozo = ZODB.scripts.repozo:main
""", """,
include_package_data = True, include_package_data=True,
) )
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment