forked from gitcoinco/python-api-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (20 loc) · 930 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
# Help
.DEFAULT_GOAL := help
.PHONY: help
build: ## Build the pypi package and wheels.
@python setup.py sdist bdist_wheel
deploy: install ## Deploy package and wheel to PyPi.
@twine upload dist/*
deploy-test: install ## Deploy package and wheel to PyPi test environment.
@twine upload --repository-url https://test.pypi.org/legacy/ dist/*
install: ## Install local, editable version of the gitcoin client.
@pip install -e .
test: ## Run pytest.
@python setup.py test
fix-isort: ## Run isort against python files in the project directory.
@isort -rc --atomic ./gitcoin ./tests
fix-yapf: ## Run yapf against any included or newly introduced Python code.
@yapf -i -r -p ./gitcoin ./tests
fix: fix-isort fix-yapf ## Attempt to run all fixes against the project directory.
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'