Skip to content

Commit

Permalink
Fix issue with PIP 10
Browse files Browse the repository at this point in the history
  • Loading branch information
m0ngr31 authored Apr 16, 2018
1 parent 875f509 commit 75228ce
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
Easy Alexa Skills Kit integration for Flask
"""
from setuptools import setup
from pip.req import parse_requirements

def parse_requirements(filename):
""" load requirements from a pip requirements file """
lineiter = (line.strip() for line in open(filename))
return [line for line in lineiter if line and not line.startswith("#")]

setup(
name='Flask-Ask',
Expand All @@ -20,10 +24,7 @@
zip_safe=False,
include_package_data=True,
platforms='any',
install_requires=[
str(item.req) for item in
parse_requirements('requirements.txt', session=False)
],
install_requires=parse_requirements('requirements.txt'),
test_requires=[
'mock',
'requests'
Expand Down

0 comments on commit 75228ce

Please sign in to comment.