Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
MeetWq committed Nov 4, 2024
1 parent 594733d commit 19a5e1f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
CIBW_TEST_REQUIRES: pytest pillow glfw
CIBW_TEST_REQUIRES_MACOS: pytest pillow pyopengl
# download, unpack and copy with renaming "icudtl.dat" to the right place on windows, for SkUnicode
CIBW_BEFORE_TEST_WINDOWS: python -c 'import shutil, site; shutil.copy2("skia/out/Release/icudtl.dat", site.getsitepackages()[1])'
CIBW_BEFORE_TEST_WINDOWS: bash {project}/scripts/install-icudtl.sh
CIBW_TEST_COMMAND: python -m pytest {project}/tests
CIBW_TEST_COMMAND_LINUX: >
xvfb-run -s "-screen 0 640x480x24" python -m pytest {project}/tests
Expand Down
13 changes: 7 additions & 6 deletions scripts/install-icudtl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
# https://chromium.googlesource.com/chromium/deps/icu/+/364118a1d9da24bb5b770ac3d762ac144d6da5a4/version.gni
# refers to "version.json", which says 74.

python -c 'import urllib.request; urllib.request.urlretrieve("https://github.com/unicode-org/icu/releases/download/release-74-2/icu4c-74_2-data-bin-l.zip", "icudatal.zip")'
unzip icudatal.zip
python -c 'import sys; print(sys.path)'
python -c 'import site; print(site.getsitepackages())'
# site.getsitepackages()[0] does not seem to work for venv
python -c 'import os, shutil, site; shutil.copy2("icudt74l.dat", os.path.join(site.getsitepackages()[1], "icudtl.dat"))'
# python -c 'import urllib.request; urllib.request.urlretrieve("https://github.com/unicode-org/icu/releases/download/release-74-2/icu4c-74_2-data-bin-l.zip", "icudatal.zip")'
# unzip icudatal.zip
# python -c 'import sys; print(sys.path)'
# python -c 'import site; print(site.getsitepackages())'
# # site.getsitepackages()[0] does not seem to work for venv
# python -c 'import os, shutil, site; shutil.copy2("icudt74l.dat", os.path.join(site.getsitepackages()[1], "icudtl.dat"))'
python -c 'import shutil, site; shutil.copy2("skia/out/Release/icudtl.dat", site.getsitepackages()[1])'

0 comments on commit 19a5e1f

Please sign in to comment.