Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Migrate packaging to uv - #4184

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

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.

@UnderHear UnderHear left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Could tox.ini also raise its minimum tox version to 4.22? At 034dfa2, the unit-test, lint and docs environments now install their tools solely through dependency_groups, but [tox] still allows 4.0.0. Tox documents dependency_groups as added in 4.22, so the permitted 4.0–4.21 versions cannot install these groups after this PR removes the previous deps / poetry install paths. That leaves the configured pytest, black/mypy and sphinx commands without their environment dependencies. Raising minversion (or requiring tox>=4.22) would keep older tox installations from attempting the unsupported configuration.

Reference: https://tox.wiki/en/latest/reference/config.html (the dependency_groups option).

AI-assisted source review by dot. I did not run tox or tests.

@zyv zyv mentioned this pull request Nov 15, 2026
10 tasks
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.

3 participants