-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
65 lines (58 loc) · 2.17 KB
/
justfile
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import './base.justfile'
set positional-arguments := true
# just --list
[private]
default:
@just --list --unsorted --list-heading $'Poetry development workflow commands:\n'
# 'poetry run' pass thru command
po *args:
@poetry run "$@"
# pass thru
pass *args:
{{args}}
# ptpython REPL in poetry shell
repl:
@poetry run ptpython
# instructions to bump version number
bump:
@echo
@echo " {{BCY}}REMINDER:{{NC}} You need to manually bump the version numbers in these locations."
@echo " ./desertislandutils/"
@echo " {{YW}}__init__.py"
@echo " pyproject.toml"
@echo " tests/test_desertislandutils.py{{NC}}"
code __init__.py pyproject.toml tests/test_desertislandutils.py
# pytest
test *args:
@echo
@echo " ✙✙✙✙✙✙✙✙ TESTING ✙✙✙✙✙✙✙✙"
poetry run pytest --disable-warnings --verbose {{args}}
# INFO: develop, build, deploy
info:
@echo
@echo " {{BCY}}Workflow to develop python scripts and deploy to homebrew{{NC}}"
@echo
@echo " {{CY}}1.{{NC}} Develop/commit on dev"
@echo " {{CY}}2.{{NC}} just test"
@echo " {{CY}}3.{{NC}} just bump"
@echo " {{CY}}4.{{NC}} git checkout -b release/0.3.1"
@echo " {{CY}}*{{NC}} final TESTS and debug"
@echo " {{CY}}*{{NC}} git push --set-upstream origin release/0.3.1"
@echo " {{CY}}*{{NC}} PR 'release/0.3.1' for CI/CD tests (click link to open PR)"
@echo " {{CY}}*{{NC}} debug GHA tests"
@echo " {{CY}}*{{NC}} GHA-bot auto-merge to main and tag"
@echo " {{CY}}5.{{RD}} TODO:{{NC}} release to homebrew repo on merge to main"
@echo " {{CY}}6.{{NC}} git delete that release branch or maybe GHA does for you"
@echo
@echo " {{BCY}}Running utils in poetry environment{{NC}}"
@echo
@echo " {{GR}}just po wn"
@echo " {{GR}}just po wn --help"
@echo " {{GR}}just po too --help"
@echo " {{GR}}just po too --help"
@echo
@echo " {{BBK}}# or directly from poetry shell:{{NC}}"
@echo " {{GR}}poetry shell"
@echo " {{BGR}}wn --help"
@echo
@echo "# TODO: git push --set-upstream origin release/0.3.9"