Skip to content

Add the python standard pylock.toml file #4899

@harshil21

Description

@harshil21

What kind of feature are you missing? Where do you notice a shortcoming of PTB?

#4890 introduced a lock file which when installed with uv, ensures that every environment has the same set of dependencies (including transitive ones).

There is also a newly introduced pylock.toml file from PEP 751 which would ideally be a tool independent way to install dependencies from the environment. However not all tools are "fully" supporting it yet.

Some open issues/discussions across different python tools:

Describe the solution you'd like

Once all tools have good support for pylock.toml, e.g. uv, pip, renovate, dependabot, etc. We should delete the uv.lock file then.

Describe alternatives you've considered

Keep using uv.lock for now.

Additional context

From #4796 (comment)

Notably uv says in the linked issue that pylock.toml doesn't have the feature set it needs for it to be used natively, so we'll have to see if they improve / support it more in the future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🔗 pythonrelated technology: python

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions