Commits

Thomas Lotze committed e218502

restructured setup.py according to tl.pkg conventions, removed pointer to test suite which had been deleted earlier

Comments (0)

Files changed (1)

 
 project_path = lambda *names: os.path.join(os.path.dirname(__file__), *names)
 
-longdesc = "\n\n".join((open(project_path("README.txt")).read(),
-                        open(project_path("ABOUT.txt")).read()))
 
-install_requires = [
-    'manuel>=1.0.0b3',
-    "setuptools",
-    ]
+setup(
+    name='tl.testing',
+    version='0.6dev',
 
-tests_require = [
-    'mock>=0.8dev',
-    "zope.testing",
-    ]
+    install_requires=[
+        'manuel>=1.0.0b3',
+        'setuptools',
+        ],
 
-extras_require = {
-    "test": tests_require,
-    }
+    extras_require={
+        'test': [
+            'mock>=0.8dev',
+            'zope.testing',
+            ],
+        },
 
-classifiers = [
-    "Intended Audience :: Developers",
-    "License :: OSI Approved :: Zope Public License",
-    "Programming Language :: Python",
-    "Topic :: Software Development :: Testing",
-    ]
+    author='Thomas Lotze',
+    author_email='thomas@thomas-lotze.de',
+    license='ZPL 2.1',
+    url='https://bitbucket.org/tlotze/tl.testing/',
 
-data_files = [("", glob.glob(project_path("*.txt")))]
+    keywords=('testing unittest doctest file directory tree sandbox helper '
+              'ls mkdir mock script manuel cairo graphics image thread'),
+    classifiers="""\
+Intended Audience :: Developers
+License :: OSI Approved :: Zope Public License
+Programming Language :: Python
+Programming Language :: Python :: 2
+Programming Language :: Python :: 2.6
+Programming Language :: Python :: 2.7
+Programming Language :: Python :: 2 :: Only
+Topic :: Software Development :: Testing
+"""[:-1].split('\n'),
+    description=__doc__.strip(),
+    long_description='\n\n'.join(open(project_path(name)).read() for name in (
+            'README.txt',
+            'ABOUT.txt',
+            )),
 
-
-setup(name="tl.testing",
-      version="0.6dev",
-      description=__doc__.strip(),
-      long_description=longdesc,
-      keywords=("testing unittest doctest file directory tree sandbox helper "
-                "ls mkdir mock script manuel cairo graphics image thread"),
-      classifiers=classifiers,
-      author="Thomas Lotze",
-      author_email="thomas@thomas-lotze.de",
-      url='https://bitbucket.org/tlotze/tl.testing/',
-      license="ZPL 2.1",
-      packages=find_packages(),
-      install_requires=install_requires,
-      extras_require=extras_require,
-      tests_require=tests_require,
-      include_package_data=True,
-      data_files=data_files,
-      test_suite="tl.testing.tests.test_suite",
-      namespace_packages=["tl"],
-      zip_safe=False,
-      )
+    namespace_packages=['tl'],
+    packages=find_packages(),
+    include_package_data=True,
+    data_files=[('', glob.glob(project_path('*.txt')))],
+    zip_safe=False,
+    )