Skip to content

Commit

Permalink
build(dev-requirements): pip-compile bookworm dependencies in contain…
Browse files Browse the repository at this point in the history
…er if necessary

Since we still officially target Python 3.9 on Debian bullseye, Python
3.11 dependencies on Debian bookworm are diffed by the
"check-testing-requirements" job but not easily updated in the
development environment.  This lets you update "next" dependencies in a
"current" development environment.
  • Loading branch information
cfm committed Sep 26, 2023
1 parent 3167b91 commit ce25b33
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,19 @@ check: clean check-black check-isort semgrep bandit lint mypy test-random test-i
.PHONY: dev-requirements
dev-requirements: ## Update dev-*requirements.txt files if pinned versions do not comply with the dependency specifications in dev-*requirements.in
pip-compile --allow-unsafe --generate-hashes --output-file requirements/dev-bullseye-requirements.txt requirements/dev-bullseye-requirements.in
ifneq ($(VERSION_CODENAME), bookworm)
docker run \
--interactive \
--name dev-requirements \
--rm \
--tty \
--volume "${PWD}":/srv \
--workdir /srv \
python:3.11-bookworm \
bash -c "pip install pip-tools && pip-compile --allow-unsafe --generate-hashes --output-file requirements/dev-bookworm-requirements.txt requirements/dev-bookworm-requirements.in"
else
pip-compile --allow-unsafe --generate-hashes --output-file requirements/dev-bookworm-requirements.txt requirements/dev-bookworm-requirements.in
endif
pip-compile --allow-unsafe --generate-hashes --output-file requirements/dev-sdw-requirements.txt requirements/dev-sdw-requirements.in

.PHONY: update-dev-dependencies
Expand Down

0 comments on commit ce25b33

Please sign in to comment.