Skip to content

Migrate from Poetry to uv#51

Merged
golles merged 1 commit intomainfrom
migrate-to-uv
Mar 7, 2025
Merged

Migrate from Poetry to uv#51
golles merged 1 commit intomainfrom
migrate-to-uv

Conversation

@golles
Copy link
Copy Markdown
Owner

@golles golles commented Mar 7, 2025

Proposed change

  • npm tools are now installed via a package.json file
  • Dependabot uv updates are available via enable-beta-ecosystems
  • Move common shell functions to utils.sh

Breaking change

Checklist:

  • I have performed a self-review of my code
  • I have added tests that prove my fix is effective or that my feature works

- npm tools are now installed via a package.json file
- Dependabot uv updates are available via `enable-beta-ecosystems`
- Move common shell functions to `utils.sh`
@@ -1,16 +1,22 @@
version: 2
enable-beta-ecosystems: true
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

uv was just added recently; dependabot/dependabot-core#11687

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (7b79218) to head (5f7129c).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #51   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           41        41           
  Lines         2253      2253           
=========================================
  Hits          2253      2253           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Mar 7, 2025

version="${{ github.ref_name }}"
version=${version#v}
poetry version ${{ github.ref_name }}
uvx --from=toml-cli toml set --toml-path=pyproject.toml project.version "$version"
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

uv has no function to set the project version, so it needs to be updated in pyproject.toml manually.

@golles golles merged commit 0496fb4 into main Mar 7, 2025
15 checks passed
@golles golles deleted the migrate-to-uv branch March 7, 2025 16:37
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.

1 participant