feat: add initial project scaffolding with Makefile, setup.py, C headers, and Python Environment/Template classes
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
# retoor <retoor@molodetz.nl>
|
||||
|
||||
PYTHON = python3
|
||||
PIP = pip3
|
||||
|
||||
.PHONY: all build install clean test
|
||||
|
||||
all: build
|
||||
|
||||
build:
|
||||
$(PYTHON) setup.py build_ext --inplace
|
||||
|
||||
install:
|
||||
$(PIP) install .
|
||||
|
||||
clean:
|
||||
rm -rf build/
|
||||
rm -rf src/rinja/*.so
|
||||
rm -rf src/rinja/__pycache__
|
||||
rm -rf tests/__pycache__
|
||||
rm -rf rinja.egg-info
|
||||
|
||||
test: build
|
||||
PYTHONPATH=src $(PYTHON) -m pytest tests
|
||||
Reference in New Issue
Block a user