forked from globus/globus-sdk-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (24 loc) · 794 Bytes
/
Makefile
File metadata and controls
27 lines (24 loc) · 794 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
SDK_VERSION=$(shell grep '^__version__' src/globus_sdk/version.py | cut -d '"' -f2)
# these are just tox invocations wrapped nicely for convenience
.PHONY: lint test docs all-checks
lint:
tox -e lint,mypy,mypy-test,pylint
test:
tox
docs:
tox -e docs
all-checks:
tox -e lint,pylint,mypy,mypy-test,test-lazy-imports,py37,py310,poetry-check,twine-check,docs
.PHONY: showvars tag-release prepare-release
showvars:
@echo "SDK_VERSION=$(SDK_VERSION)"
prepare-release:
tox -e prepare-release
$(EDITOR) changelog.rst
tag-release:
git tag -s "$(SDK_VERSION)" -m "v$(SDK_VERSION)"
-git push $(shell git rev-parse --abbrev-ref @{push} | cut -d '/' -f1) refs/tags/$(SDK_VERSION)
.PHONY: clean
clean:
rm -rf dist build *.egg-info .tox .venv
find . -type d -name '__pycache__' -exec rm -r {} +