Skip to content

Commit

Permalink
Merge pull request #167 from OrkoHunter/deprecate-flask-session
Browse files Browse the repository at this point in the history
Deprecare Flask-Session to fix master build
  • Loading branch information
OrkoHunter authored Apr 28, 2020
2 parents f8cfe0f + b6ee98d commit b441025
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ sudo: false
language: python

python:
- 3.6
- 3.7

cache:
directories:
Expand Down
1 change: 0 additions & 1 deletion requirements/base.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
requests==2.21.0
Flask-Session==0.3.0
flask==1.0.2
gunicorn==19.6.0
pycodestyle>=2.3.0
Expand Down
4 changes: 2 additions & 2 deletions requirements/test.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-r base.txt
pytest==3.2.2
pytest-flask==0.10.0
pytest>=5.2
pytest-flask>=0.15.1
pytest-mock==1.6.3
mock==3.0.5
2 changes: 1 addition & 1 deletion runtime.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python-3.7.2
python-3.7.6
3 changes: 0 additions & 3 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@
import sys

from flask import Flask, redirect, request
from flask_session import Session

from pep8speaks import handlers, utils


def create_app():
app = Flask(__name__)
sess = Session()

logging.basicConfig(stream=sys.stdout, level=logging.DEBUG)

Expand Down Expand Up @@ -47,7 +45,6 @@ def main():
app.secret_key = os.environ.setdefault("APP_SECRET_KEY", "")
app.config['SESSION_TYPE'] = 'filesystem'

sess.init_app(app)
app.debug = False
return app

Expand Down

0 comments on commit b441025

Please sign in to comment.