-
Notifications
You must be signed in to change notification settings - Fork 16
/
Makefile
55 lines (43 loc) · 1.11 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
48
49
50
51
52
53
54
LIB=pysdd
.PHONY: clean
clean:
python3 setup.py clean
rm -f ${LIB}/sdd*.c
rm -f ${LIB}/sdd*.so
rm -fr build/*
.PHONY: build
build:
python3 setup.py build_ext --inplace
.PHONY: build_debug
build_debug: clean
python3 setup.py --debug build_ext --inplace
.PHONY: prepare_dist
prepare_dist:
rm -rf dist/*
python3 setup.py sdist
@#python3 setup.py sdist bdist_wheel
.PHONY: version
version:
@python3 -c "import pysdd;print(pysdd.__version__)"
.PHONY: deploy
deploy: prepare_dist
@echo "Check whether repo is clean"
git diff-index --quiet HEAD
@echo "Add tag"
#git tag "v$$(python3 setup.py --version)"
versiontag=$$(python3 -c "import pysdd;print(pysdd.__version__)") && git tag "v$$versiontag"
@echo "Start uploading"
@echo "-> Use Github actions"
# twine upload --repository pysdd dist/*
.PHONY: docs
docs:
export PYTHONPATH=..; cd docs; make html
.PHONY: view-docs
view-docs: docs
open docs/_build/html/index.html
.PHONY: test
test:
export PYTHONPATH=.;python -m pytest --ignore=venv --ignore-glob="venv_*"
.PHONY: testv
testv:
export PYTHONPATH=.;python -m pytest -s --ignore=venv --ignore-glob="venv_*"