mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 10:16:17 +03:00
Merge pull request #6918 from hugovk/rm-svn
Replace SVN with Git for installing extra test images
This commit is contained in:
commit
4ab4bfe89b
|
@ -21,9 +21,11 @@ environment:
|
||||||
install:
|
install:
|
||||||
- '%PYTHON%\%EXECUTABLE% --version'
|
- '%PYTHON%\%EXECUTABLE% --version'
|
||||||
- curl -fsSL -o pillow-depends.zip https://github.com/python-pillow/pillow-depends/archive/main.zip
|
- curl -fsSL -o pillow-depends.zip https://github.com/python-pillow/pillow-depends/archive/main.zip
|
||||||
|
- curl -fsSL -o pillow-test-images.zip https://github.com/python-pillow/test-images/archive/main.zip
|
||||||
- 7z x pillow-depends.zip -oc:\
|
- 7z x pillow-depends.zip -oc:\
|
||||||
|
- 7z x pillow-test-images.zip -oc:\
|
||||||
- mv c:\pillow-depends-main c:\pillow-depends
|
- mv c:\pillow-depends-main c:\pillow-depends
|
||||||
- xcopy /S /Y c:\pillow-depends\test_images\* c:\pillow\tests\images
|
- xcopy /S /Y c:\test-images-main\* c:\pillow\tests\images
|
||||||
- 7z x ..\pillow-depends\nasm-2.15.05-win64.zip -oc:\
|
- 7z x ..\pillow-depends\nasm-2.15.05-win64.zip -oc:\
|
||||||
- ..\pillow-depends\gs1000w32.exe /S
|
- ..\pillow-depends\gs1000w32.exe /S
|
||||||
- path c:\nasm-2.15.05;C:\Program Files (x86)\gs\gs10.0.0\bin;%PATH%
|
- path c:\nasm-2.15.05;C:\Program Files (x86)\gs\gs10.0.0\bin;%PATH%
|
||||||
|
|
2
.github/workflows/test-cygwin.yml
vendored
2
.github/workflows/test-cygwin.yml
vendored
|
@ -59,7 +59,7 @@ jobs:
|
||||||
python3${{ matrix.python-minor-version }}-sip
|
python3${{ matrix.python-minor-version }}-sip
|
||||||
python3${{ matrix.python-minor-version }}-tkinter
|
python3${{ matrix.python-minor-version }}-tkinter
|
||||||
qt5-devel-tools
|
qt5-devel-tools
|
||||||
subversion
|
wget
|
||||||
xorg-server-extra
|
xorg-server-extra
|
||||||
zlib-devel
|
zlib-devel
|
||||||
|
|
||||||
|
|
3
.github/workflows/test-mingw.yml
vendored
3
.github/workflows/test-mingw.yml
vendored
|
@ -59,8 +59,7 @@ jobs:
|
||||||
${{ matrix.package }}-python3-numpy \
|
${{ matrix.package }}-python3-numpy \
|
||||||
${{ matrix.package }}-python3-olefile \
|
${{ matrix.package }}-python3-olefile \
|
||||||
${{ matrix.package }}-python3-pip \
|
${{ matrix.package }}-python3-pip \
|
||||||
${{ matrix.package }}-python3-setuptools \
|
${{ matrix.package }}-python3-setuptools
|
||||||
subversion
|
|
||||||
|
|
||||||
if [ ${{ matrix.package }} == "mingw-w64-x86_64" ]; then
|
if [ ${{ matrix.package }} == "mingw-w64-x86_64" ]; then
|
||||||
pacman -S --noconfirm \
|
pacman -S --noconfirm \
|
||||||
|
|
9
.github/workflows/test-windows.yml
vendored
9
.github/workflows/test-windows.yml
vendored
|
@ -38,6 +38,12 @@ jobs:
|
||||||
repository: python-pillow/pillow-depends
|
repository: python-pillow/pillow-depends
|
||||||
path: winbuild\depends
|
path: winbuild\depends
|
||||||
|
|
||||||
|
- name: Checkout extra test images
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
repository: python-pillow/test-images
|
||||||
|
path: Tests\test-images
|
||||||
|
|
||||||
# sets env: pythonLocation
|
# sets env: pythonLocation
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
|
@ -62,7 +68,8 @@ jobs:
|
||||||
winbuild\depends\gs1000w32.exe /S
|
winbuild\depends\gs1000w32.exe /S
|
||||||
echo "C:\Program Files (x86)\gs\gs10.0.0\bin" >> $env:GITHUB_PATH
|
echo "C:\Program Files (x86)\gs\gs10.0.0\bin" >> $env:GITHUB_PATH
|
||||||
|
|
||||||
xcopy /S /Y winbuild\depends\test_images\* Tests\images\
|
# Install extra test images
|
||||||
|
xcopy /S /Y Tests\test-images\* Tests\images
|
||||||
|
|
||||||
# make cache key depend on VS version
|
# make cache key depend on VS version
|
||||||
& "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" `
|
& "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" `
|
||||||
|
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -79,7 +79,7 @@ docs/_build/
|
||||||
# JetBrains
|
# JetBrains
|
||||||
.idea
|
.idea
|
||||||
|
|
||||||
# Extra test images installed from pillow-depends/test_images
|
# Extra test images installed from python-pillow/test-images
|
||||||
Tests/images/README.md
|
Tests/images/README.md
|
||||||
Tests/images/crash_1.tif
|
Tests/images/crash_1.tif
|
||||||
Tests/images/crash_2.tif
|
Tests/images/crash_2.tif
|
||||||
|
|
|
@ -8,5 +8,5 @@ if [ ! -f $archive.tar.gz ]; then
|
||||||
wget -O $archive.tar.gz $url
|
wget -O $archive.tar.gz $url
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -r $archive
|
rmdir $archive
|
||||||
tar -xvzf $archive.tar.gz
|
tar -xvzf $archive.tar.gz
|
||||||
|
|
|
@ -1,15 +1,12 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# install extra test images
|
# install extra test images
|
||||||
|
|
||||||
# Use SVN to just fetch a single Git subdirectory
|
archive=test-images-main
|
||||||
svn_export()
|
|
||||||
{
|
|
||||||
if [ ! -z $1 ]; then
|
|
||||||
echo ""
|
|
||||||
echo "Retrying svn export..."
|
|
||||||
echo ""
|
|
||||||
fi
|
|
||||||
|
|
||||||
svn export --force https://github.com/python-pillow/pillow-depends/trunk/test_images ../Tests/images
|
./download-and-extract.sh $archive https://github.com/python-pillow/test-images/archive/main.tar.gz
|
||||||
}
|
|
||||||
svn_export || svn_export retry || svn_export retry || svn_export retry
|
mv $archive/* ../Tests/images/
|
||||||
|
|
||||||
|
# Cleanup old tarball and empty directory
|
||||||
|
rm $archive.tar.gz
|
||||||
|
rmdir $archive
|
||||||
|
|
Loading…
Reference in New Issue
Block a user