forked from chriskuehl/dumb-pypi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (26 loc) · 905 Bytes
/
Makefile
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
.PHONY: minimal
minimal: venv
venv: vendor/venv-update setup.py requirements-dev.txt Makefile
vendor/venv-update venv= -ppython3.6 venv install= -rrequirements-dev.txt -e .
.PHONY: test
test: venv
venv/bin/coverage erase
venv/bin/coverage run -m pytest -v tests
venv/bin/coverage report --show-missing --fail-under 100
venv/bin/pre-commit install -f --install-hooks
venv/bin/pre-commit run --all-files
.PHONY: release
release: venv
venv/bin/python setup.py sdist bdist_wheel
venv/bin/twine upload --skip-existing dist/*
.PHONY: test-repo
test-repo: venv
venv/bin/dumb-pypi \
--package-list-json testing/package-list-json \
--packages-url http://just.an.example/ \
--output-dir test-repo \
--logo https://i.fluffy.cc/tZRP1V8hdKCdrRQG5fBCv74M0VpcPLjP.svg \
--logo-width 42
.PHONY: push-github-pages
push-github-pages: venv test-repo
venv/bin/markdown-to-presentation push test-repo