-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (21 loc) · 747 Bytes
/
Makefile
File metadata and controls
30 lines (21 loc) · 747 Bytes
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
.PHONY: test integration_test build upload
test:
pytest tests
build:
if [ -d "dist" ]; then rm -Rf dist/*; fi
python setup.py sdist bdist_wheel
upload: build
twine upload dist/*
push_tag:
git tag v$(shell python3 setup.py --version)
git push origin v$(shell python3 setup.py --version)
release:
curl --data '{"tag_name": "v$(shell python3 setup.py --version)"}' "https://api.github.com/repos/Shuttl-Tech/stream-processor/releases?access_token=${GITHUB_TOKEN}"
push_tag_and_release:
push_tag release
bump_version:
bumpversion --current-version $(shell python3 setup.py --version) patch setup.py
commit_version_update:
git add setup.py
git commit -m "Updated version"
bump_commit_upload: bump_version commit_version_update upload