-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmakefile
47 lines (32 loc) · 1.04 KB
/
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
41
42
43
44
45
46
47
all: install test
install:
sage -pip install --upgrade --no-index -v .
install-internet:
sage -pip install --upgrade -v .
develop:
# python setup.py develop
sage -pip install --upgrade -e .
test:
sage -tp --force-lib --show-skipped slabbe/*.py slabbe/*.pyx --log=logs/test.log
testdemos:
sage -tp demos/*.rst --show-skipped --log=logs/test-demo.log
testlong:
sage -tp --long --force-lib --show-skipped slabbe/*.py slabbe/*.pyx --log=logs/testlong.log
pretestpython3:
find slabbe -name '*.py' | xargs -n 1 python3 -m py_compile
coverage:
sage -coverage slabbe/*
doc:install
cd docs && sage -sh -c "make html"
doc-pdf:install
cd docs && sage -sh -c "make latexpdf"
dist:
sage -python setup.py sdist
check: dist
VERSION=`cat VERSION`; sage -sh -c "twine check dist/slabbe-$$VERSION.tar.gz"
upload: dist
VERSION=`cat VERSION`; sage -sh -c "twine upload dist/slabbe-$$VERSION.tar.gz"
clean: clean-doc
clean-doc:
cd docs && sage -sh -c "make clean"
.PHONY: all install develop test coverage clean clean-doc doc doc-pdf dist register upload