Skip to content

Commit 2f87199

Browse files
committed
chore: Replace hardcoded version of Pip Tools in Make variable
In `Makefile`, obtain the version of `pip-tools` from Python dependency manifests instead of hardcoding it in `Makefile`. This change avoids having to update the version of that package in multiple places (`requirements.*` and `Makefile`).
1 parent f1c02ec commit 2f87199

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ PYTHON_PIP_VERSION_SPECIFIER = ==24.2
1010
PYTHON_SETUPTOOLS_VERSION_SPECIFIER = ==75.8.2
1111
PYTHON_WHEEL_VERSION_SPECIFIER = ==0.45.1
1212
PYTHON_VIRTUALENV_DIR = .pyenv
13-
PYTHON_PIP_TOOLS_VERSION_SPECIFIER = ==7.4.1
13+
PYTHON_PIP_TOOLS_VERSION_SPECIFIER = $(shell \
14+
grep -E '^pip-tools==.+' --no-filename --only-matching --no-messages -- requirements{,-dev}.{txt,in} \
15+
| head -n 1 | sed 's/^pip-tools//' \
16+
)
1417
PYTHON_PIP_TOOLS_SRC_FILES = requirements.in requirements-dev.in
1518

1619
# Django Admin

0 commit comments

Comments
 (0)