Skip to content

Migrate to UV#1748

Merged
JrooTJunior merged 3 commits intodev-3.xfrom
misc/uv
Jan 1, 2026
Merged

Migrate to UV#1748
JrooTJunior merged 3 commits intodev-3.xfrom
misc/uv

Conversation

@JrooTJunior
Copy link
Member

Description

Migrated from hatch to uv for dependency management and development workflows.

This change improves developer experience with significantly faster dependency resolution (10-100x faster than pip), automatic virtual environment management, and reproducible builds through lockfile support.

What changed for contributors:

  • Install dependencies with uv sync --all-extras --group dev --group test instead of pip install -e .[dev,test,docs]
  • Run commands with uv run prefix (e.g., uv run pytest, uv run black)
  • All Makefile commands now use uv internally (make install, make test, make lint, etc.)
  • Version bumping now uses a custom scripts/bump_version.py script instead of hatch version

What stayed the same:

  • Build backend remains hatchling (no changes to package building)
  • Dynamic version reading from aiogram/__meta__.py still works
  • All GitHub Actions CI/CD workflows updated to use uv
  • ReadTheDocs builds continue to work without changes
  • Development dependencies (dev, test) moved to [dependency-groups] section
  • Documentation dependencies (docs) remain in [project.optional-dependencies] for compatibility

Contributors can use either the traditional pip/venv workflow or the new uv workflow - both are documented in the contributing guide.

…ncluding dependency management, testing, linting, and docs workflows.
@github-actions github-actions bot added the 3.x Issue or PR for stable 3.x version label Jan 1, 2026
@github-actions
Copy link

github-actions bot commented Jan 1, 2026

✔️ Changelog found.

Thank you for adding a description of the changes

@codecov
Copy link

codecov bot commented Jan 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (7201e82) to head (18e55cb).
⚠️ Report is 1 commits behind head on dev-3.x.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##           dev-3.x     #1748   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          591       591           
  Lines        13999     13986   -13     
=========================================
- Hits         13999     13986   -13     
Flag Coverage Δ
unittests 100.00% <ø> (ø)

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

Files with missing lines Coverage Δ
aiogram/dispatcher/dispatcher.py 100.00% <ø> (ø)

... and 2 files with indirect coverage changes

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

@JrooTJunior JrooTJunior marked this pull request as ready for review January 1, 2026 23:27
@JrooTJunior JrooTJunior merged commit ce4ddb7 into dev-3.x Jan 1, 2026
23 checks passed
@JrooTJunior JrooTJunior added dependencies Pull requests that update a dependency file enhancement Make it better! and removed 3.x Issue or PR for stable 3.x version labels Jan 1, 2026
@JrooTJunior JrooTJunior deleted the misc/uv branch January 1, 2026 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file enhancement Make it better!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant