-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (31 loc) · 662 Bytes
/
Makefile
File metadata and controls
40 lines (31 loc) · 662 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
31
32
33
34
35
36
37
38
39
40
export TWINE_USERNAME=nonlogicaldev
export PIP_VERSION=v$(shell poetry version -s)
.PHONY: version
version:
@poetry version -s
.PHONY: version.tag
version.tag:
git tag -f "$(PIP_VERSION)"
git push origin -f "$(PIP_VERSION)"
.PHONY: version.bump-minor
version.bump-minor:
poetry version minor
.PHONY: version.bump-patch
version.bump-patch:
poetry version patch
.PHONY: deps
deps:
poetry install
.PHONY: dist
dist:
poetry build
.PHONY: dist.release.pypi
dist.release.pypi:
poetry publish
.PHONY: dist.release.gh
dist.release.gh: dist
-gh release delete $(PIP_VERSION)
gh release create $(PIP_VERSION) ./dist/*
.PHONY: clean
clean:
-rm -rf dist