Commit 4edb7a3a authored by Kai Lautaportti's avatar Kai Lautaportti

Flake8 cleanup

parent 22384aae
......@@ -155,7 +155,7 @@ class NonInformativeTests(unittest.TestCase):
def test_call_script__bbb_for_callable_with_two_parameters(self):
recipe = self.make_recipe({}, 'test', {
'url': 'file://%s/testdata/package-0.0.0.tar.gz' % os.path.dirname(__file__),
})
})
# The hook script does not return anything so we (ab)use exceptions
# as a mechanism for asserting the function behaviour.
......@@ -177,7 +177,7 @@ class NonInformativeTests(unittest.TestCase):
recipe = self.make_recipe({}, 'test', {
'url': 'file://%s/testdata/package-0.0.0.tar.gz' % os.path.dirname(__file__),
'environment': 'HRC_TESTVAR=bar'
})
})
# The hook script does not return anything so we (ab)use exceptions
# as a mechanism for asserting the function behaviour.
......@@ -195,21 +195,21 @@ class NonInformativeTests(unittest.TestCase):
def test_suite():
suite = unittest.TestSuite((
doctest.DocFileSuite(
'README.txt',
setUp=setUp,
tearDown=zc.buildout.testing.buildoutTearDown,
optionflags=optionflags,
checker=renormalizing.RENormalizing([
(re.compile('--prefix=\S+sample-buildout'),
'--prefix=/sample_buildout'),
(re.compile('\s/\S+sample-buildout'),
' /sample_buildout'),
zc.buildout.testing.normalize_path,
]),
),
unittest.makeSuite(NonInformativeTests),
))
doctest.DocFileSuite(
'README.txt',
setUp=setUp,
tearDown=zc.buildout.testing.buildoutTearDown,
optionflags=optionflags,
checker=renormalizing.RENormalizing([
(re.compile('--prefix=\S+sample-buildout'),
'--prefix=/sample_buildout'),
(re.compile('\s/\S+sample-buildout'),
' /sample_buildout'),
zc.buildout.testing.normalize_path,
]),
),
unittest.makeSuite(NonInformativeTests),
))
return suite
if __name__ == '__main__':
......
......@@ -9,10 +9,11 @@ def read(*rnames):
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
setup(name=name,
version=version,
description="zc.buildout recipe for compiling and installing source distributions.",
long_description=(
setup(
name=name,
version=version,
description="zc.buildout recipe for compiling and installing source distributions.",
long_description=(
read('README.txt')
+ '\n' +
read('CHANGES.txt')
......@@ -24,28 +25,32 @@ setup(name=name,
+ '\n' +
'Download\n'
'***********************\n'
),
classifiers=[
'Framework :: Buildout',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Topic :: Software Development :: Build Tools',
'Topic :: Software Development :: Libraries :: Python Modules',
],
keywords='development buildout recipe',
author='Kai Lautaportti',
author_email='kai.lautaportti@hexagonit.fi',
url='http://github.com/hexagonit/hexagonit.recipe.cmmi',
license='BSD',
packages=find_packages(exclude=['ez_setup']),
namespace_packages=['hexagonit', 'hexagonit.recipe'],
include_package_data=True,
zip_safe=False,
install_requires=['zc.buildout', 'setuptools', 'hexagonit.recipe.download'],
extras_require={
),
classifiers=[
'Framework :: Buildout',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Topic :: Software Development :: Build Tools',
'Topic :: Software Development :: Libraries :: Python Modules',
],
keywords='development buildout recipe',
author='Kai Lautaportti',
author_email='kai.lautaportti@hexagonit.fi',
url='http://github.com/hexagonit/hexagonit.recipe.cmmi',
license='BSD',
packages=find_packages(exclude=['ez_setup']),
namespace_packages=['hexagonit', 'hexagonit.recipe'],
include_package_data=True,
zip_safe=False,
install_requires=[
'zc.buildout',
'setuptools',
'hexagonit.recipe.download',
],
extras_require={
'test': ['zope.testing'],
},
tests_require=['zope.testing'],
test_suite='%s.tests.test_suite' % name,
entry_points={'zc.buildout': ['default = %s:Recipe' % name]},
)
},
tests_require=['zope.testing'],
test_suite='%s.tests.test_suite' % name,
entry_points={'zc.buildout': ['default = %s:Recipe' % name]},
)
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