Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

uv.lock is out of sync after running a release #1125

Closed
Labels
@JonZeolla

Description

@JonZeolla

Question

How can I keep myuv.lock file in sync with my other files likepyproject.toml?

I reviewed#1097 but my situation is different in two important ways:

  1. I'm not building usingpsr; I have my own custom logic for that which is handled after the release is cut.
  2. We use the GitHub Action and myuv uses private indexes so I would need to find a way to pass numerous secrets / specially formatted env vars into the runtime using the prior approach.

Suggestion

When I update myuv.lock, the change looks something like this:

 [[package]] name = "example"-version = "0.7.0"+version = "0.10.0"

There's no need for any other complex locking behavior (hash pinning, etc.).

It seems like we could be able to specify this version update with aversion_toml configuration or similar. However the problem is that we need to match on the[[package]] wherename = "example" and then update the correspondingversion field. I consideredversion_variables for this, which shows the potential to work but feels a bit hacky.

Configuration

Semantic Release Configuration
[tool.semantic_release]major_on_zero =falseversion_toml = ["pyproject.toml:project.version",]version_variables = ["src/example/__init__.py:__version__",]changelog_file ="CHANGELOG.md"commit_parser ="angular"commit_author ="Example <Example@example.com>"commit_message ="chore(release): example {version}"tag_format ="example=={version}"[tool.semantic_release.branches.release]match ="main"[tool.semantic_release.publish]dist_glob_patterns = ["path_relative_to_root/example/dist/*"]upload_to_vcs_release =true[tool.semantic_release.remote]name ="origin"type ="github"ignore_token_for_push =falseinsecure =false

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp