Skip to content

Commit 2ce3c1d

Browse files
committed
update 1.16.3
1 parent 6a7da0b commit 2ce3c1d

File tree

7 files changed

+15
-14
lines changed

7 files changed

+15
-14
lines changed

.dockerignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ __pycache__/
77
**/*.qiniu_pythonsdk_hostscache.json
88
Snapshot/
99
.git/
10-
static/upload/
10+
static/upload/
11+
.venv

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
flask-version: ["2.1.0", "2.2.0"]
16-
python-version: ["3.8", "3.9", "3.10"]
15+
flask-version: ["3.1.0"]
16+
python-version: ["3.8", "3.10"]
1717

1818
steps:
1919
- uses: actions/checkout@v2

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -- build and run with debian(multiarch) --
2-
FROM python:3.9-slim
2+
FROM python:3.10-slim
33
44
ARG PIPMIRROR=https://pypi.org/simple
55
ENV sapic_isrun=true

requirements/base.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
Flask>=2.1.0,<3.0.0
2-
redis>=4.4.0
3-
requests>=2.28.0
4-
user_agents>=2.2.0
5-
bleach>=5.0.0
1+
Flask==3.1.0
2+
redis==5.2.1
3+
requests==2.32.3
4+
user_agents==2.2.0
5+
bleach==6.2.0
66
bleach[css]
7-
semver>=2.13.0
8-
PyJWT>=2.4.0
7+
semver==3.0.4
8+
PyJWT==2.10.1

src/libs/hook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@
2727
from flask import (
2828
render_template,
2929
render_template_string,
30-
Markup,
3130
abort,
3231
send_from_directory,
3332
url_for,
3433
)
34+
from markupsafe import Markup
3535
from utils.tool import (
3636
Attribution,
3737
is_valid_verion,

src/utils/_compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def __getDict(self, str_name, dict_name, value):
5757

5858
def _getProperties(self):
5959
try:
60-
pro_file = open(self.filename, "Ur")
60+
pro_file = open(self.filename, "r")
6161
for line in pro_file.readlines():
6262
line = line.strip().replace("\n", "")
6363
if line.find("#") != -1:

src/utils/web.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
jsonify,
3232
current_app,
3333
make_response,
34-
Markup,
3534
)
35+
from markupsafe import Markup
3636
from jinja2 import Environment, FileSystemLoader
3737
from sys import executable
3838
from functools import partial

0 commit comments

Comments
 (0)