python-tksvg icon indicating copy to clipboard operation
python-tksvg copied to clipboard

Backport upstream changes

Open rdbende opened this issue 2 years ago • 22 comments

@RedFantom

  1. It would be nice if you enabled issues on this fork, so I don't need to make a pull request to ask something :D. I know at least two person who would have opened one.

  2. It would be good to add a CI to build wheels with macOS binaries (I can work on that), because it's currently quite hard to install this on a mac. The upstream has also added a Github action to build binaries for various platforms.

rdbende avatar May 16 '23 18:05 rdbende

Would you also make a PR with better documentation?

Moosems avatar May 16 '23 19:05 Moosems

Would you also make a PR with better documentation?

Actually, what's the issue with documentation? It's the same as tkinter.PhotoImage just named differently.

rdbende avatar May 16 '23 19:05 rdbende

The documentation didn't make it very clear that that's all it had :D.

Moosems avatar May 16 '23 19:05 Moosems

From the README:

Using the library has been made as similar as possible to using a normal tk.PhotoImage. Simply create an SvgImage instance and the tksvg library will automatically be loaded for you.

rdbende avatar May 16 '23 19:05 rdbende

It said it was similar but how do I know the exact differences?

Moosems avatar May 16 '23 19:05 Moosems

I would mention that its actually built on top of the PhotoImage class and simply adds the functionality of svg's.

Moosems avatar May 16 '23 19:05 Moosems

@rdbende : Okay, Issues are now enabled! Of course I would welcome a PR which adds automatic building for mac as well.

Unfortunately since I built the CI system for this repository, Travis-CI changed their policy for open-source repositories, hence why it is no longer enabled. Perhaps this can also be migrated to the GitHub Actions system?

Currently I have very little time, as you have probably noticed 🙈 , so it is unlikely I will get around to it anytime soon. I'm not even sure how to prioritize the long todo-list at this point.

Regarding documentation, @Moosems , adding documentation with sphinx should be pretty trivial, but I didn't add it in the first place because indeed SvgImage has pretty much the same interface as PhotoImage. Do you think it would add something to have a (single) RTD page?

RedFantom avatar May 17 '23 15:05 RedFantom

I would simply make a piece in README and explain the zoom and that it's quite literally built on top of the PhotoImage class. After that, I'd say it's documented sufficiently and any questions regarding the inner workings (tksvg) can be routed to the origin repo :D.

Moosems avatar May 17 '23 15:05 Moosems

@rdbende, Would we like to work on the builds?

Moosems avatar May 20 '23 18:05 Moosems

What do you mean under "we"? Me or you? lol I do plan to work on it, but not now.

rdbende avatar May 20 '23 19:05 rdbende

I would like to help on it, I simply need a basic introduction :D.

Moosems avatar May 20 '23 19:05 Moosems

Pacman seems to be causing a lot of problems, I'll look into that a bit.

Moosems avatar May 20 '23 19:05 Moosems

Pacman can be completely removed, in fact, the appveyor CI should just become a GH action.

Moosems avatar Jun 03 '23 23:06 Moosems

Looking at the appveyor, why the flip does it even exist?

Moosems avatar Jun 03 '23 23:06 Moosems

Unfortunately since I built the CI system for this repository, Travis-CI changed their policy for open-source repositories, hence why it is no longer enabled. Perhaps this can also be migrated to the GitHub Actions system?

rdbende avatar Jun 03 '23 23:06 rdbende

@rdbende What actions need to stay?

Moosems avatar Jun 11 '23 20:06 Moosems

@rdbende ?

Moosems avatar Jun 20 '23 14:06 Moosems

I think only the Pypi publisher one. Then we would need 3 GHAs:

  • Run unittests with Nose
  • Build binaries
  • Publish to Pypi

rdbende avatar Jun 20 '23 16:06 rdbende

So delete the appveyor and update the others?

Moosems avatar Jun 20 '23 17:06 Moosems

I also think you should separate it to PRs. One for the builds, and one for the test and Pypi stuff.

rdbende avatar Jun 20 '23 22:06 rdbende

Will this receive any attention?

Moosems avatar Jul 11 '23 16:07 Moosems

Looking at the appveyor, why the flip does it even exist?

I am used to using AppVeyor / MSYS2 for building Windows-compatible binaries. If you have an idea for setting up a build system using VC++ on GitHub Actions, feel free to open a PR / issue with some details on how to include and link the Tcl and Tk development files. Edit: This file has some hints... Now to build a Python package...

GitHub Actions already builds Linux binaries, but is not yet used for CI. That is something which could be addressed in another PR.

If this PR has the CI-related stuff removed (force-push is acceptable to me) and PR #4 is merged, then we can merge this one too.

RedFantom avatar Jul 13 '23 13:07 RedFantom

Superseeded by #6

rdbende avatar Sep 24 '24 10:09 rdbende