Skip to content

Commit

Permalink
Merge branch 'master' of github.com:johnwheeler/flask-ask
Browse files Browse the repository at this point in the history
  • Loading branch information
w19787 committed May 18, 2018
2 parents 6955151 + 7456ea5 commit 9854f84
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions flask_ask/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import yaml
import inspect
from datetime import datetime
from io import StringIO
from io import BytesIO
from functools import wraps, partial

import aniso8601
Expand Down Expand Up @@ -612,7 +612,7 @@ def unicode_to_wsgi(u):
body = json.dumps(event)
environ['CONTENT_TYPE'] = 'application/json'
environ['CONTENT_LENGTH'] = len(body)
environ['wsgi.input'] = StringIO(body)
environ['wsgi.input'] = BytesIO(body)

# Start response is a required callback that must be passed when
# the application is invoked. It is used to set HTTP status and
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
aniso8601==1.2.0
Flask==0.12.1
cryptography==2.1.4
pyOpenSSL==17.0.0
PyYAML==3.12
six==1.11.0
Expand Down
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 9854f84

Please sign in to comment.