1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 19:29:53 +03:00
aports/community/py3-pywal/imagemagick-7.1.patch
mio 2ea58cf4ad community/py3-pywal: build with gpep517, fix running tests
Switch to gpep517 and fix check failure due to removed `setup.py test` command,
which was deprecated in setuptools 72.0.0.

```
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: invalid command 'test'
```

Ref: https://gitlab.alpinelinux.org/alpine/aports/-/issues/17110
2025-05-03 12:12:32 +00:00

19 lines
512 B
Diff

Fix deprecation warning with imagemagick 7.1.
```
WARNING: The convert command is deprecated in IMv7, use "magick" instead of
"convert" or "magick convert"
```
---
--- a/pywal/backends/wal.py
+++ b/pywal/backends/wal.py
@@ -24,9 +24,6 @@
if shutil.which("magick"):
return ["magick", "convert"]
- if shutil.which("convert"):
- return ["convert"]
-
logging.error("Imagemagick wasn't found on your system.")
logging.error("Try another backend. (wal --backend)")
sys.exit(1)