gerbonara/Makefile

46 wiersze
814 B
Makefile
Czysty Zwykły widok Historia

2021-05-23 11:42:45 +00:00
2022-02-01 21:08:54 +00:00
PYTHON ?= python
PYTEST ?= pytest
SPHINX_BUILD ?= sphinx-build
all: docs sdist bdist_wheel
2021-05-23 11:42:45 +00:00
.PHONY: clean
2022-02-01 21:08:54 +00:00
clean:
find . -name '*.pyc' -delete
rm -rf *.egg-info
2019-11-27 02:24:18 +00:00
rm -f .coverage
rm -f coverage.xml
2022-02-01 21:08:54 +00:00
rm -rf docs/_build
.PHONY: docs
docs:
sphinx-build -E docs docs/_build
2021-05-23 11:42:45 +00:00
.PHONY: test
test:
$(PYTEST)
.PHONY: test-coverage
test-coverage:
2019-11-27 02:24:18 +00:00
rm -f .coverage
rm -f coverage.xml
$(PYTEST) --cov=./ --cov-report=xml
.PHONY: install
install:
PYTHONPATH=. $(PYTHON) setup.py install
2021-05-23 11:42:45 +00:00
sdist:
python3 setup.py sdist
bdist_wheel:
python3 setup.py bdist_wheel
upload: sdist bdist_wheel
2022-02-01 21:08:54 +00:00
twine upload -s -i gerbonara@jaseg.de --config-file ~/.pypirc --skip-existing --repository pypi dist/*
2021-05-23 11:42:45 +00:00
testupload: sdist bdist_wheel
twine upload --config-file ~/.pypirc --skip-existing --repository testpypi dist/*
2014-09-29 01:17:13 +00:00