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
|
|
|
|
2015-02-15 08:29:47 +00:00
|
|
|
.PHONY: clean
|
2022-02-01 21:08:54 +00:00
|
|
|
clean:
|
2014-09-28 22:07:15 +00:00
|
|
|
find . -name '*.pyc' -delete
|
|
|
|
rm -rf *.egg-info
|
2019-11-27 02:24:18 +00:00
|
|
|
rm -f .coverage
|
2019-11-26 03:37:41 +00:00
|
|
|
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
|
|
|
|
2015-02-15 08:29:47 +00:00
|
|
|
.PHONY: test
|
2014-09-28 22:07:15 +00:00
|
|
|
test:
|
2019-11-26 03:37:41 +00:00
|
|
|
$(PYTEST)
|
2015-02-15 08:29:47 +00:00
|
|
|
|
|
|
|
.PHONY: test-coverage
|
2014-09-28 22:07:15 +00:00
|
|
|
test-coverage:
|
2019-11-27 02:24:18 +00:00
|
|
|
rm -f .coverage
|
|
|
|
rm -f coverage.xml
|
2019-11-26 03:37:41 +00:00
|
|
|
$(PYTEST) --cov=./ --cov-report=xml
|
2015-02-15 08:29:47 +00:00
|
|
|
|
2016-01-28 17:19:03 +00:00
|
|
|
.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
|
|
|
|