Skip to content

Commit

Permalink
chore: adapt Makefiles
Browse files Browse the repository at this point in the history
  • Loading branch information
kod-kristoff committed Nov 18, 2024
1 parent c7cf08b commit 1769f80
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ help:
@echo ""

PLATFORM := `uname -o`
REPO := "<REPO-NAME-HERE>"
PROJECT_SRC := "<SRC-FOLDER-HERE>"
REPO := sparv-sbx-ocr-correction
PROJECT_SRC := ocr-correction-viklofg-sweocr/src

ifeq (${VIRTUAL_ENV},)
VENV_NAME = .venv
Expand Down Expand Up @@ -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 $@
6 changes: 3 additions & 3 deletions ocr-correction-viklofg-sweocr/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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},)
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1769f80

Please sign in to comment.