Add script to update Pillow

This commit is contained in:
Hugo 2019-01-06 17:19:03 +02:00
parent cce90c3bb3
commit 917cf31c59
2 changed files with 19 additions and 8 deletions

View File

@ -3,14 +3,7 @@ Pillow Wheel Builder
This repository creates wheels for tagged versions of Pillow::
git submodule init
git submodule update Pillow
git add Pillow
cd Pillow
git checkout <VERSION>
cd ..
git commit -m "Pillow -> <VERSION>" Pillow
git push
./update-pillow-tag.sh <VERSION>
.. image:: https://img.shields.io/travis/python-pillow/pillow-wheels/master.svg
:target: https://travis-ci.org/python-pillow/pillow-wheels

18
update-pillow-tag.sh Executable file
View File

@ -0,0 +1,18 @@
#!/usr/bin/env bash
set -e # exit on error
if [ $# -eq 0 ]; then
echo "Usage: update-pillow-tag.sh [[release tag]]"
exit
fi
git checkout master
git submodule init
git submodule update Pillow
cd Pillow
git fetch --all
git checkout $1
cd ..
git commit -m "Pillow -> $1" Pillow
git push