frescobaldi / python-poppler-qt5

Python binding to libpoppler-qt5
Other
42 stars 32 forks source link

Build Linux wheels in GitHub CI #60

Closed jeanas closed 1 year ago

jeanas commented 1 year ago

Apart from the usual benefit of CI for testing proposed changes, this will eventually make installing python-poppler-qt5 much easier. Currently, installing from PyPI compiles from source, which results in a bad user experience since lots of tools and a somewhat delicate setup are needed. The added CI job builds precompiled packages ("wheels") that can be uploaded to PyPI and should be compatible with current Linux distributions. The eventual goal is to improve this to build macOS and Windows wheels too.

Relates to #42

jeanas commented 1 year ago

This is quite black art and I haven't tested the wheels on a wide variety of systems... but they seem to work in a smoke test (using demo/demo.py) on both Fedora 38 and Ubuntu 22.04.

jeanas commented 1 year ago

Another limitation I forgot to mention is that the wheels are only for Python 3.11.

jeanas commented 1 year ago

Will you add a PyPI upload job to the GitHub workflow file? I think Wilbert gave you the access to PyPI, right?

No, I don't have access to Frescobaldi-related projects on PyPI currently, only @wbsoft has.

jeanas commented 1 year ago

@fedelibre PTAL.