
install_dbus: clean
	./install_dbus.sh

clean:
	rm -rf .tmp .eggs build dist *.egg-info htmlcov

test: clean
	python setup.py test

coverage: clean
	nosetests -s --with-coverage --cover-package=spoppy --cover-html --cover-html-dir=htmlcov

build: clean
	python setup.py sdist bdist_wheel

upload: build
	twine upload dist/* -u sindrig -p "$(lpass show pypi.org | grep Password | cut -d" " -f2)"

test_upload: build
	twine upload --repository-url https://test.pypi.org/legacy/ dist/* -u sindrig -p "$(lpass show pypi.org | grep Password | cut -d" " -f2)"
	# python setup.py sdist upload -r pypitest
