-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI for getting JSON? #197
Comments
I think that this could be useful, but it could also give the false impression that it is possible to extract information from a package without running the build backend. In the case of meson-python, for example, this [build-system]
build-backend = 'mesonpy'
requires = ['meson-python'] meson-python in this case derives the wheel name and version (and soon also license) from |
If a "only read PEP 621 metadata" CLI was acceptable anywhere, it would be here, though - unlike something like build, this package is focused only on reading pyproject metadata. A file that doesn't use PEP 621 would just produce an error stating there is no metadata to read. Ideally with a unique error code so a pipeline could then do a more expensive read. |
Build backends can allow any field in the |
It's not just the conversion, it's also the fact we do things like load README, license files, etc. Though yes, handling |
I think it might be handy to have a CLI for getting
as_json()
. This would be useful to quickly get info from a PEP 621 project without having to trigger more expensive processes. This is not a universal solution to pypa/build#579, but it would be very fast when it works.The text was updated successfully, but these errors were encountered: