mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2025-06-03 21:53:39 +08:00
fix weird version info (#12003)
This commit is contained in:
parent
a730065e7b
commit
b32677cd3b
5
setup.py
5
setup.py
@ -14,12 +14,11 @@
|
|||||||
|
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
from io import open
|
from io import open
|
||||||
import sys
|
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
# get version by matchiing, so will not need to setup complex env in github aciton
|
# get version by matchiing, so will not need to setup complex env in github aciton
|
||||||
p = subprocess.Popen(
|
p = subprocess.Popen(
|
||||||
"grep ^VERSION ./paddleocr.py | cut -d\\' -f 2",
|
"grep ^VERSION ./paddleocr.py | awk '{print $3}' | tr -d '\"'",
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
stderr=subprocess.PIPE,
|
stderr=subprocess.PIPE,
|
||||||
shell=True,
|
shell=True,
|
||||||
@ -57,7 +56,7 @@ setup(
|
|||||||
["requirements.txt", "ppstructure/recovery/requirements.txt"]
|
["requirements.txt", "ppstructure/recovery/requirements.txt"]
|
||||||
),
|
),
|
||||||
license="Apache License 2.0",
|
license="Apache License 2.0",
|
||||||
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",
|
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)",
|
||||||
long_description=readme(),
|
long_description=readme(),
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
url="https://github.com/PaddlePaddle/PaddleOCR",
|
url="https://github.com/PaddlePaddle/PaddleOCR",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user