Skip to content

Commit

Permalink
use setuptools-scm extracts PaddleOCR versions (#13716)
Browse files Browse the repository at this point in the history
* use setuptools-scm extracts PaddleOCR versions

* fix bug
  • Loading branch information
GreatV committed Aug 29, 2024
1 parent 40c5662 commit 29baf0e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 14 deletions.
32 changes: 22 additions & 10 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -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
1 change: 0 additions & 1 deletion VERSION_NUMBER

This file was deleted.

6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools", "wheel"]
requires = ["setuptools==72.1.0", "wheel", "setuptools_scm"]
build-backend = "setuptools.build_meta"

[project]
Expand Down Expand Up @@ -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'

0 comments on commit 29baf0e

Please sign in to comment.