python-tksvg
python-tksvg copied to clipboard
Migrate to pyproject.toml and scikit-build-core
Tested on py3.12/py3.10/py3.8/pypy3.10 Fedora Linux, py3.12 MSVC, py3.12 macOS 10.15
TODO:
- [x] use cibuildwheel
- [x] use https://github.com/python/cpython-bin-deps/tree/tcltk on win32 msvc
Snippet for testing:
cd tests
import tkinter as tk
import tksvg
window = tk.Tk()
svg_image = tksvg.SvgImage(file="orb.svg")
label = tk.Label(image=svg_image)
label.pack()
window.mainloop()
prebuilt wheels: https://github.com/mcha-forks/python-tksvg/actions/runs/8101063696
cc @rdbende @RedFantom any interests in this?
Yup, absolutely, this is amazing! I'll find some time to review it. I'm not sure, when will @RedFantom have time to merge it though
Should I also make the same change to gttk & tkextrafont?
Actually, that would be awesome. I tried to tackle that multiple times, but always gave up. However that would make the project much more maintainable.
Nice! working on it. :)
The new build system is definitely more straightforward and easier to maintain than the existing appveyor. In addition we will no longer have to backport every upstream change manually, as they are now submodules.
Many thanks for this!
Hmm, CI breaks on macos-14-arm64 20240219.1 but not 20240116.1 due to a linkage error (target mismatch - needed arm64, presented arm64e)
Filed an issue here: https://github.com/actions/runner-images/issues/9441, will need further investigation
edit: applied a workaround by using Homebrew's tcl-tk. Cross-compiling / building fat binaries aren't possible for now. Further tracked at https://feedbackassistant.apple.com/feedback/13673316
closes #3 supersedes #1 #4
@mochaaP thanks a lot for your work!