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'):
...@@ -96,7 +96,7 @@ def read(path): ...@@ -96,7 +96,7 @@ def read(path):
with open(path) as f: with open(path) as f:
return f.read() return f.read()
long_description = read("README.rst") + "\n\n" + read("CHANGES.rst") long_description = read("README.rst") + "\n\n" + read("CHANGES.rst")
tests_require = [ tests_require = [
'manuel', 'manuel',
...@@ -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(
version=version, name="ZODB",
author="Jim Fulton", version=version,
author_email="jim@zope.com", author="Jim Fulton",
maintainer="Zope Foundation and Contributors", author_email="jim@zope.com",
maintainer_email="zodb-dev@zope.org", maintainer="Zope Foundation and Contributors",
keywords="database nosql python zope", maintainer_email="zodb-dev@zope.org",
packages = find_packages('src'), keywords="database nosql python zope",
package_dir = {'': 'src'}, packages=find_packages('src'),
url = 'http://www.zodb.org/', package_dir={'': 'src'},
license = "ZPL 2.1", url='http://www.zodb.org/',
platforms = ["any"], license="ZPL 2.1",
classifiers = list(filter(None, classifiers.split("\n"))), platforms=["any"],
description = long_description.split('\n', 2)[1], classifiers=list(filter(None, classifiers.split("\n"))),
long_description = long_description, description=long_description.split('\n', 2)[1],
test_suite="__main__.alltests", # to support "setup.py test" long_description=long_description,
tests_require = tests_require, test_suite="__main__.alltests", # to support "setup.py test"
extras_require = { tests_require=tests_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',
...@@ -133,15 +134,15 @@ setup(name="ZODB", ...@@ -133,15 +134,15 @@ setup(name="ZODB",
'zc.lockfile', 'zc.lockfile',
'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
fsrefs = ZODB.scripts.fsrefs:main fsrefs = ZODB.scripts.fsrefs:main
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