Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ APP_VERSION_FILE = app/version.py
GIT_BRANCH ?= $(shell git symbolic-ref --short HEAD 2> /dev/null || echo "detached")
GIT_COMMIT ?= $(shell git rev-parse HEAD)

EXCLUDE_REQUIREMENTS_NEWER_THAN_DAYS ?= 30


## DEVELOPMENT

Expand Down Expand Up @@ -54,12 +56,16 @@ bootstrap-with-docker: generate-version-file

.PHONY: freeze-requirements
freeze-requirements: ## create static requirements.txt
uv pip compile requirements.in -o requirements.txt
uv pip compile requirements.in -o requirements.txt $(EXTRA_UV_PIP_COMPILE_FLAGS)
uv pip sync requirements.txt
python -c "from notifications_utils.version_tools import copy_config; copy_config()"
uv pip compile requirements_for_test.in -o requirements_for_test.txt
uv pip compile requirements_for_test.in -o requirements_for_test.txt $(EXTRA_UV_PIP_COMPILE_FLAGS)
uv pip sync requirements_for_test.txt

.PHONY: refreeze-requirements
refreeze-requirements: ## Upgrade unpinned requirements
EXTRA_UV_PIP_COMPILE_FLAGS="--upgrade --exclude-newer $(EXCLUDE_REQUIREMENTS_NEWER_THAN_DAYS)d" make freeze-requirements

.PHONY: generate-version-file
generate-version-file: ## Generates the app version file
@echo -e "__git_commit__ = \"${GIT_COMMIT}\"\n__time__ = \"${DATE}\"" > ${APP_VERSION_FILE}
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# This file was autogenerated by uv via the following command:
# uv pip compile requirements.in -o requirements.txt
# uv pip compile requirements.in -o requirements.txt --exclude-newer 14d
awscrt==0.31.2
# via botocore
blinker==1.9.0
# via
# flask
# gds-metrics
# sentry-sdk
boto3==1.42.59
boto3==1.42.61
# via notifications-utils
botocore==1.42.59
botocore==1.42.61
# via
# boto3
# s3transfer
Expand Down
6 changes: 3 additions & 3 deletions requirements_for_test.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file was autogenerated by uv via the following command:
# uv pip compile requirements_for_test.in -o requirements_for_test.txt
# uv pip compile requirements_for_test.in -o requirements_for_test.txt --exclude-newer 14d
awscrt==0.31.2
# via
# -r requirements.txt
Expand All @@ -11,11 +11,11 @@ blinker==1.9.0
# -r requirements.txt
# flask
# gds-metrics
boto3==1.42.59
boto3==1.42.61
# via
# -r requirements.txt
# notifications-utils
botocore==1.42.59
botocore==1.42.61
# via
# -r requirements.txt
# boto3
Expand Down
Loading