File: Makefile

package info (click to toggle)
python-xmlrunner 4.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 336 kB
  • sloc: python: 2,035; makefile: 215
file content (26 lines) | stat: -rw-r--r-- 633 bytes parent folder | download
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

build/tox/bin:
	python3 -m venv build/tox
	build/tox/bin/pip install tox

build/publish/bin:
	python3 -m venv build/publish
	build/publish/bin/pip install wheel twine

checkversion:
	git log -1 --oneline | grep -q "Bump version" || (echo "DID NOT DO VERSION BUMP"; exit 1)
	git show-ref --tags | grep -q $$(git log -1 --pretty=%H) || (echo "DID NOT TAG VERSION"; exit 1)

dist: checkversion build/publish/bin
	build/publish/bin/python -m build

publish: dist/ build/publish/bin
	build/publish/bin/twine upload dist/*

test: build/tox/bin
	build/tox/bin/tox

clean:
	rm -rf build/ dist/

.PHONY: checkversion dist publish clean test