-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Python versions from pyproject.toml #9410
Comments
Couple of notes: This would be for a PEP 621-compliant Currently shields has base classes for dealing with requests that return JSON, XML and Yaml. We don't have one for Toml so part of the job would be to add a toml parser and base class for it. This is not a blocker and would be useful to have anyway, but we don't currently have it as a building block. |
Hey, i could help.
smol-toml is relatively new but seems easy to use, boasts big performance and appears to be easier to implement. All of those are hardly in use thats why i also took a look at packages that don't comply with latest toml spec. Should i got ahead with smol-toml, This would add a new dependency to the project. |
Yeah we should definitely use a package and not write our own parser.
Yes. This from the readme does not give me high confidence this lib is being actively maintained 😄
Lets pass on this one. Of the other packages you've suggested:
Having had a quick look at the parsed objects that those 2 parsers return, I think if we implemented this using smol-toml and had to switch it out for @ltd/j-toml at a later date, it should be possible to switch them pretty transparently. I think it would be reasonable to take a punt on smol-toml 👍 |
Add base toml service to enable fetch of toml files Add spec file for the new toml service for automated testing This was added to allow a new way to retrive python version from pyproject.toml as described in issue badges#9410
Add base toml service to enable fetch of toml files Add spec file for the new toml service for automated testing This was added to allow a new way to retrive python version from pyproject.toml as described in issue badges#9410
Add base toml service to enable fetch of toml files Add spec file for the new toml service for automated testing This was added to allow a new way to retrive python version from pyproject.toml as described in issue badges#9410
Add base toml service to enable fetch of toml files Add spec file for the new toml service for automated testing This was added to allow a new way to retrive python version from pyproject.toml as described in issue badges#9410
* Add TOML support with [BaseTomlService] Add base toml service to enable fetch of toml files Add spec file for the new toml service for automated testing This was added to allow a new way to retrive python version from pyproject.toml as described in issue #9410 * Fix typo Co-authored-by: chris48s <chris48s@users.noreply.github.com> * refactor: improve code readability solve code review #9438 (comment) --------- Co-authored-by: chris48s <chris48s@users.noreply.github.com>
Now that we got TOML support I can add this, I hope i can get it done this weekend |
While working on the new shield I realized that unlike PyPI, the requires-python field in the pyproject.toml returns the versions in a format of operators-version (e.g ">=3.1,!=3.3,....")
I think that using a static value for latest python versions should be avoided as it can cause confusion and show inaccurate results. |
I think for this badge (pulling direct from a There is a really long thread at #5551 about how we should deal with this when we get this from the PyPI and whether we should use |
Added new shield per issue badges#9410 The shield display required python versions for packages based on pyproject.toml
Added new shield per issue badges#9410 The shield display required python versions for packages based on pyproject.toml
* Add PythonVersionFromToml Added new shield per issue #9410 The shield display required python versions for packages based on pyproject.toml * Add tests for PythonVersionFromToml * Improve docs for tests regex * Improve title and description Rename and updated description to bring into focus that only PEP 621 complaint pyproject.toml files are supported. Solves review #9516 (comment) * replace complex regex with @renovate/pep440 solves review #9516 (comment)
📋 Description
🔗 Data
any
pyproject.toml
file, from therequires-python
field🎤 Motivation
should be even easier than the one on PyPI and it will work as a dynamic badge for people who are working on packages that are either public or private, but not a public package
The text was updated successfully, but these errors were encountered: