mirror of
https://github.com/stripe/ai.git
synced 2026-09-14 18:39:59 +08:00
19 lines
414 B
Makefile
19 lines
414 B
Makefile
VENV_NAME?=.venv
|
|
UV?=uv
|
|
PYTHON?=python3.11
|
|
DEFAULT_TEST_ENV?=py311
|
|
|
|
venv: $(VENV_NAME)/bin/python
|
|
|
|
$(VENV_NAME)/bin/python: requirements.txt
|
|
$(UV) venv --python $(PYTHON) $(VENV_NAME) --clear
|
|
$(UV) pip install --python $(VENV_NAME)/bin/python -r requirements.txt
|
|
|
|
test: venv
|
|
${VENV_NAME}/bin/python -m unittest discover tests
|
|
|
|
build: venv
|
|
cp ../../LICENSE LICENSE
|
|
${VENV_NAME}/bin/python -m build
|
|
rm LICENSE
|