From 23e456e826851c5c54a2cd98412c9f0814755635 Mon Sep 17 00:00:00 2001 From: Dandaedre Date: Wed, 16 Sep 2026 02:55:47 +0200 Subject: [PATCH] chore: keep test dependencies with tests --- docs/development.md | 2 +- requirements.txt => tests/requirements.txt | 0 tests/test.sh | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename requirements.txt => tests/requirements.txt (100%) diff --git a/docs/development.md b/docs/development.md index 0af36b9..ca1e50c 100644 --- a/docs/development.md +++ b/docs/development.md @@ -7,7 +7,7 @@ authoring are documented in the main [README](../README.md) and ## Test environment Tests require uv and Typst. `tests/test.sh` creates `.venv` and synchronizes the pinned -packages from `requirements.txt`, and invokes Python only from that environment. +packages from `tests/requirements.txt`, and invokes Python only from that environment. ```bash ./tests/test.sh diff --git a/requirements.txt b/tests/requirements.txt similarity index 100% rename from requirements.txt rename to tests/requirements.txt diff --git a/tests/test.sh b/tests/test.sh index c2e561d..7438c7a 100755 --- a/tests/test.sh +++ b/tests/test.sh @@ -2,5 +2,5 @@ set -euo pipefail cd "$(dirname "${BASH_SOURCE[0]}")/.." uv venv --python 3.11 --allow-existing .venv -uv pip sync --python .venv/bin/python requirements.txt +uv pip sync --python .venv/bin/python tests/requirements.txt .venv/bin/python -m unittest discover -s tests -p 'test_*.py' -v