From ba1c81358f6ac23a2ed402ccd7d4113c97ff33e6 Mon Sep 17 00:00:00 2001 From: Wang Xin Date: Fri, 23 Aug 2024 17:27:31 +0800 Subject: [PATCH] use setuptools-scm extracts PaddleOCR versions (#13716) * use setuptools-scm extracts PaddleOCR versions * fix bug --- MANIFEST.in | 32 ++++++++++++++++++++++---------- VERSION_NUMBER | 1 - pyproject.toml | 6 +++--- 3 files changed, 25 insertions(+), 14 deletions(-) delete mode 100644 VERSION_NUMBER diff --git a/MANIFEST.in b/MANIFEST.in index a72b3728aa..5e6f4f23ba 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,10 +1,22 @@ -include LICENSE -include README.md - -recursive-include ppocr/utils *.* -recursive-include ppocr/data *.py -recursive-include ppocr/postprocess *.py -recursive-include tools/infer *.py -recursive-include tools __init__.py -recursive-include ppocr/utils/e2e_utils *.py -recursive-include ppstructure *.py +prune .github +prune applications +prune benchmark +prune configs +prune deploy +prune doc +prune docs +prune overrides +prune ppocr/ext_op +prune ppocr/losses +prune ppocr/metrics +prune ppocr/modeling +prune ppocr/optimizer +prune ppstructure/docs +prune test_tipc +prune tests +exclude .clang_format.hook +exclude .gitignore +exclude .pre-commit-config.yaml +exclude .style.yapf +exclude mkdocs.yml +exclude train.sh diff --git a/VERSION_NUMBER b/VERSION_NUMBER deleted file mode 100644 index 1817afea41..0000000000 --- a/VERSION_NUMBER +++ /dev/null @@ -1 +0,0 @@ -2.8.2 diff --git a/pyproject.toml b/pyproject.toml index 858b186bcb..5dc7232217 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools==72.1.0", "wheel"] +requires = ["setuptools==72.1.0", "wheel", "setuptools_scm"] build-backend = "setuptools.build_meta" [project] @@ -73,5 +73,5 @@ packages = ["paddleocr"] package-dir = { "paddleocr" = "" } include-package-data = true -[tool.setuptools.dynamic] -version = {file = "VERSION_NUMBER"} +[tool.setuptools_scm] +version_scheme = 'release-branch-semver'