-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (28 loc) · 767 Bytes
/
Makefile
File metadata and controls
35 lines (28 loc) · 767 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
CLI_VERSION=$(shell grep '^__version__' src/globus_cli/version.py | cut -d '"' -f2)
.venv:
python -m venv --upgrade-deps .venv
.venv/bin/pip install -e '.'
.venv/bin/pip install --group dev
.PHONY: install
install: .venv
.PHONY: lint test reference
lint:
tox -e lint,mypy
reference:
tox -e reference
test:
tox
.PHONY: showvars prepare-release tag-release
showvars:
@echo "CLI_VERSION=$(CLI_VERSION)"
prepare-release:
tox -e prepare-release
tag-release:
git tag -s "$(CLI_VERSION)" -m "v$(CLI_VERSION)"
-git push $(shell git rev-parse --abbrev-ref @{push} | cut -d '/' -f1) refs/tags/$(CLI_VERSION)
.PHONY: update-dependencies
update-dependencies:
python ./scripts/update_dependencies.py
.PHONY: clean
clean:
rm -rf .venv .tox dist build *.egg-info