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

Flake8 cleanup

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