Replace python-imaging with python-pillow (but yet not Coveralls)

This commit is contained in:
hugovk 2014-06-03 13:02:44 +03:00
parent 9dc2346dea
commit c9a4272af6
18 changed files with 124 additions and 124 deletions

View File

@ -437,7 +437,7 @@ Changelog (Pillow)
- Add Python 3 support. (Pillow >= 2.0.0 supports Python 2.6, 2.7, 3.2, 3.3. Pillow < 2.0.0 supports Python 2.4, 2.5, 2.6, 2.7.) - Add Python 3 support. (Pillow >= 2.0.0 supports Python 2.6, 2.7, 3.2, 3.3. Pillow < 2.0.0 supports Python 2.4, 2.5, 2.6, 2.7.)
[fluggo] [fluggo]
- Add PyPy support (experimental, please see: https://github.com/python-imaging/Pillow/issues/67) - Add PyPy support (experimental, please see: https://github.com/python-pillow/Pillow/issues/67)
- Add WebP support. - Add WebP support.
[lqs] [lqs]

View File

@ -859,7 +859,7 @@ class TiffImageFile(ImageFile.ImageFile):
# libtiff handles the fillmode for us, so 1;IR should # libtiff handles the fillmode for us, so 1;IR should
# actually be 1;I. Including the R double reverses the # actually be 1;I. Including the R double reverses the
# bits, so stripes of the image are reversed. See # bits, so stripes of the image are reversed. See
# https://github.com/python-imaging/Pillow/issues/279 # https://github.com/python-pillow/Pillow/issues/279
if fillorder == 2: if fillorder == 2:
key = ( key = (
self.tag.prefix, photo, format, 1, self.tag.prefix, photo, format, 1,

View File

@ -37,7 +37,7 @@ def test_roundtrip():
assert_image_similar(reread.convert('RGB'), im, 50) assert_image_similar(reread.convert('RGB'), im, 50)
def test_roundtrip2(): def test_roundtrip2():
#see https://github.com/python-imaging/Pillow/issues/403 #see https://github.com/python-pillow/Pillow/issues/403
out = tempfile('temp.gif') out = tempfile('temp.gif')
im = Image.open('Images/lena.gif') im = Image.open('Images/lena.gif')
im2 = im.copy() im2 = im.copy()
@ -48,7 +48,7 @@ def test_roundtrip2():
def test_palette_handling(): def test_palette_handling():
# see https://github.com/python-imaging/Pillow/issues/513 # see https://github.com/python-pillow/Pillow/issues/513
im = Image.open('Images/lena.gif') im = Image.open('Images/lena.gif')
im = im.convert('RGB') im = im.convert('RGB')
@ -64,7 +64,7 @@ def test_palette_handling():
assert_image_similar(im, reloaded.convert('RGB'), 10) assert_image_similar(im, reloaded.convert('RGB'), 10)
def test_palette_434(): def test_palette_434():
# see https://github.com/python-imaging/Pillow/issues/434 # see https://github.com/python-pillow/Pillow/issues/434
def roundtrip(im, *args, **kwargs): def roundtrip(im, *args, **kwargs):
out = tempfile('temp.gif') out = tempfile('temp.gif')

View File

@ -126,7 +126,7 @@ def test_optimize():
def test_optimize_large_buffer(): def test_optimize_large_buffer():
# https://github.com/python-imaging/Pillow/issues/148 # https://github.com/python-pillow/Pillow/issues/148
f = tempfile('temp.jpg') f = tempfile('temp.jpg')
# this requires ~ 1.5x Image.MAXBLOCK # this requires ~ 1.5x Image.MAXBLOCK
im = Image.new("RGB", (4096, 4096), 0xff3333) im = Image.new("RGB", (4096, 4096), 0xff3333)
@ -159,7 +159,7 @@ def test_progressive_large_buffer_highest_quality():
def test_large_exif(): def test_large_exif():
# https://github.com/python-imaging/Pillow/issues/148 # https://github.com/python-pillow/Pillow/issues/148
f = tempfile('temp.jpg') f = tempfile('temp.jpg')
im = lena() im = lena()
im.save(f, 'JPEG', quality=90, exif=b"1"*65532) im.save(f, 'JPEG', quality=90, exif=b"1"*65532)
@ -231,7 +231,7 @@ def test_quality_keep():
def test_junk_jpeg_header(): def test_junk_jpeg_header():
# https://github.com/python-imaging/Pillow/issues/630 # https://github.com/python-pillow/Pillow/issues/630
filename = "Tests/images/junk_jpeg_header.jpg" filename = "Tests/images/junk_jpeg_header.jpg"
assert_no_exception(lambda: Image.open(filename)) assert_no_exception(lambda: Image.open(filename))

View File

@ -71,7 +71,7 @@ def test_g4_eq_png():
assert_image_equal(g4, png) assert_image_equal(g4, png)
# see https://github.com/python-imaging/Pillow/issues/279 # see https://github.com/python-pillow/Pillow/issues/279
def test_g4_fillorder_eq_png(): def test_g4_fillorder_eq_png():
""" Checking that we're actually getting the data that we expect""" """ Checking that we're actually getting the data that we expect"""
png = Image.open('Tests/images/g4-fillorder-test.png') png = Image.open('Tests/images/g4-fillorder-test.png')

View File

@ -101,7 +101,7 @@ def test_bad_text():
assert_equal(im.info, {'spam': 'egg\x00'}) assert_equal(im.info, {'spam': 'egg\x00'})
def test_bad_ztxt(): def test_bad_ztxt():
# Test reading malformed zTXt chunks (python-imaging/Pillow#318) # Test reading malformed zTXt chunks (python-pillow/Pillow#318)
im = load(HEAD + chunk(b'zTXt') + TAIL) im = load(HEAD + chunk(b'zTXt') + TAIL)
assert_equal(im.info, {}) assert_equal(im.info, {})

View File

@ -6,7 +6,7 @@ tag_ids = dict(zip(TiffTags.TAGS.values(), TiffTags.TAGS.keys()))
def test_rt_metadata(): def test_rt_metadata():
""" Test writing arbitray metadata into the tiff image directory """ Test writing arbitray metadata into the tiff image directory
Use case is ImageJ private tags, one numeric, one arbitrary Use case is ImageJ private tags, one numeric, one arbitrary
data. https://github.com/python-imaging/Pillow/issues/291 data. https://github.com/python-pillow/Pillow/issues/291
""" """
img = lena() img = lena()

View File

@ -28,7 +28,7 @@ def test_default():
assert_image(im, "RGB", im.size) assert_image(im, "RGB", im.size)
# ref https://github.com/python-imaging/Pillow/issues/274 # ref https://github.com/python-pillow/Pillow/issues/274
def _test_float_conversion(im): def _test_float_conversion(im):
orig = im.getpixel((5, 5)) orig = im.getpixel((5, 5))
@ -76,7 +76,7 @@ def test_trns_p():
assert_no_exception(lambda: rgb.save(f)) assert_no_exception(lambda: rgb.save(f))
# ref https://github.com/python-imaging/Pillow/issues/664 # ref https://github.com/python-pillow/Pillow/issues/664
def test_trns_p_rgba(): def test_trns_p_rgba():
# Arrange # Arrange

View File

@ -36,7 +36,7 @@ def test_basic():
check(mode) check(mode)
def test_signedness(): def test_signedness():
# see https://github.com/python-imaging/Pillow/issues/452 # see https://github.com/python-pillow/Pillow/issues/452
# pixelaccess is using signed int* instead of uint* # pixelaccess is using signed int* instead of uint*
for mode in ("I;16", "I;16B"): for mode in ("I;16", "I;16B"):
check(mode, 2**15-1) check(mode, 2**15-1)

View File

@ -4,7 +4,7 @@ from PIL import Image
if hasattr(sys, 'pypy_version_info'): if hasattr(sys, 'pypy_version_info'):
# This takes _forever_ on pypy. Open Bug, # This takes _forever_ on pypy. Open Bug,
# see https://github.com/python-imaging/Pillow/issues/484 # see https://github.com/python-pillow/Pillow/issues/484
skip() skip()
def test_sanity(): def test_sanity():
@ -26,7 +26,7 @@ def test_sanity():
def test_16bit_lut(): def test_16bit_lut():
""" Tests for 16 bit -> 8 bit lut for converting I->L images """ Tests for 16 bit -> 8 bit lut for converting I->L images
see https://github.com/python-imaging/Pillow/issues/440 see https://github.com/python-pillow/Pillow/issues/440
""" """
im = lena("I") im = lena("I")

View File

@ -94,7 +94,7 @@ def test_alpha_premult_transform():
def test_blank_fill(): def test_blank_fill():
# attempting to hit # attempting to hit
# https://github.com/python-imaging/Pillow/issues/254 reported # https://github.com/python-pillow/Pillow/issues/254 reported
# #
# issue is that transforms with transparent overflow area # issue is that transforms with transparent overflow area
# contained junk from previous images, especially on systems with # contained junk from previous images, especially on systems with

View File

@ -56,7 +56,7 @@ def test_parser():
assert_image(im1, im2.mode, im2.size) assert_image(im1, im2.mode, im2.size)
# XXX Why assert exception and why does it fail? # XXX Why assert exception and why does it fail?
# https://github.com/python-imaging/Pillow/issues/78 # https://github.com/python-pillow/Pillow/issues/78
#assert_exception(IOError, lambda: roundtrip("PDF")) #assert_exception(IOError, lambda: roundtrip("PDF"))
def test_ico(): def test_ico():

View File

@ -3,7 +3,7 @@ from PIL import Image
import locale import locale
# ref https://github.com/python-imaging/Pillow/issues/272 # ref https://github.com/python-pillow/Pillow/issues/272
## on windows, in polish locale: ## on windows, in polish locale:
## import locale ## import locale

View File

@ -108,7 +108,7 @@ def test_to_array():
def test_point_lut(): def test_point_lut():
# see https://github.com/python-imaging/Pillow/issues/439 # see https://github.com/python-pillow/Pillow/issues/439
data = list(range(256))*3 data = list(range(256))*3
lut = numpy.array(data, dtype='uint8') lut = numpy.array(data, dtype='uint8')

View File

@ -12,7 +12,7 @@
<p> <p>
If you've discovered a bug, you can If you've discovered a bug, you can
<a href="https://github.com/python-imaging/Pillow/issues/new">open an issue <a href="https://github.com/python-pillow/Pillow/issues/new">open an issue
on Github</a>. on Github</a>.
</p> </p>

View File

@ -11,8 +11,8 @@ The fork authors' goal is to foster active development of PIL through:
- Regular releases to the `Python Package Index`_ - Regular releases to the `Python Package Index`_
- Solicitation for community contributions and involvement on `Image-SIG`_ - Solicitation for community contributions and involvement on `Image-SIG`_
.. _Travis CI: https://travis-ci.org/python-imaging/Pillow .. _Travis CI: https://travis-ci.org/python-pillow/Pillow
.. _GitHub: https://github.com/python-imaging/Pillow .. _GitHub: https://github.com/python-pillow/Pillow
.. _Python Package Index: https://pypi.python.org/pypi/Pillow .. _Python Package Index: https://pypi.python.org/pypi/Pillow
.. _Image-SIG: http://mail.python.org/mailman/listinfo/image-sig .. _Image-SIG: http://mail.python.org/mailman/listinfo/image-sig
@ -60,6 +60,6 @@ announcement. So if you still want to support PIL, please
.. _report issues here first: https://bitbucket.org/effbot/pil-2009-raclette/issues .. _report issues here first: https://bitbucket.org/effbot/pil-2009-raclette/issues
.. _open the corresponding Pillow tickets here: https://github.com/python-imaging/Pillow/issues .. _open the corresponding Pillow tickets here: https://github.com/python-pillow/Pillow/issues
Please provide a link to the PIL ticket so we can track the issue(s) upstream. Please provide a link to the PIL ticket so we can track the issue(s) upstream.

View File

@ -4,8 +4,8 @@ Pillow
Pillow is the 'friendly' PIL fork by Alex Clark and Contributors. PIL is the Pillow is the 'friendly' PIL fork by Alex Clark and Contributors. PIL is the
Python Imaging Library by Fredrik Lundh and Contributors. Python Imaging Library by Fredrik Lundh and Contributors.
.. image:: https://travis-ci.org/python-imaging/Pillow.svg?branch=master .. image:: https://travis-ci.org/python-pillow/Pillow.svg?branch=master
:target: https://travis-ci.org/python-imaging/Pillow :target: https://travis-ci.org/python-pillow/Pillow
:alt: Travis CI build status :alt: Travis CI build status
.. image:: https://pypip.in/v/Pillow/badge.png .. image:: https://pypip.in/v/Pillow/badge.png
@ -24,7 +24,7 @@ To start using Pillow, please read the :doc:`installation
instructions <installation>`. instructions <installation>`.
You can get the source and contribute at You can get the source and contribute at
https://github.com/python-imaging/Pillow. You can download archives https://github.com/python-pillow/Pillow. You can download archives
and old versions from `PyPI <https://pypi.python.org/pypi/Pillow>`_. and old versions from `PyPI <https://pypi.python.org/pypi/Pillow>`_.
.. toctree:: .. toctree::
@ -42,7 +42,7 @@ Support Pillow!
PIL needs you! Please help us maintain the Python Imaging Library here: PIL needs you! Please help us maintain the Python Imaging Library here:
- `GitHub <https://github.com/python-imaging/Pillow>`_ - `GitHub <https://github.com/python-pillow/Pillow>`_
- `Freenode <irc://irc.freenode.net#pil>`_ - `Freenode <irc://irc.freenode.net#pil>`_
- `Image-SIG <http://mail.python.org/mailman/listinfo/image-sig>`_ - `Image-SIG <http://mail.python.org/mailman/listinfo/image-sig>`_

View File

@ -660,7 +660,7 @@ setup(
_read('CHANGES.rst')).decode('utf-8'), _read('CHANGES.rst')).decode('utf-8'),
author='Alex Clark (fork author)', author='Alex Clark (fork author)',
author_email='aclark@aclark.net', author_email='aclark@aclark.net',
url='http://python-imaging.github.io/', url='http://python-pillow.github.io/',
classifiers=[ classifiers=[
"Development Status :: 6 - Mature", "Development Status :: 6 - Mature",
"Topic :: Multimedia :: Graphics", "Topic :: Multimedia :: Graphics",