-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
29 lines (22 loc) · 688 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
.PHONY: install release dist test
install:
pip install -e .
release:
ifndef VERSION
$(error "Usage: make release VERSION=0.1.1")
endif
git checkout master
git pull
echo "__version__ = '$(VERSION)'" > abnumber/__version__.py
git add abnumber/__version__.py
git commit -m "Set version to $(VERSION)"
git push
@echo "Create a new release version on: https://github.com/prihoda/abnumber/releases"
dist:
python setup.py sdist bdist_wheel
test: unit-test jupyter-test
jupyter-test: examples/AbNumber_getting_started.ipynb
papermill $< - > /dev/null
unit-test:
pytest test
# To update Docs, log in to ReadTheDocs and run the build: https://readthedocs.org/projects/abnumber/