Skip to content

Support PEP 751 pylock.toml lockfiles #4638 - #5386

Open
aryan1234-l wants to merge 1 commit into
aboutcode-org:developfrom
aryan1234-l:support-pylock-toml
Open

aryan1234-l wants to merge 1 commit into
aboutcode-org:developfrom
aryan1234-l:support-pylock-toml

Conversation

@aryan1234-l

Copy link
Copy Markdown

Summary

This PR adds support for PEP 751 pylock.toml lockfiles in packagedcode.

Details

  • Implemented PylockTomlHandler and BasePylockPythonLayout in src/packagedcode/pypi.py.
  • Supports standard pylock.toml as well as named lockfiles (matching pylock.<name>.toml).
  • Parses packages and extracts dependencies, sdist, wheels, VCS, directory, and archive sources along with hashes (sha256, sha512, md5, sha1), size, and qualifiers.
  • Assembles dependencies and package relationships with pyproject.toml projects.
  • Added unit and end-to-end package assembly tests with regenerated expected test fixtures in tests/packagedcode/.
  • Updated AUTHORS.rst and CHANGELOG.rst.

Closes #4638.

Signed-off-by: Aryan Gupta arynrav11@gmail.com

Add PylockTomlHandler to packagedcode to support PEP 751 pylock.toml
lockfiles and named variants (such as pylock.<name>.toml).

- Support parsing packages, sdist, wheels, vcs, directory, and archive sources
- Extract dependencies, resolved packages, hashes, qualifiers, and metadata
- Assemble packages and dependencies with pyproject.toml projects
- Add unit and end-to-end assembly tests with test fixtures

Resolves: aboutcode-org#4638
Signed-off-by: Aryan Gupta <arynrav11@gmail.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support pylock.toml

1 participant