-
Notifications
You must be signed in to change notification settings - Fork 11
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
Support poetry
lockfile version 2.0
#761
Comments
Hm I think this also brings up the interesting point of making sure all our other parsers stay up to date. Luckily you use Python every once in a while and I'd imagine a similar "automatic" realization would happen with cargo lockfile updates, but for many of our ecosystems we don't heavily testdrive our parser on the latest package lockfiles. Would it maybe be worth considering adding simple tests for every supported ecosystem that generates a completely new lockfile (which should ideally use the latest version then), add a package, then try to parse it? |
Great idea. It certainly helps more than waiting for new versions to break the parser. There may still have to be a bit of a manual element involved, though, to keep up with ecosystem and package manager changes. For instance, the Python Similar features are added all the time in Maybe something like a "lockfile zoo" repository could be used...or created if one does not already exist...to host the menagerie of lockfiles across all supported ecosystems and versions. It could be public and allow for community submissions for their esoteric use cases. Maybe the various lockfiles get categorized by level of support...kind of like how Rust platforms have tiers with varying levels of test coverage and support. The zoo language and taxonomic classification aspects certainly fit well with the "Phylum" theme... |
Another potential option for testing this is to pick a few major projects in each ecosystem and download and parse their latest lockfile |
Another option is to use the test fixtures from the package manager's own repos. For instance, |
This adds tests and documentation for supporting v2 of the poetry lockfile. There are no changes to our parser, since none of the v2 changes affect the packages or their versions. Closes #761.
This adds tests and documentation for supporting v2 of the poetry lockfile. There are no changes to our parser, since none of the v2 changes affect the packages or their versions. Closes #761.
This adds tests and documentation for supporting v2 of the poetry lockfile. There are no changes to our parser, since none of the v2 changes affect the packages or their versions. Closes #761.
This adds tests and documentation for supporting v2 of the poetry lockfile. There are no changes to our parser, since none of the v2 changes affect the packages or their versions. Closes #761.
Overview
The Python
poetry
lockfile version is going to be updated to v2.0, starting with thepoetry
v1.3 release. It is not clear when this release will happen. However, the release ofpoetry
v1.2.2 happened on 10 OCT 2022 and the announcement for that release shows that the release includes backwards and forwards compatibility for the new lockfile version for bothpoetry
version 1.2 and 1.3Additional Details
metadata.hashes
and instead are stored inpackage.files
poetry
lockfiles are currently supportedReferences:
Acceptance Criteria
poetry
lockfile versions 1.x and 2.x are supported for parsingpoetry
lockfile versionsThe text was updated successfully, but these errors were encountered: