File: python3

package info (click to toggle)
pythonmagick 0.9.19-10
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,756 kB
  • sloc: sh: 4,363; cpp: 2,849; perl: 279; python: 175; makefile: 126
file content (15 lines) | stat: -rwxr-xr-x 376 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
set -exu

for PYTHON in $(py3versions -s) ; do
	# pwd needs to be outside of the source folder because it contains a PythonMagick/
	cd "$AUTOPKGTEST_TMP"
	echo "Testing with $PYTHON:"
	$PYTHON >/dev/null <<EOF
import PythonMagick as Magick
img = Magick.Image('100x100', 'white')
img.quality(100) #full compression
img.magick('PNG')
img.write("/dev/stdout")
EOF
done