Skip to content

Commit

Permalink
update 1.16.3
Browse files Browse the repository at this point in the history
  • Loading branch information
staugur committed Feb 8, 2025
1 parent 6a7da0b commit 2ce3c1d
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 14 deletions.
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ __pycache__/
**/*.qiniu_pythonsdk_hostscache.json
Snapshot/
.git/
static/upload/
static/upload/
.venv
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
flask-version: ["2.1.0", "2.2.0"]
python-version: ["3.8", "3.9", "3.10"]
flask-version: ["3.1.0"]
python-version: ["3.8", "3.10"]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -- build and run with debian(multiarch) --
FROM python:3.9-slim
FROM python:3.10-slim
LABEL maintainer=me@tcw.im
ARG PIPMIRROR=https://pypi.org/simple
ENV sapic_isrun=true
Expand Down
14 changes: 7 additions & 7 deletions requirements/base.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Flask>=2.1.0,<3.0.0
redis>=4.4.0
requests>=2.28.0
user_agents>=2.2.0
bleach>=5.0.0
Flask==3.1.0
redis==5.2.1
requests==2.32.3
user_agents==2.2.0
bleach==6.2.0
bleach[css]
semver>=2.13.0
PyJWT>=2.4.0
semver==3.0.4
PyJWT==2.10.1
2 changes: 1 addition & 1 deletion src/libs/hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
from flask import (
render_template,
render_template_string,
Markup,
abort,
send_from_directory,
url_for,
)
from markupsafe import Markup
from utils.tool import (
Attribution,
is_valid_verion,
Expand Down
2 changes: 1 addition & 1 deletion src/utils/_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def __getDict(self, str_name, dict_name, value):

def _getProperties(self):
try:
pro_file = open(self.filename, "Ur")
pro_file = open(self.filename, "r")
for line in pro_file.readlines():
line = line.strip().replace("\n", "")
if line.find("#") != -1:
Expand Down
2 changes: 1 addition & 1 deletion src/utils/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
jsonify,
current_app,
make_response,
Markup,
)
from markupsafe import Markup
from jinja2 import Environment, FileSystemLoader
from sys import executable
from functools import partial
Expand Down

0 comments on commit 2ce3c1d

Please sign in to comment.