Makefile 454 Bytes
Newer Older
1
PROJECT = jetconf
Ales Mrazek's avatar
Ales Mrazek committed
2
VERSION = 0.3.6
Pavel Spirek's avatar
Pavel Spirek committed
3
.PHONY = tags deps install-deps test
4 5 6 7 8

tags:
	find $(PROJECT) -name "*.py" | etags -

deps:
Ladislav Lhotka's avatar
Ladislav Lhotka committed
9
	mv requirements.txt requirements.txt.old
Pavel Spirek's avatar
Pavel Spirek committed
10
	pip3 freeze > requirements.txt
11 12

install-deps:
Pavel Spirek's avatar
Pavel Spirek committed
13
	pip3 install -r requirements.txt
Pavel Spirek's avatar
Pavel Spirek committed
14 15 16 17 18 19 20

test:
	@py.test tests

release:
	git tag -a -m "Jetconf release $(VERSION)" $(VERSION)
	rm -f dist/*
Pavel Spirek's avatar
Pavel Spirek committed
21 22
	python3 setup.py sdist
	python3 setup.py bdist_wheel
23
	twine check dist/*
Pavel Spirek's avatar
Pavel Spirek committed
24 25 26

upload:
	twine upload dist/*