Skip to content

deps: Add reproducible Python venv with uv#261

Merged
paulsc96 merged 11 commits intomainfrom
fischeti/uv
Mar 5, 2026
Merged

deps: Add reproducible Python venv with uv#261
paulsc96 merged 11 commits intomainfrom
fischeti/uv

Conversation

@fischeti
Copy link
Contributor

@fischeti fischeti commented Mar 4, 2026

The CI currently fails on main due python dependencies, which is fixed in this PR. Further replaces the old requirements.txt with a more modern pyproject.toml and uses uv to create a python virtual environment. The main advantage is that this allows to have a reproducible python environment for users, Github CI & internal Gitlab CI.

Changed

  • replace requirements.txt with pyproject.toml
  • Bumps flatdict (current failure) -> requires python 3.11 -> requires setuptools<81 (because of super old regtool)
  • Locks python dependencies in uv.lock
  • Bumps bender to newest version 0.31.0
  • Update pulp github actions

TODOs:

  • Merge nonfree PR

@fischeti fischeti requested review from creinwar and paulsc96 March 4, 2026 19:39
@fischeti fischeti changed the title env: Add reproducible python venv with uv py: Add reproducible venv with uv Mar 4, 2026
paulsc96
paulsc96 previously approved these changes Mar 4, 2026
Copy link
Member

@paulsc96 paulsc96 left a comment

Choose a reason for hiding this comment

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

Not much to say here. a few lines of change, and a 700 line lock file. I guess we should stop worrying about microplastics, because soon we, like our codebases, will be 98% lockfile.

Jokes aside, see comments.

@paulsc96
Copy link
Member

paulsc96 commented Mar 4, 2026

Nonfree PR is merged.

@fischeti
Copy link
Contributor Author

fischeti commented Mar 4, 2026

Thanks for the quick review! I addressed all the comments and bumped the nonfree commit

@paulsc96 paulsc96 changed the title py: Add reproducible venv with uv deps: Add reproducible Python venv with uv Mar 4, 2026
@paulsc96 paulsc96 merged commit a4fa698 into main Mar 5, 2026
20 of 21 checks passed
@paulsc96 paulsc96 deleted the fischeti/uv branch March 5, 2026 13:52
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.

2 participants