Skip to content

Migrate packaging to uv#4184

Open
KRRT7 wants to merge 1 commit into
Textualize:mainfrom
KRRT7:migrate-to-uv
Open

Migrate packaging to uv#4184
KRRT7 wants to merge 1 commit into
Textualize:mainfrom
KRRT7:migrate-to-uv

Conversation

@KRRT7

@KRRT7 KRRT7 commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Type of changes

  • Bug fix
  • New feature
  • Documentation / docstrings
  • Tests
  • Other

AI?

  • AI was used to generate this PR

AI generated PRs may be accepted, but only if @willmcgugan has responded on an issue or discussion.

Checklist

  • I've run the latest black with default args on new code.
  • I've updated CHANGELOG.md and CONTRIBUTORS.md where appropriate (see note about typos above).
  • I've added tests for new code.
  • I accept that @willmcgugan may be pedantic in the code review.

Description

Migrates Rich's packaging and development dependency workflow from Poetry to uv.

Changes include:

  • Replace Poetry metadata with PEP 621 project metadata in pyproject.toml.
  • Use uv_build as the PEP 517 build backend.
  • Replace poetry.lock with uv.lock.
  • Move dev, lint, test, and docs requirements into dependency groups.
  • Update GitHub Actions, tox, Makefile, Read the Docs, and contributing docs to use uv project workflows.
  • Remove docs/requirements.txt and the setup.py metadata shim.

Validation run locally:

  • uv lock --check
  • uv build --out-dir /private/tmp/rich-uvbuild-dist
  • make docs
  • Checked the built wheel includes rich/py.typed and the license file.

No linked issue/discussion yet; this is packaging maintenance.

@codecov-commenter

codecov-commenter commented Jul 2, 2026

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@9d8f9a3). Learn more about missing BASE report.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4184   +/-   ##
=======================================
  Coverage        ?   97.81%           
=======================================
  Files           ?       96           
  Lines           ?     8384           
  Branches        ?        0           
=======================================
  Hits            ?     8201           
  Misses          ?      183           
  Partials        ?        0           
Flag Coverage Δ
unittests 97.81% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 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.

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.

2 participants