Closed cclauss closed 9 months ago
What did prompt these changes?
I am trying to upgrade dependent projects to Python 3.12 release candidate 2 so I am trying to add some lines to a requirements.txt
file that will build a Python 3.12 compatible version of meson-python.
I tried:
% docker run --rm -it python:3.12.0rc2 bash
Inside the Docker container...
root@9b993550be2e:/# python --version Python 3.12.0rc2 root@9b993550be2e:/# python -m pip install mesonpy Collecting mesonpy Downloading MesonPy-0.0.1.tar.gz (14 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [7 lines of output]
Traceback (most recent call last):
File "
note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed
× Encountered error while generating package metadata. ╰─> See above for output.
note: This is an issue with the package mentioned above, not pip. hint: See above for details.
So, I am trying to learn how this project gets built and why it cannot find its `requirements.txt`.
This seems a bit odd...
> MesonPy-0.0.1.tar.gz
The comments about `setup.py` and `requirements.txt` seem odd for a repo that does not seem to have either.
python -m pip install mesonpy
It's meson-python
as the package name, not mesonpy
.
This seems to work... (testing)
python -m pip install -e 'git+https://github.com/mesonbuild/meson-python@main#egg=meson-python'
@rgommers Do you think that we can have the MesonPy
project removed from PyPI? The last release is from 6 years ago and AFAICT it is not even installable with a modern pip
.
Oh. scikit-image seems to use it. https://github.com/scikit-image/scikit-image/blob/80442f1cdb55e75ed4b8bb826e0632b4e1aea430/pyproject.toml#L116
@rgommers Do you think that we can have the
MesonPy
project removed from PyPI? The last release is from 6 years ago and AFAICT it is not even installable with a modernpip
.
Good idea. I can give it a try - I've been through that process successfully before with a couple of other packages.
Oh. scikit-image seems to use it.
No, it's this:
requires = [
'meson-python>=0.14',
The build-backend
identifies the import name, not the package name.
Thanks for the guidance!! Now I see the error of my ways.
I made a request to transfer the name on PyPI: https://github.com/Bartpab/meson-py/issues/6.
No worries at all @cclauss.
I think we can still merge this, after undoing the pypy-3.9
change. The rest of the changes seem fine as regular maintenance. WDYT @dnicolodi?
I made a request to transfer the name on PyPI: https://github.com/Bartpab/meson-py/issues/6.
This may take a while if we get no response: https://peps.python.org/pep-0541/#implementation.
@rgommers Thanks. The confusion is compounded by the fact that some distributions decided to package meson-python
as python3-mesonpy
I think we can still merge this, after undoing the
pypy-3.9
change. The rest of the changes seem fine as regular maintenance.
Sure. I'm just a bit wary of PRs touching project infrastructure from passers by.