at master 912 B view raw
1diff --git a/setup.py b/setup.py 2index 16938a4..5167972 100644 3--- a/setup.py 4+++ b/setup.py 5@@ -6,7 +6,6 @@ from pathlib import Path 6 from typing import List, Union 7 8 import setuptools 9-from get_pypi_latest_version import GetPyPiLatestVersion 10 11 12 def read_txt(txt_path: Union[Path, str]) -> List[str]: 13@@ -25,20 +24,7 @@ def get_readme(): 14 15 16 MODULE_NAME = "rapidocr" 17- 18-obtainer = GetPyPiLatestVersion() 19-try: 20- latest_version = obtainer(MODULE_NAME) 21-except Exception as e: 22- latest_version = "0.0.0" 23-VERSION_NUM = obtainer.version_add_one(latest_version, add_patch=True) 24- 25-if len(sys.argv) > 2: 26- match_str = " ".join(sys.argv[2:]) 27- matched_versions = obtainer.extract_version(match_str) 28- if matched_versions: 29- VERSION_NUM = matched_versions 30-sys.argv = sys.argv[:2] 31+VERSION_NUM = "@version@" 32 33 project_urls = { 34 "Documentation": "https://rapidai.github.io/RapidOCRDocs",