2018-03-07 22:54:13 -07:00
|
|
|
#
|
|
|
|
# bison - python application configuration
|
|
|
|
#
|
|
|
|
|
|
|
|
PKG_VERSION := $(shell cat bison/__version__.py | grep __version__ | awk '{print $$3}')
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: test
|
|
|
|
test: ## Run the bison unit tests
|
2018-10-26 08:26:25 -06:00
|
|
|
tox tests
|
2018-03-07 22:54:13 -07:00
|
|
|
|
|
|
|
.PHONY: ci
|
2018-10-26 08:26:25 -06:00
|
|
|
ci: test lint ## Run the ci pipeline (test w/ coverage, lint)
|
2018-03-07 22:54:13 -07:00
|
|
|
|
2018-10-26 08:26:25 -06:00
|
|
|
.PHONY: deps ## Update pinned project dependencies (requirements.txt)
|
|
|
|
deps:
|
|
|
|
tox -e deps
|
2018-03-07 22:54:13 -07:00
|
|
|
|
2018-10-26 08:26:25 -06:00
|
|
|
.PHONY: lint
|
|
|
|
lint: ## Run static analysis / linting on bison
|
|
|
|
tox -e lint
|
2018-03-07 22:54:13 -07:00
|
|
|
|
|
|
|
.PHONY: publish
|
|
|
|
publish: ## Publish bison to Pypi
|
|
|
|
pip install 'twine>=1.5.0'
|
|
|
|
python setup.py sdist bdist_wheel
|
|
|
|
twine upload dist/*
|
|
|
|
rm -rf build dist .egg bison.egg-info
|
|
|
|
|
|
|
|
.PHONY: version
|
|
|
|
version: ## Print the current version of the package
|
|
|
|
@echo $(PKG_VERSION)
|
|
|
|
|
|
|
|
.PHONY: help
|
|
|
|
help: ## Print Make usage information
|
|
|
|
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-15s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) | sort
|
|
|
|
|
|
|
|
.DEFAULT_GOAL := help
|