xraylib
xraylib copied to clipboard
Version in PyPI
Thanks for the package.
I have recently tried to pip-install xraylib from PyPI (https://pypi.org/project/xraylib), but it doesn't have versions that support Python 3.11 and 3.12. I can see that it supports Python 3.11 and 3.12 in conda-forge (https://anaconda.org/conda-forge/xraylib).
Does xraylib support installation from PyPI? Thank you
Hi Timothy, the xraylib wheels found on PyPI were not added by myself, but by the ESRF.
@srio can you help Tim out with this?
Just to check if there is any update on this? Thank you.
Hello, and sorry for the late answer. Yes, we created the pypi wheels at ESRF. I'm looking to create the 3.11 and 3.12 ones, so I ask for a bit more patience (a few days hopefully...).
Hi @srio, much appreciate for the help!
@tschoonj, would you be OK to add a github action workflow to release wheels on pypi?
As it is, wheels published by @srio on pypi are made with an ad-hoc CI set-up. Leveraging github actions and cibuildwheel would make wheels release using standard tools and the process to be opened.
I quickly made one for xraylib by adapting release workflow I recently set-up for other projects (e.g., https://github.com/silx-kit/silx/blob/main/.github/workflows/release.yml):
https://github.com/t20100/xraylib/blob/release-ci/.github/workflows/release.yml
It is triggered when publishing a release on github (but could also be triggered on tags), and automatically publish to pypi (the required configuration of github and pypi is simple). Here is a run with current tip of the project: https://github.com/t20100/xraylib/actions/runs/10060125621
If you are up for it, I can also help with the maintenance of the workflow (I already do so with @srio for our internal CI set-up).
I am not necessarily against publishing wheels through CI to PyPI, but the build backend I am using, mesonpep517, is not seeing further development, and lacks support for Windows.
I think that the backend needs to switch to meson-python instead, which is part of the meson project, and is actively developed.
Would you be willing to take a look at this?
I unfortunately have no experience with meson, but some of my colleagues do, I'll check with them. If we can propose something, that will not be before this autumn..
I will try and do it myself then. I expect the changes will be limited to pyproject.toml
I just released version 4.1.5, and wheels were published to PyPI for Python version 3.8 to 3.13.
Many thanks!