forked from claudioperez/quakeio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (35 loc) · 1008 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
41
42
43
44
45
46
47
PACKAGE = quakeio
PYTHON = /usr/bin/env python
VRNPATN = '__version__ = "([^"]+)"'
VERSION = $(shell sed -nE 's:__version__ = "([^"]+)":\1:p' ./src/$(PACKAGE)/__init__.py)
# Documentation
DOCDIR = docs
STYDIR = style
TESTDIR = ~/stdy
PDOC = pdoc --template-dir $(STYDIR) -o $(DOCDIR)
install:
python3 setup.py develop
#pip install -e .
cov:
coverage run --source=. -m pytest
coverage-badge > ./etc/coverage/cov.svg
test:
bash tests/tests.sh
pytest
api:
$(PDOC) --config show_source_code=False \
--config latex_math=True \
--html --force
mv $(DOCDIR)/$(PACKAGE)/*.html $(DOCDIR)/api/latest/
for item in $(DOCDIR)/api/latest/*.html; do mv $$item $${item%.html}.md; done
web: FORCE
sphinx-build docs/ web/
docs: web FORCE
publish:
#pip uninstall $(PACKAGE)
#$(PYTHON) setup.py clean --all sdist bdist_wheel
twine upload --verbose --skip-existing dist/*
git tag -a $(VERSION) -m 'version $(VERSION)'
git push --tags
.PHONY: api
FORCE: