Skip to content

Commit 9c9e03d

Browse files
committed
Drop management of venv in makefile
1 parent bbfedcc commit 9c9e03d

File tree

1 file changed

+2
-42
lines changed

1 file changed

+2
-42
lines changed

Makefile

Lines changed: 2 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,14 @@
11
PY=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-
83
BRANCH=$(shell git rev-parse --abbrev-ref HEAD)
94
VERSION=$(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

5313
release:
5414
ifneq ($(BRANCH),master)

0 commit comments

Comments
 (0)