+python-pillow.org (#5581)

* new file:   projects/python-pillow.org/package.yml

* \n
This commit is contained in:
Andrew 2024-03-13 23:36:09 +02:00 committed by GitHub
parent 21235c935a
commit fe1e0c7539
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,51 @@
distributable:
url: https://github.com/python-pillow/Pillow/archive/refs/tags/{{version.tag}}.tar.gz
strip-components: 1
versions:
github: python-pillow/Pillow
runtime:
env:
PYTHONPATH: ${{prefix}}/lib/python3.12/site-packages:$PYTHONPATH
dependencies:
libjpeg-turbo.org: ^2
pngquant.org/lib: ^4
simplesystems.org/libtiff: ^4
x.org/xcb: ^1
littlecms.com: ^2
openjpeg.org: ^2
tcl.tk/tcl: ^8
google.com/webp: ^1
zlib.net: ^1
python.org: ~3.12
build:
dependencies:
pypa.io/setuptools: '*'
script:
python -m pip install $ARGS .
env:
MAX_CONCURRENCY: ${{hw.concurrency}}
ARGS:
- --prefix={{prefix}}
- -C debug=true
- -C tiff=enable
- -C freetype=enable
- -C lcms=enable
- -C webp=enable
- -C xcb=enable
test:
dependencies:
curl.se: '*'
script:
- curl -L 'https://pkgx.dev/banner.png' -o test.png
- run: python $FIXTURE | grep 'PNG (1959, 520)'
fixture:
content: |
from PIL import Image
im = Image.open("./test.png")
print(im.format, im.size, im.mode)
extname: py