-
Notifications
You must be signed in to change notification settings - Fork 7.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
【OCR Issue No.12】Modify the setuptools configuration from SETUP.py into PYPROJECT.toml #12013
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
f8672be
init toml
Liyulingyue 29eab17
Merge branch 'refs/heads/main' into setup2toml
Liyulingyue 47dcf25
init toml
Liyulingyue 8d37b93
init toml
Liyulingyue 17ea8dc
init toml
Liyulingyue 53e1a0a
init toml
Liyulingyue 3a232d9
Update pyproject.toml
Liyulingyue fd15c1a
Update and rename setup_backup.py to setup.py
Liyulingyue 59fbdf0
Update pyproject.toml
Liyulingyue 941dbdd
Create VERSION_NUMBER
Liyulingyue d58ba0f
同步version_number
Liyulingyue 5ed0c62
update build yml
Liyulingyue 8ec404a
Merge branch 'PaddlePaddle:main' into setup2toml
Liyulingyue 144f31f
Merge branch 'PaddlePaddle:main' into setup2toml
Liyulingyue b6ab5d4
init toml
Liyulingyue 2e02b16
Apply suggestions from code review
Liyulingyue 11b7406
Apply suggestions from code review
Liyulingyue 4299680
init toml
Liyulingyue 99e6086
fix version
Liyulingyue 9baed76
fix version
Liyulingyue 9e5e2c7
Merge branch 'PaddlePaddle:main' into setup2toml
Liyulingyue File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2.8.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
[build-system] | ||
requires = ["setuptools", "setuptools-scm", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "paddleocr" | ||
# After each version release, the version number needs to be incremented | ||
dynamic = ["version"] | ||
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)" | ||
authors = [ | ||
{name = "PaddlePaddle", email = "Paddle-better@baidu.com"}, | ||
] | ||
maintainers = [ | ||
{name = "PaddlePaddle", email = "Paddle-better@baidu.com"}, | ||
] | ||
readme = "README.md" | ||
requires-python = ">=3.8" | ||
keywords = [ | ||
"ocr", | ||
"textdetection", | ||
"textrecognition", | ||
"paddleocr", | ||
"crnn", | ||
"east", | ||
"star-net", | ||
"rosetta", | ||
"ocrlite", | ||
"db", | ||
"chineseocr", | ||
"chinesetextdetection", | ||
"chinesetextrecognition", | ||
] | ||
license = {text = "Apache License 2.0"} | ||
classifiers = [ | ||
"Intended Audience :: Developers", | ||
"Operating System :: OS Independent", | ||
"Natural Language :: Chinese (Simplified)", | ||
"Programming Language :: Python :: 3", | ||
"Topic :: Utilities", | ||
] | ||
dependencies = [ | ||
"shapely", | ||
"scikit-image", | ||
"imgaug", | ||
"pyclipper", | ||
"lmdb", | ||
"tqdm", | ||
"numpy", | ||
"rapidfuzz", | ||
"opencv-python<=4.6.0.66", | ||
"opencv-contrib-python<=4.6.0.66", | ||
"cython", | ||
"Pillow>=10.0.0", | ||
"pyyaml", | ||
"python-docx", | ||
"beautifulsoup4", | ||
"fonttools>=4.24.0", | ||
"fire>=0.3.0", | ||
] | ||
|
||
[project.scripts] | ||
paddleocr = "paddleocr.paddleocr:main" | ||
|
||
[tool.setuptools] | ||
packages = ["paddleocr"] | ||
package-dir = { "paddleocr" = "" } | ||
include-package-data = true | ||
|
||
[tool.setuptools.dynamic] | ||
version = {file = "VERSION_NUMBER"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个文件应该不需要了吧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个可以留着,用来兼容以前的在命令行下运行
python setup.py
的使用习惯。