forked from piranha/opster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (31 loc) · 844 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
.PHONY: help docs arch test
SHELL ?= /bin/sh
CRAM = cram --shell="$(SHELL)" --preserve-env
PYTHON3 = python3
BUILD_DIR = `pwd`/build/lib
help:
@echo "Use \`make <target>\` with one of targets:"
@echo " docs build docs"
@echo " open open docs"
@echo " arch update archlinux pkgbuild"
@echo " test run tests"
docs:
cd docs && make
open:
cd docs && make open
arch:
python contrib/updatepkg.py
test:
python opster.py
$(CRAM) tests/opster.t
test2to3:
"$(PYTHON3)" setup.py build
2to3 --doctests_only --write "$(BUILD_DIR)"/opster.py
"$(PYTHON3)" "$(BUILD_DIR)"/opster.py
PYTHON="$(PYTHON3)" OPSTER_DIR="$(BUILD_DIR)" $(CRAM) tests/opster.t
PYTHON="$(PYTHON3)" OPSTER_DIR="$(BUILD_DIR)" $(CRAM) tests/py3k.t
coverage:
coverage run -a opster.py
COVERAGE=1 $(CRAM) tests/opster.t
upload:
python setup.py sdist upload