Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit acb292b

Browse files
authored
[Bug fixes] fix flask-babel dependency (PaddlePaddle#5791)
* fix flask-babel dependency * fix protobuf dependency * update readthe docs requirements * fix doc requirements * update aiohttp dependency * update numpy dependency * update h11 dependency * update tiny-bert-random md5sum
1 parent 182ae45 commit acb292b

4 files changed

Lines changed: 14 additions & 11 deletions

File tree

β€Ž.readthedocs.yamlβ€Ž

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ sphinx:
2121
python:
2222
version: 3.8
2323
install:
24-
- requirements: requirements.txt
2524
- requirements: docs/requirements.txt
2625
- method: setuptools
2726
path: .

β€Ždocs/requirements.txtβ€Ž

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
# Defining the exact version will make sure things don't break
22

3-
jinja2==3.0.3
4-
sphinx==3.5.2
5-
sphinx_rtd_theme==0.5.2
6-
readthedocs-sphinx-search==0.1.0
3+
aiohttp==3.8.4
4+
numpy<1.27.0,>=1.19.5
5+
h11<0.13,>=0.11
6+
jinja2
7+
sphinx
8+
sphinx_rtd_theme
9+
readthedocs-sphinx-search
710

8-
Markdown < 3.4
9-
sphinx-copybutton==0.3.1
10-
sphinx-markdown-tables==0.0.15
11+
Markdown
12+
sphinx-copybutton
13+
sphinx-markdown-tables
1114

1215
# use paddlepaddle == 2.3.* according to: https://github.com/PaddlePaddle/Paddle/issues/48243
13-
paddlepaddle>=2.2.2,<2.4.0
16+
paddlepaddle>=2.4.2

β€Žpaddlenlp/taskflow/text_similarity.pyβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ class TextSimilarityTask(Task):
160160
],
161161
"model_config": [
162162
"https://bj.bcebos.com/paddlenlp/models/community/__internal_testing__/tiny-random-bert/config.json",
163-
"bfaa763f77da7cc796de4e0ad4b389e9",
163+
"136a73740ec1002d33eff32146678491",
164164
],
165165
},
166166
}

β€Žrequirements.txtβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ tqdm
99
paddlefsl
1010
sentencepiece
1111
huggingface_hub>=0.11.1
12+
protobuf==3.20.2 # onnx require: protobuf<4,>=3.20.2, paddle require different version on platforms, refer to: https://github.com/PaddlePaddle/Paddle/blob/cd88156a369bbfb83d6306f89e0ae6ebd78b8040/python/requirements.txt#L3
1213
paddle2onnx
13-
Flask-Babel < 3.0.0 # visualdl depends on Flask-Babel, but high version breaks read-the-docs
14+
Flask-Babel
1415
visualdl
1516
fastapi
1617
uvicorn

0 commit comments

Comments
Β (0)