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

Updated python packages December 2024. #4251

Merged
merged 1 commit into from
Dec 6, 2024
Merged

Conversation

frjo
Copy link
Member

@frjo frjo commented Dec 5, 2024

The flow to update are as follow:

  1. Run uv tree -d 1 --outdated to get list of packages with updates.
  2. Update the package version in pyproject.toml
  3. Run uv sync, this will install all the new packages and sync the uv.lock file.
    • The command will alert of any dependency conflicts, you need to resolve these.
  4. Run pre-commit run --all-files, this will run the uv commands needed to update all the requirements* files. (Info is taken from the uv.lock file so it must be updated before this step.)

@frjo frjo added Type: Maintenance Type: Minor Minor change, used in release drafter labels Dec 5, 2024
@frjo frjo force-pushed the maintenance/pip-packages-dec-24 branch 2 times, most recently from 175bd18 to 838ab8e Compare December 5, 2024 14:27
@frjo frjo requested a review from theskumar December 5, 2024 14:30
@frjo frjo force-pushed the maintenance/pip-packages-dec-24 branch from 838ab8e to 17bb4fb Compare December 5, 2024 14:32
@frjo frjo added Status: Needs testing Tickets that need testing/qa Status: Needs dev testing 🧑‍💻 Tasks that should be tested by the dev team labels Dec 6, 2024
@theskumar
Copy link
Member

For just updating the lock file without doing anything else, uv lock --upgrade can also be used. If pre-precomit is enabled, just adding a new commit should generate the update the requirements/*.txt files.

uv sync is obviously the best command to do all the things, like upgrading python, removing any packages not mentioned in the lock file etc.

If the tests passes and regression passes, this looks good to me, I'll spend sometime doing smoke test.

@frjo frjo force-pushed the maintenance/pip-packages-dec-24 branch from 17bb4fb to ce54a4e Compare December 6, 2024 10:18
@wes-otf
Copy link
Contributor

wes-otf commented Dec 6, 2024

I think this is ready, in all my testing today I didn't seem to have any issues

@wes-otf wes-otf added Status: Tested - approved for live ✅ and removed Status: Needs testing Tickets that need testing/qa Status: Needs dev testing 🧑‍💻 Tasks that should be tested by the dev team labels Dec 6, 2024
@frjo frjo merged commit a809dfd into main Dec 6, 2024
7 checks passed
@theskumar theskumar deleted the maintenance/pip-packages-dec-24 branch December 7, 2024 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants