forked from solo-spice/sospice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (31 loc) · 1.07 KB
/
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
32
.PHONY: build install install-editable, test, test-htmlcov, pre-commit, save-version, show-version, doc-html, changelog publish
build:
python3 -m build
install:
python -m pip install .
install-editable:
python -m pip install -e .
test:
pytest --cov
test-htmlcov:
pytest --cov --cov-report html
pre-commit:
pre-commit
save-version:
python -c "import setuptools_scm; version = setuptools_scm.get_version(); setuptools_scm.dump_version('sospice', version, '_version.py')"
show-version:
python -m setuptools_scm
doc-html: save-version
make -C docs html
changelog:
towncrier
publish:
@echo "Please make sure that:"
@echo "* you are an authorized user for this operation"
@echo "* you have run towncrier and checked the new entries in the change log"
@echo "* the documentation is up-to-date with the changes"
@echo "* changes have been merged to the main branch, with correct git tag in Github and version information in sospice/_version.py"
@echo "* a build has been done for this version"
@echo "Please press <Enter> to confirm"
@read foo
python3 -m twine upload --verbose dist/*