Skip to content

Update tox envs + switch to dependency groups - #1464

Open
tomasr8 wants to merge 2 commits into
python-babel:masterfrom
tomasr8:tox
Open

tomasr8 wants to merge 2 commits into
python-babel:masterfrom
tomasr8:tox

Conversation

@tomasr8

@tomasr8 tomasr8 commented Nov 13, 2026

Copy link
Copy Markdown
Member

I originally just wanted to remove the py38 env from tox but then (as it usually happens 😆 ) I noticed the pytz, jinja and setuptools envs. They all install the same dev extra meaning we run the same test suite multiple times, one for each env.

The envs actually used to install the respective packages (pytz, jinja and setuptools ) until #1159 which removed it. I don't think we need to fully restore this behaviour, probably one env with the optional dependencies and one without is enough, which is what I've done here.

I also took the liberty to switch to dependency groups since there was the TODO in pyproject.toml and it just felt natural here. There are now two groups:

  • test: installs only what is needed for the tests
  • dev: installs the extras (pytz, etc..)

Tox runs the dev group on all versions + runs the bare test group on py314 only.

Feedback welcome! :)

@tomasr8
tomasr8 force-pushed the tox branch 2 times, most recently from 0fbf3e1 to 3663f96 Compare November 13, 2026 20:58
@codspeed

codspeed Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 88 untouched benchmarks


Comparing tomasr8:tox (21f08e1) with master (9214841)

Open in CodSpeed

@codecov

codecov Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.83%. Comparing base (9214841) to head (21f08e1).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1464      +/-   ##
==========================================
+ Coverage   93.67%   93.83%   +0.16%     
==========================================
  Files          27       27              
  Lines        4983     4983              
==========================================
+ Hits         4668     4676       +8     
+ Misses        315      307       -8     
Flag Coverage Δ
macos-26-3.10 92.75% <ø> (ø)
macos-26-3.11 92.69% <ø> (ø)
macos-26-3.12 92.95% <ø> (ø)
macos-26-3.13 92.95% <ø> (ø)
macos-26-3.14 93.09% <ø> (+0.16%) ⬆️
macos-26-3.15 92.93% <ø> (ø)
macos-26-3.9 92.69% <ø> (ø)
macos-26-pypy3.10 92.75% <ø> (ø)
ubuntu-24.04-3.10 92.77% <ø> (ø)
ubuntu-24.04-3.11 92.71% <ø> (ø)
ubuntu-24.04-3.12 92.97% <ø> (ø)
ubuntu-24.04-3.13 92.97% <ø> (ø)
ubuntu-24.04-3.14 93.11% <ø> (+0.16%) ⬆️
ubuntu-24.04-3.15 92.95% <ø> (ø)
ubuntu-24.04-3.9 92.71% <ø> (ø)
ubuntu-24.04-pypy3.10 92.77% <ø> (ø)
windows-2025-3.10 92.76% <ø> (ø)
windows-2025-3.11 92.70% <ø> (ø)
windows-2025-3.12 92.96% <ø> (ø)
windows-2025-3.13 92.96% <ø> (ø)
windows-2025-3.14 93.14% <ø> (+0.20%) ⬆️
windows-2025-3.15 92.94% <ø> (ø)
windows-2025-3.9 92.70% <ø> (ø)
windows-2025-pypy3.10 92.76% <ø> (ø)

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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@tomasr8
tomasr8 marked this pull request as ready for review November 14, 2026 19:14

This branch has not been deployed

No deployments
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