-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
28 lines (22 loc) · 815 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
VERSION = $$(grep __version__ obj_update.py | sed -r 's/.*"([.0-9]*)".*/\1/')
help: ## Shows this help
@echo "$$(grep -h '#\{2\}' $(MAKEFILE_LIST) | sed 's/: #\{2\} / /' | column -t -s ' ')"
test: ## Run test suite
PYTHONPATH=. django-admin.py test --settings=test_app.settings
tdd: ## Run test suite with a watcher
nodemon -e py -x "make test || true"
lint: ## Check for lint errors
black . --check
clean: ## Remove temporary files
rm -rf dist
# Release instructions
# 1. bump the __version__ in `obj_update.py`
# 2. run `make release`
# 3. `git push --tags origin master`
release: ## Cut a release and upload to PyPI
release: clean
git add . && standard-version --commit-all --skip.tag --skip.commit --header "# Changelog"
flit build
@git commit -am "v$(VERSION)"
@git tag $(VERSION)
flit publish