From 9f7f7386c7fe49b249f6dd8c558266ce65e407dd Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Sat, 9 Jul 2022 09:03:36 +0200 Subject: New upstream version 0.18 --- Makefile | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..481d190 --- /dev/null +++ b/Makefile @@ -0,0 +1,33 @@ +.PHONY: rtest build test clean all + + +PYTHON ?= python +ROOT = $(dir $(realpath $(firstword $(MAKEFILE_LIST)))) + + +all: build + +build: + $(PYTHON) setup.py build_ext --inplace + +debug: + DEBUG_IMMUTABLES=1 $(PYTHON) setup.py build_ext --inplace + +test: + $(PYTHON) -m pytest -v + +rtest: + ~/dev/venvs/36-debug/bin/python setup.py build_ext --inplace + + env PYTHONPATH=. \ + ~/dev/venvs/36-debug/bin/python -m test.regrtest -R3:3 --testdir tests/ + +clean: + find . -name '*.pyc' | xargs rm -f + find . -name '*.so' | xargs rm -f + rm -rf ./build + rm -rf ./dist + rm -rf ./*.egg-info + +testinstalled: + cd /tmp && $(PYTHON) $(ROOT)/tests/__init__.py -- cgit v1.2.3