-
Notifications
You must be signed in to change notification settings - Fork 34
/
Makefile
46 lines (36 loc) · 1019 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
# simple Makefile for some common tasks
.PHONY: clean test dist release pypi tagv docs
gabbi-version := $(shell python -c 'import gabbi; print(gabbi.__version__)')
clean:
find . -name "*.pyc" |xargs rm || true
rm -r dist || true
rm -r build || true
rm -rf .tox || true
rm -r .testrepository || true
rm -r cover .coverage || true
rm -r .eggs || true
rm -r gabbi.egg-info || true
tagv:
git tag -s -m ${gabbi-version} ${gabbi-version}
git push origin main --tags
cleanagain:
find . -name "*.pyc" |xargs rm || true
rm -r dist || true
rm -r build || true
rm -r .tox || true
rm -r .testrepository || true
rm -r cover .coverage || true
rm -r .eggs || true
rm -r gabbi.egg-info || true
docs:
cd docs ; $(MAKE) html
test:
tox --skip-missing-interpreters
dist: test
python3 setup.py sdist bdist_wheel
release: clean test cleanagain tagv pypi
pypi:
python3 setup.py sdist bdist_wheel
twine upload dist/*
docker:
docker build --build-arg GABBI_VERSION=${gabbi-version} -t gabbi:${gabbi-version} .