From 7202529af931b97d531cedeeeb37a482e0d2d812 Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Wed, 17 Jul 2024 12:04:55 +0200 Subject: [PATCH] document how to run tests without venv nor hatch --- README.md | 4 ++++ tests/bin/bmaptool | 2 ++ 2 files changed, 6 insertions(+) create mode 100755 tests/bin/bmaptool diff --git a/README.md b/README.md index f4669cf..b63ac12 100644 --- a/README.md +++ b/README.md @@ -335,6 +335,10 @@ Finally, to run tests use `unittest`: python3 -m unittest -bv ``` +On platforms without hatch or venv you can also directly execute the tests: + + PATH=tests/bin:$PATH PYTHONPATH=src python3 -m unittest -bv + ## Project and maintainer The bmaptool project implements bmap-related tools and API modules. The entire diff --git a/tests/bin/bmaptool b/tests/bin/bmaptool new file mode 100755 index 0000000..f0d4233 --- /dev/null +++ b/tests/bin/bmaptool @@ -0,0 +1,2 @@ +#!/bin/sh +exec /usr/bin/env python3 -m src.bmaptool "$@"