-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
【OCR Issue No.12】Modify the setuptools configuration from SETUP.py in…
…to PYPROJECT.toml (#12013) Modify the setuptools configuration from SETUP.py into PYPROJECT.toml
- Loading branch information
1 parent
e73eb76
commit 3a66efc
Showing
6 changed files
with
78 additions
and
66 deletions.
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