Skip to content

Commit b32677c

Browse files
authored
fix weird version info (#12003)
1 parent a730065 commit b32677c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,11 @@
1414

1515
from setuptools import setup
1616
from io import open
17-
import sys
1817
import subprocess
1918

2019
# get version by matchiing, so will not need to setup complex env in github aciton
2120
p = subprocess.Popen(
22-
"grep ^VERSION ./paddleocr.py | cut -d\\' -f 2",
21+
"grep ^VERSION ./paddleocr.py | awk '{print $3}' | tr -d '\"'",
2322
stdout=subprocess.PIPE,
2423
stderr=subprocess.PIPE,
2524
shell=True,
@@ -57,7 +56,7 @@ def readme():
5756
["requirements.txt", "ppstructure/recovery/requirements.txt"]
5857
),
5958
license="Apache License 2.0",
60-
description="Awesome OCR toolkits based on PaddlePaddle8.6M ultra-lightweight pre-trained model, support training and deployment among server, mobile, embedded and IoT devices",
59+
description="Awesome OCR toolkits based on PaddlePaddle(8.6M ultra-lightweight pre-trained model, support training and deployment among server, mobile, embedded and IoT devices)",
6160
long_description=readme(),
6261
long_description_content_type="text/markdown",
6362
url="https://github.com/PaddlePaddle/PaddleOCR",

0 commit comments

Comments
 (0)