Skip to content

Commit 1b19234

Browse files
authored
Merge pull request #118 from dakotablair/dependency_upgrades
Dependabot suggested dependency upgrades
2 parents f4f7484 + 28a1360 commit 1b19234

File tree

8 files changed

+306
-12000
lines changed

8 files changed

+306
-12000
lines changed

frontend/v1/package-lock.json

Lines changed: 270 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/v1/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "chimbuko-vis",
3-
"version": "3.0.0",
3+
"version": "3.0.1",
44
"description": "Front-end package of Chimbuko visualization",
55
"main": "index.js",
66
"scripts": {
@@ -9,7 +9,7 @@
99
"dev-build": "webpack --mode development --progress --config webpack.config.js",
1010
"watch": "webpack --mode development --progress --config webpack.config.js --watch"
1111
},
12-
"author": "Sungsoo Ha, Wei Xu",
12+
"author": "David Dakota Blair, Sungsoo Ha, Wei Xu",
1313
"license": "ISC",
1414
"devDependencies": {
1515
"babel-core": "^6.26.3",
@@ -26,16 +26,19 @@
2626
"webpack-cli": "^5.1.4"
2727
},
2828
"dependencies": {
29+
"@babel/runtime": "^7.27.6",
2930
"@material-ui/core": "^4.4.0",
3031
"@material-ui/icons": "^4.2.1",
3132
"@material-ui/lab": "^4.0.0-alpha.29",
3233
"@material-ui/styles": "^4.3.3",
3334
"axios": "^1.8.4",
35+
"brace-expansion": "^1.1.12",
3436
"chart.js": "^2.9.4",
3537
"chartjs-plugin-streaming": "1.8.0",
3638
"chartjs-plugin-zoom": "^0.7.7",
3739
"clsx": "^1.0.4",
3840
"d3": "^5.12.0",
41+
"form-data": "^4.0.4",
3942
"history": "^4.9.0",
4043
"moment": "^2.29.4",
4144
"ncp": "^2.0.0",

manager.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
from gevent import monkey
33
monkey.patch_all()
44

5-
import types
5+
import collections
6+
import os
67
import subprocess
78
import sys
8-
import os
9+
import types
910

1011
# monkey patch flask to support old version of flask_script
1112
import flask
@@ -16,7 +17,9 @@
1617
_compat.text_type = str
1718
sys.modules[module_name] = _compat
1819
setattr(flask, '_compat', _compat)
19-
flask._request_ctx_stack = None
20+
mock_request_ctx_stack = collections.namedtuple("mock", ["top"])
21+
mock_request_ctx_stack.top = collections.namedtuple("top", ["app"])
22+
flask._request_ctx_stack = mock_request_ctx_stack
2023

2124
from flask_script import Manager, Command, Server as _Server, Option
2225

requirements.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ Cython==3.0.4
1111
dnspython==2.6.1
1212
flask==3.0.3
1313
Flask-Script==2.0.6
14-
Flask-SocketIO==2.9.6
15-
Flask-SQLAlchemy==2.5.1
14+
Flask-SocketIO==5.5.1
15+
Flask-SQLAlchemy==3.1.1
1616
flit_core==3.9.0
1717
gevent==24.2.1
1818
greenlet==2.0.2
@@ -25,15 +25,15 @@ MarkupSafe==2.1.5
2525
pkgconfig==1.5.5
2626
pybind11==2.13.4
2727
pycparser==2.21
28-
python-engineio==4.10.1
29-
python-socketio==5.11.4
28+
python-engineio==4.12.2
29+
python-socketio==5.13.0
3030
pytz==2023.3
3131
redis==4.5.4
32-
requests==2.32.3
32+
requests==2.32.4
3333
runstats==1.8.0
3434
six==1.16.0
35-
SQLAlchemy==1.4.45
36-
urllib3==1.26.19
35+
SQLAlchemy==2.0.41
36+
urllib3==2.2.3
3737
vine==5.1.0
3838
werkzeug==3.0.6
3939
zipp==3.20

server/server.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
import json
2+
import os
3+
14
from flask import (
25
Blueprint,
36
Response,
@@ -13,6 +16,15 @@
1316
main = Blueprint('main', __name__)
1417

1518

19+
@main.route('/build')
20+
def build():
21+
with open("./frontend/v1/package.json") as f:
22+
npm_package = json.load(f)
23+
return jsonify({
24+
"npm_package_version": npm_package["version"]
25+
})
26+
27+
1628
@main.before_app_request
1729
def before_request():
1830
"""Update requests per second stats."""
@@ -23,6 +35,8 @@ def before_request():
2335
def stop():
2436
import time
2537

38+
global pdb
39+
2640
def get_inspect():
2741
from requests import get
2842
resp = get(current_app.url_for('tasks.get_info', _external=True))
@@ -63,7 +77,7 @@ def get_inspect():
6377
socketio.stop()
6478
print("Shutting down SocketIO web server!")
6579

66-
if pdb:
80+
if 'pdb' in globals():
6781
del pdb
6882
print("Shutting down provdb!")
6983

server/static/js/bundle.js

Lines changed: 1 addition & 11947 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
except ImportError: # pragma: no cover
55
from cStringIO import StringIO as BytesIO
66

7-
from flask import Blueprint, abort, current_app, g, request
7+
from flask import Blueprint, Flask, abort, current_app, g, request
88
from werkzeug.exceptions import InternalServerError
99
from celery import states
1010

webserver/run_webserver.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ else
4444
fi
4545

4646
echo "create db ..."
47-
python3.8 manager.py createdb
47+
python3.8 manager.py createdb &
4848

4949
echo "run redis ..."
5050
webserver/run-redis.sh &

0 commit comments

Comments
 (0)