Skip to content

Commit 4ab4bfe

Browse files
authored
Merge pull request #6918 from hugovk/rm-svn
Replace SVN with Git for installing extra test images
2 parents 7e3bed6 + 3934964 commit 4ab4bfe

7 files changed

Lines changed: 25 additions & 20 deletions

File tree

.appveyor.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ environment:
2121
install:
2222
- '%PYTHON%\%EXECUTABLE% --version'
2323
- curl -fsSL -o pillow-depends.zip https://github.com/python-pillow/pillow-depends/archive/main.zip
24+
- curl -fsSL -o pillow-test-images.zip https://github.com/python-pillow/test-images/archive/main.zip
2425
- 7z x pillow-depends.zip -oc:\
26+
- 7z x pillow-test-images.zip -oc:\
2527
- mv c:\pillow-depends-main c:\pillow-depends
26-
- xcopy /S /Y c:\pillow-depends\test_images\* c:\pillow\tests\images
28+
- xcopy /S /Y c:\test-images-main\* c:\pillow\tests\images
2729
- 7z x ..\pillow-depends\nasm-2.15.05-win64.zip -oc:\
2830
- ..\pillow-depends\gs1000w32.exe /S
2931
- path c:\nasm-2.15.05;C:\Program Files (x86)\gs\gs10.0.0\bin;%PATH%

.github/workflows/test-cygwin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
python3${{ matrix.python-minor-version }}-sip
6060
python3${{ matrix.python-minor-version }}-tkinter
6161
qt5-devel-tools
62-
subversion
62+
wget
6363
xorg-server-extra
6464
zlib-devel
6565

.github/workflows/test-mingw.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ jobs:
5959
${{ matrix.package }}-python3-numpy \
6060
${{ matrix.package }}-python3-olefile \
6161
${{ matrix.package }}-python3-pip \
62-
${{ matrix.package }}-python3-setuptools \
63-
subversion
62+
${{ matrix.package }}-python3-setuptools
6463
6564
if [ ${{ matrix.package }} == "mingw-w64-x86_64" ]; then
6665
pacman -S --noconfirm \

.github/workflows/test-windows.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ jobs:
3838
repository: python-pillow/pillow-depends
3939
path: winbuild\depends
4040

41+
- name: Checkout extra test images
42+
uses: actions/checkout@v3
43+
with:
44+
repository: python-pillow/test-images
45+
path: Tests\test-images
46+
4147
# sets env: pythonLocation
4248
- name: Set up Python
4349
uses: actions/setup-python@v4
@@ -62,7 +68,8 @@ jobs:
6268
winbuild\depends\gs1000w32.exe /S
6369
echo "C:\Program Files (x86)\gs\gs10.0.0\bin" >> $env:GITHUB_PATH
6470
65-
xcopy /S /Y winbuild\depends\test_images\* Tests\images\
71+
# Install extra test images
72+
xcopy /S /Y Tests\test-images\* Tests\images
6673
6774
# make cache key depend on VS version
6875
& "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" `

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ docs/_build/
7979
# JetBrains
8080
.idea
8181

82-
# Extra test images installed from pillow-depends/test_images
82+
# Extra test images installed from python-pillow/test-images
8383
Tests/images/README.md
8484
Tests/images/crash_1.tif
8585
Tests/images/crash_2.tif

depends/download-and-extract.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ if [ ! -f $archive.tar.gz ]; then
88
wget -O $archive.tar.gz $url
99
fi
1010

11-
rm -r $archive
11+
rmdir $archive
1212
tar -xvzf $archive.tar.gz
Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# install extra test images
33

4-
# Use SVN to just fetch a single Git subdirectory
5-
svn_export()
6-
{
7-
if [ ! -z $1 ]; then
8-
echo ""
9-
echo "Retrying svn export..."
10-
echo ""
11-
fi
12-
13-
svn export --force https://github.com/python-pillow/pillow-depends/trunk/test_images ../Tests/images
14-
}
15-
svn_export || svn_export retry || svn_export retry || svn_export retry
4+
archive=test-images-main
5+
6+
./download-and-extract.sh $archive https://github.com/python-pillow/test-images/archive/main.tar.gz
7+
8+
mv $archive/* ../Tests/images/
9+
10+
# Cleanup old tarball and empty directory
11+
rm $archive.tar.gz
12+
rmdir $archive

0 commit comments

Comments
 (0)