forked from globus/globus-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (30 loc) · 764 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
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]'
.PHONY: localdev
localdev: .venv
.PHONY: lint test reference
lint:
tox -e lint,mypy
reference:
tox -e reference
test:
tox
.PHONY: showvars prepare-release release
showvars:
@echo "CLI_VERSION=$(CLI_VERSION)"
prepare-release:
tox -e prepare-release
$(EDITOR) changelog.adoc
release:
git tag -s "$(CLI_VERSION)" -m "v$(CLI_VERSION)"
tox -e publish-release
.PHONY: update-dependencies
update-dependencies:
python ./scripts/update_dependencies.py
.PHONY: clean
clean:
rm -rf .venv .tox dist build *.egg-info