Skip to content

Conversation

@levi42x
Copy link

@levi42x levi42x commented Nov 26, 2025

Fixes #4501

Description

This PR adds support for parsing Python UV package manager projects in scancode-toolkit.
It enables detection, parsing, and full package assembly for UV-based projects using
pyproject.toml and uv.lock.

Changes

  • UvPyprojectTomlHandler: Parses pyproject.toml files containing [tool.uv] sections
  • UvLockHandler: Parses uv.lock files and extracts resolved dependencies
  • BaseUvPythonLayout: Coordinates UV project assembly and resource handling
  • Dependency parsing: Reuses existing PyPI dependency parsing logic to avoid duplication
  • Tests: Adds an end-to-end package assembly test covering a complete UV project layout

Tasks

  • Reviewed contribution guidelines
  • PR is descriptively titled 📑 and links the original issue above 🔗
  • Tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR
    Run tests locally to check for errors.
  • Commits are in uniquely-named feature branch and has no merge conflicts 📁
  • Updated documentation pages (if applicable)
  • Updated CHANGELOG.rst (if applicable)

Signed-off-by: Shekhar Suman levi42x@gmail.com

@levi42x levi42x force-pushed the feature/parse-uv_package branch from 64d01f0 to 900452d Compare November 27, 2025 03:45
Copy link
Member

@AyanSinhaMahapatra AyanSinhaMahapatra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks++ @levi42x for the PR, much needed update! ❤️

This is a great start and a step in the right direction, but needs some more updates and love. See my comments for your consideration.

Signed-off-by: Shekhar Suman <levi42x@gmail.com>
@levi42x levi42x force-pushed the feature/parse-uv_package branch from 756875b to 50a5552 Compare January 28, 2026 21:21
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 parsing python UV manifests

2 participants