-
Notifications
You must be signed in to change notification settings - Fork 22
/
Makefile
38 lines (31 loc) · 878 Bytes
/
Makefile
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
PYTHON_VERSION=python3
CLI_VERSION=$(shell grep '^__version__' src/globus_cli/version.py | cut -d '"' -f2)
.venv:
virtualenv --python=$(PYTHON_VERSION) .venv
.venv/bin/pip install -U pip setuptools
.venv/bin/pip install -e '.[development]'
.venv/bin/pip install -e '.[test]'
.PHONY: localdev install
localdev: .venv
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