mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 12:17:14 +03:00
Merge pull request #112 from python-pillow/bash-script
Add script to update Pillow
This commit is contained in:
commit
0070db36ee
20
README.rst
20
README.rst
|
@ -3,14 +3,7 @@ Pillow Wheel Builder
|
||||||
|
|
||||||
This repository creates wheels for tagged versions of Pillow::
|
This repository creates wheels for tagged versions of Pillow::
|
||||||
|
|
||||||
git submodule init
|
./update-pillow-tag.sh <VERSION>
|
||||||
git submodule update Pillow
|
|
||||||
git add Pillow
|
|
||||||
cd Pillow
|
|
||||||
git checkout <VERSION>
|
|
||||||
cd ..
|
|
||||||
git commit -m "Pillow -> <VERSION>" Pillow
|
|
||||||
git push
|
|
||||||
|
|
||||||
.. image:: https://img.shields.io/travis/python-pillow/pillow-wheels/master.svg
|
.. image:: https://img.shields.io/travis/python-pillow/pillow-wheels/master.svg
|
||||||
:target: https://travis-ci.org/python-pillow/pillow-wheels
|
:target: https://travis-ci.org/python-pillow/pillow-wheels
|
||||||
|
@ -27,7 +20,7 @@ In general, there is no need to put library archives there, because the
|
||||||
|
|
||||||
But, the build will look in that repository before downloading from the
|
But, the build will look in that repository before downloading from the
|
||||||
URL, so if there is a library that often fails to download, or you think might
|
URL, so if there is a library that often fails to download, or you think might
|
||||||
fail to download, then download it and add it to the git repository.
|
fail to download, then download it and add it to the Git repository.
|
||||||
|
|
||||||
See the ``pre_build`` in ``config.sh`` and the ``fetch_unpack`` routine in
|
See the ``pre_build`` in ``config.sh`` and the ``fetch_unpack`` routine in
|
||||||
``multibuild/common_utils.sh`` for the logic, and the build recipes in
|
``multibuild/common_utils.sh`` for the logic, and the build recipes in
|
||||||
|
@ -40,12 +33,17 @@ Dependencies
|
||||||
NumPy
|
NumPy
|
||||||
~~~~~
|
~~~~~
|
||||||
|
|
||||||
Check minimum NumPy versions to build against in ``.travis.yml`` file. Build against the earliest NumPy that Pillow is compatible with; see `forward, backward numpy compatibility <http://stackoverflow.com/questions/17709641/valueerror-numpy-dtype-has-the-wrong-size-try-recompiling/18369312#18369312>`_
|
Check minimum NumPy versions to build against in ``.travis.yml`` file. Build against the
|
||||||
|
earliest NumPy that Pillow is compatible with; see
|
||||||
|
`forward, backward NumPy compatibility <https://stackoverflow.com/questions/17709641/valueerror-numpy-dtype-has-the-wrong-size-try-recompiling/18369312#18369312>`_
|
||||||
|
|
||||||
Wheels
|
Wheels
|
||||||
------
|
------
|
||||||
|
|
||||||
Wheels are uploaded to a `rackspace container <http://a365fff413fe338398b6-1c8a9b3114517dc5fe17b7c3f8c63a43.r19.cf2.rackcdn.com/>`_. Credentials for this container are encrypted to this specific repo in the ``.travis.yml`` file, so the upload won't work from another repository.
|
Wheels are uploaded to a
|
||||||
|
`Rackspace container <https://a365fff413fe338398b6-1c8a9b3114517dc5fe17b7c3f8c63a43.ssl.cf2.rackcdn.com/>`_.
|
||||||
|
Credentials for this container are encrypted to this specific repo in the
|
||||||
|
``.travis.yml`` file, so the upload won't work from another repository.
|
||||||
|
|
||||||
PyPI
|
PyPI
|
||||||
~~~~
|
~~~~
|
||||||
|
|
18
update-pillow-tag.sh
Executable file
18
update-pillow-tag.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user