Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tzdata as dev dependency and sync with tox.ini #1159

Merged
merged 5 commits into from
Jan 8, 2025

Conversation

wandrew004
Copy link
Contributor

@wandrew004 wandrew004 commented Dec 5, 2024

Summary

  • This resolves issues with missing dependencies when running tests on Windows

Related Issue

Closes #1150

Changes Made

  • Added tzdata to the dev dependencies in setup.py
  • Updated tox.ini to remove tzdata to make it consistent with setup.py

Testing Done

Recreated virtual environment and installed the dependencies using:

rm -rf venv
python -m venv venv
source venv/bin/activate
pip install -e .[dev]

Test output matches before and after changes
image

Tested on Windows OS

@wandrew004
Copy link
Contributor Author

@tomasr8 Hi, do you need any additional tests or information before running the workflow tests?

@tomasr8
Copy link
Member

tomasr8 commented Dec 9, 2024

Not in my power ;) @akx mind enabling the workflow?

Copy link
Member

@akx akx left a comment

Choose a reason for hiding this comment

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

Beyond the inline note that the dependency should have the same platform marker it had in the tox.ini file (so as to avoid installing it on platforms where it's unnecessary), it would be better to do as I suggested in #1150 (comment), IOW get rid of the duplicated dependency lists altogether.

setup.py Outdated Show resolved Hide resolved
@akx akx changed the title Add tazdata as dev dependencies and sync with tox.ini Add tzdata as dev dependency and sync with tox.ini Dec 9, 2024
@wandrew004
Copy link
Contributor Author

@akx Thanks for reviewing! I made changes per your feedback.

setup.py Outdated Show resolved Hide resolved
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
@wandrew004
Copy link
Contributor Author

Can we run CI for these changes?

@wandrew004
Copy link
Contributor Author

@akx Would you be able to take a look? Thanks!

Copy link

codecov bot commented Jan 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.30%. Comparing base (9d25e67) to head (7c6794a).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1159      +/-   ##
==========================================
- Coverage   91.47%   91.30%   -0.18%     
==========================================
  Files          27       27              
  Lines        4636     4636              
==========================================
- Hits         4241     4233       -8     
- Misses        395      403       +8     
Flag Coverage Δ
macos-14-3.10 90.31% <ø> (+0.06%) ⬆️
macos-14-3.11 90.25% <ø> (+0.06%) ⬆️
macos-14-3.12 90.46% <ø> (+0.06%) ⬆️
macos-14-3.13 90.46% <ø> (+0.06%) ⬆️
macos-14-3.8 90.17% <ø> (ø)
macos-14-3.9 90.24% <ø> (+0.06%) ⬆️
macos-14-pypy3.10 90.31% <ø> (+0.06%) ⬆️
ubuntu-24.04-3.10 90.33% <ø> (+0.06%) ⬆️
ubuntu-24.04-3.11 90.27% <ø> (+0.06%) ⬆️
ubuntu-24.04-3.12 90.48% <ø> (+0.06%) ⬆️
ubuntu-24.04-3.13 90.48% <ø> (+0.06%) ⬆️
ubuntu-24.04-3.8 90.20% <ø> (ø)
ubuntu-24.04-3.9 90.26% <ø> (+0.06%) ⬆️
ubuntu-24.04-pypy3.10 90.33% <ø> (+0.06%) ⬆️
windows-2022-3.10 90.34% <ø> (-0.05%) ⬇️
windows-2022-3.11 90.28% <ø> (-0.05%) ⬇️
windows-2022-3.12 90.49% <ø> (-0.05%) ⬇️
windows-2022-3.13 90.49% <ø> (-0.05%) ⬇️
windows-2022-3.8 90.31% <ø> (ø)
windows-2022-3.9 90.27% <ø> (-0.05%) ⬇️
windows-2022-pypy3.10 90.34% <ø> (-0.05%) ⬇️

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

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

Copy link
Member

@akx akx left a comment

Choose a reason for hiding this comment

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

I took the liberty of fixing the indentation failures, and reinstating BABEL_TOX_EXTRA_DEPS (which we need for GitHub Actions). LGTM, thanks, and sorry for the delays. Happy new year!

@akx akx merged commit fb8dbba into python-babel:master Jan 8, 2025
25 of 26 checks passed
@akx akx added this to the Babel 2.17 milestone Jan 14, 2025
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.

setup instructions in CONTRIBUTING.md do not install all dependencies
3 participants