File: Makefile

package info (click to toggle)
python-xmlrunner 3.2.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 420 kB
  • sloc: python: 2,074; makefile: 216
file content (27 lines) | stat: -rw-r--r-- 686 bytes parent folder | download | duplicates (2)
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

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 setup.py sdist
	build/publish/bin/python setup.py bdist_wheel

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