Eloi Torrents 4d7c1a1d12 init
2025-09-21 14:46:51 +02:00

19 lines
590 B
Makefile

SAGE_PY := "sage -python"
# Create the Sage-aware virtual environment and install this package editable.
prepare:
if [ ! -d .venv ]; then {{SAGE_PY}} -m venv --system-site-packages .venv; fi
.venv/bin/pip install --no-build-isolation -e .
# Upgrade pip inside the managed virtual environment.
update: prepare
.venv/bin/python -m pip install --upgrade pip
# Run the elliptic curve demo using the virtual environment.
run: prepare
.venv/bin/python elliptic_curve_demo.py
# Execute the unit test suite.
test: prepare
.venv/bin/python -m unittest discover -s tests -t .