Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pdf-miner
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Qin Kaijie
pdf-miner
Commits
129288aa
Commit
129288aa
authored
Jun 20, 2024
by
赵小蒙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update setup config
parent
9906052d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
setup.py
setup.py
+8
-0
No files found.
setup.py
View file @
129288aa
from
pathlib
import
Path
from
setuptools
import
setup
,
find_packages
from
setuptools
import
setup
,
find_packages
from
magic_pdf.libs.version
import
__version__
from
magic_pdf.libs.version
import
__version__
...
@@ -19,6 +20,9 @@ def parse_requirements(filename):
...
@@ -19,6 +20,9 @@ def parse_requirements(filename):
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
with
Path
(
Path
(
__file__
)
.
parent
,
'README.md'
)
.
open
(
encoding
=
'utf-8'
)
as
file
:
long_description
=
file
.
read
()
setup
(
setup
(
name
=
"magic_pdf"
,
# 项目名
name
=
"magic_pdf"
,
# 项目名
version
=
__version__
,
# 自动从tag中获取版本号
version
=
__version__
,
# 自动从tag中获取版本号
...
@@ -28,6 +32,10 @@ if __name__ == '__main__':
...
@@ -28,6 +32,10 @@ if __name__ == '__main__':
"gpu"
:
[
"paddlepaddle-gpu"
],
"gpu"
:
[
"paddlepaddle-gpu"
],
"cpu"
:
[
"paddlepaddle"
],
"cpu"
:
[
"paddlepaddle"
],
},
},
description
=
"A practical tool for converting PDF to Markdown"
,
# 简短描述
long_description
=
long_description
,
# 详细描述
long_description_content_type
=
"text/markdown"
,
# 如果README是Markdown格式
url
=
"https://github.com/magicpdf/Magic-PDF"
,
python_requires
=
">=3.9"
,
# 项目依赖的 Python 版本
python_requires
=
">=3.9"
,
# 项目依赖的 Python 版本
entry_points
=
{
entry_points
=
{
"console_scripts"
:
[
"console_scripts"
:
[
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment