diff options
author | jaseg <git@jaseg.de> | 2021-06-06 13:25:45 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2021-06-06 13:25:45 +0200 |
commit | 5a5ba2b709f01b2100cd767a25a41737541ad53c (patch) | |
tree | 6362ca960945e08d4a77b7f059e971e6099217c9 /Makefile | |
parent | 8bad573131e4c91782425d81a141dd656b622d7b (diff) | |
parent | 72257258edf16cbda691483ef1fa722192ac0d38 (diff) | |
download | gerbonara-5a5ba2b709f01b2100cd767a25a41737541ad53c.tar.gz gerbonara-5a5ba2b709f01b2100cd767a25a41737541ad53c.tar.bz2 gerbonara-5a5ba2b709f01b2100cd767a25a41737541ad53c.zip |
Graft pcb-tools upstream onto gerbonara tree
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 41 |
1 files changed, 22 insertions, 19 deletions
@@ -1,16 +1,27 @@ -PROJECT = "desec_dns_api" -.PHONY: all clean sdist bdist_wheel test coverage html upload testupload +PYTHON ?= python +PYTEST ?= pytest -all: sdist bdist_wheel +.PHONY: clean +clean: doc-clean + find . -name '*.pyc' -delete + rm -rf *.egg-info + rm -f .coverage + rm -f coverage.xml -clean: - rm -rf .pytest_cache/ - rm -rf build/ - rm -rf ${PROJECT}.egg-info/ - rm -rf dist/ - rm -rf htmlcov/ - rm -rf .coverage +.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 @@ -18,17 +29,9 @@ sdist: bdist_wheel: python3 setup.py bdist_wheel -test: - pytest --flake8 tests/ - -coverage: - pytest --cov=${PROJECT} tests/ - -html: - pytest --cov-report html:htmlcov --cov=${PROJECT} tests/ - 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/* + |