File tree Expand file tree Collapse file tree 1 file changed +2
-42
lines changed
Expand file tree Collapse file tree 1 file changed +2
-42
lines changed Original file line number Diff line number Diff line change 11PY =python3
22
3- VENV_DIR =stagpy_git
4- STAGPY =$(VENV_DIR ) /bin/stagpy
5- VPY =$(VENV_DIR ) /bin/python
6- VPIP =$(VPY ) -m pip
7-
83BRANCH =$(shell git rev-parse --abbrev-ref HEAD)
94VERSION =$(shell git describe --exact-match HEAD 2>/dev/null)
105
116.PHONY : all clean again release
127.PHONY : info infoenv infozsh infobash
138.PHONY : notebook-kernel
149
15- all : $(STAGPY ) info
16-
17- $(STAGPY ) : setup.cfg pyproject.toml
18- $(PY ) -m venv $(VENV_DIR )
19- $(VPIP ) install -U pip
20- $(VPIP ) install -e .
21- @$(STAGPY ) version
22-
23- notebook-kernel : $(STAGPY )
24- $(VPIP ) install -U ipykernel
25- $(VPY ) -m ipykernel install --user --name=stagpy-git
26-
27- info : infozsh infobash infoenv
28-
29- infoenv :
30- @echo
31- @echo ' Run'
32- @echo ' source $(VENV_DIR)/bin/activate'
33- @echo ' to use the development version of StagPy'
34-
35- infozsh :
36- @echo
37- @echo ' Add'
38- @echo ' source ~/.config/stagpy/zsh/_stagpy.sh'
39- @echo ' to your ~/.zshrc to enjoy command line completion with zsh!'
40-
41- infobash :
42- @echo
43- @echo ' Add'
44- @echo ' source ~/.config/stagpy/bash/stagpy.sh'
45- @echo ' to your ~/.bashrc to enjoy command line completion with bash!'
46-
47- clean :
48- -rm -rf $(VENV_DIR )
49- -rm -rf stagpy.egg-info
50-
51- again : clean all
10+ all :
11+ @echo ' Run `make release` to release a new version'
5212
5313release :
5414ifneq ($(BRANCH ) ,master)
You can’t perform that action at this time.
0 commit comments