#!/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',
    ],
)

#!/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 list(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',
    ],
)

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