Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
MinerU
Commits
2c8db7ed
Commit
2c8db7ed
authored
Jun 11, 2025
by
myhloli
Browse files
fix: update sglang dependency version and correct version tag handling
parent
88495c32
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
pyproject.toml
pyproject.toml
+1
-1
update_version.py
update_version.py
+3
-3
No files found.
pyproject.toml
View file @
2c8db7ed
...
...
@@ -42,7 +42,7 @@ vlm = [
"pydantic"
,
]
sglang
=
[
"sglang[all]
=
=0.4.
6.post5
"
,
"sglang[all]
>
=0.4.
7
"
,
]
pipeline
=
[
"matplotlib>=3.10,<4"
,
...
...
update_version.py
View file @
2c8db7ed
...
...
@@ -7,17 +7,17 @@ def get_version():
try
:
version
=
subprocess
.
check_output
(
command
).
decode
().
strip
()
version_parts
=
version
.
split
(
"-"
)
if
len
(
version_parts
)
>
1
and
version_parts
[
0
].
startswith
(
"m
agic_pdf
"
):
if
len
(
version_parts
)
>
1
and
version_parts
[
0
].
startswith
(
"m
ineru
"
):
return
version_parts
[
1
]
else
:
raise
ValueError
(
f
"Invalid version tag
{
version
}
. Expected format is m
agic_pdf
-<version>-released."
)
raise
ValueError
(
f
"Invalid version tag
{
version
}
. Expected format is m
ineru
-<version>-released."
)
except
Exception
as
e
:
print
(
e
)
return
"0.0.0"
def
write_version_to_commons
(
version
):
commons_path
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'm
agic_pdf'
,
'libs
'
,
'version.py'
)
commons_path
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'm
ineru
'
,
'version.py'
)
with
open
(
commons_path
,
'w'
)
as
f
:
f
.
write
(
f
'__version__ = "
{
version
}
"
\n
'
)
...
...
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