summaryrefslogtreecommitdiff
path: root/Makefile
blob: 966f2a070187998e55ac3927b8aae9781999059b (plain)
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
PYTHON ?= python
PYTEST ?= pytest

.PHONY: clean
clean: doc-clean
	find . -name '*.pyc' -delete
	rm -rf *.egg-info
	rm -f .coverage
	rm -f coverage.xml

.PHONY: test
test:
	$(PYTEST)

.PHONY: test-coverage
test-coverage:
	rm -f .coverage
	rm -f coverage.xml
	$(PYTEST) --cov=./ --cov-report=xml 

.PHONY: install
install:
	PYTHONPATH=. $(PYTHON) setup.py install

sdist:
	python3 setup.py sdist

bdist_wheel:
	python3 setup.py bdist_wheel

upload: sdist bdist_wheel
	twine upload -s -i contact@gerbonara.io --config-file ~/.pypirc --skip-existing --repository pypi dist/*

testupload: sdist bdist_wheel
	twine upload --config-file ~/.pypirc --skip-existing --repository testpypi dist/*