From 1769f80801dfd600d488f99867e5c89710a1e13c Mon Sep 17 00:00:00 2001 From: Kristoffer Andersson Date: Mon, 18 Nov 2024 13:01:21 +0100 Subject: [PATCH] chore: adapt Makefiles --- Makefile | 10 ++++++++-- ocr-correction-viklofg-sweocr/Makefile | 6 +++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index fd0f27f..ffd0698 100644 --- a/Makefile +++ b/Makefile @@ -58,8 +58,8 @@ help: @echo "" PLATFORM := `uname -o` -REPO := "" -PROJECT_SRC := "" +REPO := sparv-sbx-ocr-correction +PROJECT_SRC := ocr-correction-viklofg-sweocr/src ifeq (${VIRTUAL_ENV},) VENV_NAME = .venv @@ -167,3 +167,9 @@ snapshot-update: ${INVENV} pytest --snapshot-update ### === project targets below this line === +.PHONY: viklofg-sweocr-prepare-release +viklofg-sweocr-prepare-release: ocr-correction-viklofg-sweocr/CHANGELOG.md + +.PHONY: ocr-correction-viklofg-sweocr/CHANGELOG.md +ocr-correction-viklofg-sweocr/CHANGELOG.md: + git cliff --unreleased --include-path "ocr-correction-viklofg-sweocr/**/*" --include-path "examples/ocr-correction-viklofg-sweocr/**/*" --prepend $@ diff --git a/ocr-correction-viklofg-sweocr/Makefile b/ocr-correction-viklofg-sweocr/Makefile index a294af0..2f04cc9 100644 --- a/ocr-correction-viklofg-sweocr/Makefile +++ b/ocr-correction-viklofg-sweocr/Makefile @@ -57,7 +57,7 @@ help: @echo "" PLATFORM := `uname -o` -REPO := "sparv-sbx-ocr-correction" +REPO := sparv-sbx-ocr-correction PROJECT_SRC := src/ocr_correction_viklofg_sweocr ifeq (${VIRTUAL_ENV},) @@ -151,7 +151,7 @@ prepare-release: update-changelog tests/requirements-testing.lock # we use lock extension so that dependabot doesn't pick up changes in this file tests/requirements-testing.lock: pyproject.toml - uv pip compile $< --group dev --output-file $@ + uv export --dev --format requirements-txt --no-hashes --output-file $@ .PHONY: update-changelog update-changelog: CHANGELOG.md @@ -166,7 +166,7 @@ snapshot-update: ${INVENV} pytest --snapshot-update ### === project targets below this line === -.PHONY: kb-bert-prepare-release +.PHONY: viklofg-sweocr-prepare-release viklofg-sweocr-prepare-release: ocr-correction-viklofg-sweocr/CHANGELOG.md .PHONY: ocr-correction-viklofg-sweocr/CHANGELOG.md