#!/usr/bin/env python

from setuptools import setup


def reqs_from_file(filename):
    with open(filename) as f:
        lineiter = (line.rstrip() for line in f)
        return filter(None, lineiter)


setup(
    name='git-tools',
    version='0.1',
    description='git tools',

    # Required packages
    install_requires=reqs_from_file('requirements.txt'),
    tests_require=reqs_from_file('test-requirements.txt'),

    # Main packages
    packages=[
        'src',
    ],

    # Command line scripts
    scripts=[
        'src/git-pep8',
    ],
)

@@ -171,16 +171,21 @@
  return 
+list(
 filter(N
@@ -198,16 +198,17 @@
 ineiter)
+)
 %0A%0A%0Asetup

Change filter() to list(filter()) for python 3+