Skip to content

Commit 4ccaec4

Browse files
committed
[deps] Bump Werkzeug to 3.1.3
This resolves several Dependabot alerts. Move the pinning down to requirements.server.text. Supersedes #26
1 parent 4e467aa commit 4ccaec4

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

lnt/server/ui/app.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import io
2+
import json
23
import logging
34
import logging.handlers
45
import sys
@@ -46,7 +47,7 @@ def __call__(self, environ, start_response):
4647
return self.app(environ, start_response)
4748

4849

49-
class LNTObjectJSONEncoder(flask.json.JSONEncoder):
50+
class LNTObjectJSONEncoder(json.JSONEncoder):
5051
"""Take SQLAlchemy objects and jsonify them. If the object has an __json__
5152
method, use that instead."""
5253

@@ -74,7 +75,7 @@ def default(self, obj):
7475

7576
return fields
7677

77-
return flask.json.JSONEncoder.default(self, obj)
78+
return json.JSONEncoder.default(self, obj)
7879

7980

8081
class Request(flask.Request):

lnt/server/ui/regression_views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def name(cls):
265265
return cls.__class__.__name__
266266

267267

268-
class LNTEncoder(flask.json.JSONEncoder):
268+
class LNTEncoder(json.JSONEncoder):
269269
"""Encode all the common LNT objects."""
270270
def default(self, obj):
271271
# Most of our objects have a __json__ defined.
@@ -276,7 +276,7 @@ def default(self, obj):
276276
return
277277
if name(obj) == "SampleField":
278278
return obj.name
279-
return flask.json.JSONEncoder.default(self, obj)
279+
return json.JSONEncoder.default(self, obj)
280280

281281

282282
@v4_route("/regressions/<int:id>", methods=["GET", "POST"])

requirements.client.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
.
1+
.

requirements.server.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
# These requirements are what you would install on a production server.
22
.
33
aniso8601==1.2.0
4-
click==6.7
5-
Flask-RESTful==0.3.4
6-
Flask-WTF==0.12
7-
Flask==0.12.2
4+
click==8.1.8
5+
Flask-RESTful==0.3.10
6+
Flask-WTF==1.2.0
7+
Flask==3.1.2
88
gunicorn==19.9.0
99
itsdangerous==0.24
10-
Jinja2==2.11.3
10+
Jinja2==3.1.6
1111
MarkupSafe==1.1.1
1212
progressbar2
1313
psycopg2==2.9.10
1414
python-gnupg==0.3.7
1515
pytz==2016.10
16-
pyyaml==5.1.2
16+
pyyaml==6.0
1717
SQLAlchemy==1.3.24
18-
Werkzeug==0.15.6
18+
Werkzeug==3.1.3
1919
WTForms==2.0.2

0 commit comments

Comments
 (0)