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
tianlh
LightGBM-DCU
Commits
11e17f39
Unverified
Commit
11e17f39
authored
May 04, 2023
by
James Lamb
Committed by
GitHub
May 04, 2023
Browse files
[ci] [python-package] check distributions with pydistcheck (#5838)
parent
9a1c5dc9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
.ci/check_python_dists.sh
.ci/check_python_dists.sh
+31
-0
No files found.
.ci/check_python_dists.sh
View file @
11e17f39
...
...
@@ -17,4 +17,35 @@ if { test "${TASK}" = "bdist" || test "${METHOD}" = "wheel"; }; then
check-wheel-contents
${
DIST_DIR
}
/
*
.whl
||
exit
-1
fi
PY_MINOR_VER
=
$(
python
-c
"import sys; print(sys.version_info.minor)"
)
if
[
$PY_MINOR_VER
-gt
7
]
;
then
echo
"pydistcheck..."
pip
install
pydistcheck
if
{
test
"
${
TASK
}
"
=
"cuda"
||
test
"
${
METHOD
}
"
=
"wheel"
;
}
;
then
pydistcheck
\
--inspect
\
--ignore
'compiled-objects-have-debug-symbols,distro-too-large-compressed'
\
--max-allowed-size-uncompressed
'60M'
\
--max-allowed-files
800
\
${
DIST_DIR
}
/
*
||
exit
-1
elif
{
test
$(
uname
-m
)
=
"aarch64"
;
}
;
then
pydistcheck
\
--inspect
\
--ignore
'compiled-objects-have-debug-symbols'
\
--max-allowed-size-compressed
'5M'
\
--max-allowed-size-uncompressed
'15M'
\
--max-allowed-files
800
\
${
DIST_DIR
}
/
*
||
exit
-1
else
pydistcheck
\
--inspect
\
--max-allowed-size-compressed
'5M'
\
--max-allowed-size-uncompressed
'15M'
\
--max-allowed-files
800
\
${
DIST_DIR
}
/
*
||
exit
-1
fi
else
echo
"skipping pydistcheck (does not support Python 3.
${
PY_MINOR_VER
}
)"
fi
echo
"done checking Python package distributions"
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