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 dbe5900654..0000000000 --- a/VERSION_NUMBER +++ /dev/null @@ -1 +0,0 @@ -2.8.1 diff --git a/pyproject.toml b/pyproject.toml index a382edd138..5dc7232217 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools", "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'