Skip to content

Commit ffb079c

Browse files
peter-doggartPeter Doggart
and
Peter Doggart
authoredNov 28, 2024
Fix testing for Flask 3.1.0 changes. (#629)
* Fix testing for Flask 3.1.0 changes. * Deprecate python 3.8. --------- Co-authored-by: Peter Doggart <peter.doggart@pulseai.io>
1 parent dbd6f0d commit ffb079c

File tree

8 files changed

+12
-13
lines changed

8 files changed

+12
-13
lines changed
 

‎.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ jobs:
77
build:
88
runs-on: ubuntu-latest
99
steps:
10-
- name: Set up Python 3.8
10+
- name: Set up Python 3.9
1111
uses: actions/setup-python@v1
1212
with:
13-
python-version: 3.8
13+
python-version: 3.9
1414
- name: Checkout code
1515
uses: actions/checkout@v2
1616
- name: Install dependencies

‎.github/workflows/test.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
python-version: ["3.8", "3.9", "3.10", "3.11", "pypy3.8", "3.12"]
18+
python-version: ["3.9", "3.10", "3.11", "pypy3.9", "3.12"]
1919
flask: ["<3.0.0", ">=3.0.0"]
2020
steps:
2121
- name: Set up Python ${{ matrix.python-version }}
@@ -41,10 +41,10 @@ jobs:
4141
runs-on: ubuntu-latest
4242
if: github.event_name == 'pull_request'
4343
steps:
44-
- name: Set up Python 3.8
44+
- name: Set up Python 3.9
4545
uses: actions/setup-python@v4
4646
with:
47-
python-version: "3.8"
47+
python-version: "3.9"
4848
- name: Checkout ${{ github.base_ref }}
4949
uses: actions/checkout@v3
5050
with:

‎README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ and expose its documentation properly using `Swagger`_.
3838
Compatibility
3939
=============
4040

41-
Flask-RESTX requires Python 3.8+.
41+
Flask-RESTX requires Python 3.9+.
4242

4343
On Flask Compatibility
4444
======================

‎doc/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ development and to support our users.
3333
Compatibility
3434
=============
3535

36-
Flask-RESTX requires Python 3.8+.
36+
Flask-RESTX requires Python 3.9+.
3737

3838

3939
Installation

‎doc/installation.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ The development version can be downloaded from
2020
pip install -e .[dev,test]
2121
2222
23-
Flask-RESTX requires Python version 3.8+.
23+
Flask-RESTX requires Python version 3.9+.
2424
It's also working with PyPy and PyPy3.

‎setup.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ def pip(filename):
102102
"Topic :: System :: Software Distribution",
103103
"Programming Language :: Python",
104104
"Programming Language :: Python :: 3",
105-
"Programming Language :: Python :: 3.8",
106105
"Programming Language :: Python :: 3.9",
107106
"Programming Language :: Python :: 3.10",
108107
"Programming Language :: Python :: 3.11",
@@ -111,5 +110,5 @@ def pip(filename):
111110
"Topic :: Software Development :: Libraries :: Python Modules",
112111
"License :: OSI Approved :: BSD License",
113112
],
114-
python_requires=">=3.8",
113+
python_requires=">=3.9",
115114
)

‎tests/conftest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def get_specs(self, prefix="", status=200, **kwargs):
4444

4545
@pytest.fixture
4646
def app():
47-
app = Flask(__name__)
47+
app = Flask(__name__, subdomain_matching=True)
4848
app.test_client_class = TestClient
4949
yield app
5050

‎tox.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
[tox]
77
envlist =
8-
py{38, 39, 310, 311}-flask2,
8+
py{39, 310, 311}-flask2,
99
py{311, 312}-flask3
10-
pypy3.8
10+
pypy3.9
1111
doc
1212

1313
[testenv]

0 commit comments

Comments
 (0)