-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (34 loc) · 849 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
# magic....
version := $(shell cat agavedb/__init__.py | grep 'version' | cut -d ' ' -f 3 | tr -d /\'//)
.PHONY: sdist docs clean dist-clean release tests preflight tag
.SILENT: sdist docs clean dist-clean release tests preflight tag
sdist: dist-clean
python setup.py sdist && \
make clean
docs:
cd docs && \
make html
install:
python setup.py install
clean:
rm -rf *.pyc
rm -rf *egg-info*
rm -rf .cache
rm -rf *__pycache__*
rm -rf *.pytest_cache*
rm -rf *.hypothesis
cd docs && make clean
dist-clean: clean
rm -rf dist
tests:
tox
prerelease: docs sdist
git add . && \
git commit -m "Releasing ${version}" || true
preflight: prerelease
echo "checking git repo is in shape for release"
bash scripts/checkrepo.sh
release: preflight
echo "git tag will be: $(version)"
git tag -f "${version}"
git push origin "${version}"