Skip to content

Commit

Permalink
Drop 2.0 support
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-lazar committed Feb 16, 2023
1 parent 9b55458 commit d3776ba
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
flask-version: ["2.0", "2.1", "2.2"]
flask-version: ["2.1", "2.2"]
os: [ubuntu-latest]
steps:
- name: Check out repository
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This version pulls in some long overdue dependency updates and adds
support for the latest versions of Flask and Python.

- Supported Python versions: `3.7`, `3.8`, `3.9`, `3.10`, `3.11`.
- Supported Flask versions: `2.x`, `3.x`
- Supported Flask versions: `2.1`, `2.2`

This version also removes the capability to negotiate TLS over
gopher. The code for this was particularly annoying to monkey-patch,
Expand Down
4 changes: 2 additions & 2 deletions flask_gopher/flask_gopher.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,8 +489,8 @@ def menu(self):
if not hasattr(g, "_flask_gopher_menu"):
host = request.environ["SERVER_NAME"]
port = request.environ["SERVER_PORT"]
setattr(g, "_flask_gopher_menu", self.menu_class(host, port))
return getattr(g, "_flask_gopher_menu")
g._flask_gopher_menu = self.menu_class(host, port)
return g._flask_gopher_menu

def render_menu(self, *lines):
"""
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def long_description():
include_package_data=True,
platforms="any",
install_requires=[
"Flask>=2.0",
"Flask>=2.1",
# pyfiglet v0.8.0 removes a bunch of fonts due to licensing issues :(
"pyfiglet<=0.7.6",
"tabulate",
Expand Down

0 comments on commit d3776ba

Please sign in to comment.