Skip to content

Support poetry lockfile version 2.0 #761

@maxrake

Description

@maxrake

Overview

The Python poetry lockfile version is going to be updated to v2.0, starting with the poetry v1.3 release. It is not clear when this release will happen. However, the release of poetry 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 both poetry version 1.2 and 1.3

Additional Details

  • It appears that the main difference is that package files and hashes are no longer stored in metadata.hashes and instead are stored in package.files
    • This should not affect the way the lockfile is parsed for Phylum
    • Only version 1.x poetry lockfiles are currently supported
  • Consider adding a new test fixture to account for the new lockfile version format

References:

Acceptance Criteria

  • poetry lockfile versions 1.x and 2.x are supported for parsing
  • Tests are updated to include all supported poetry lockfile versions
  • Documentation is updated

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestlow complexitySuitable for first time contributors.low priorityShould be handled as time permits

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions