Skip to content

Instantly share code, notes, and snippets.

@elyezer
Created July 28, 2017 19:42
Show Gist options
  • Save elyezer/7880280c0c8a052a552ea15305e8a6c1 to your computer and use it in GitHub Desktop.
Save elyezer/7880280c0c8a052a552ea15305e8a6c1 to your computer and use it in GitHub Desktop.
help:
@echo "Please use \`make <target>' where <target> is one of:"
@echo " help to show this message"
@echo " all to to execute test-coverage and lint"
@echo " docs-clean to remove documentation"
@echo " docs-html to generate HTML documentation"
@echo " install to install in editable mode"
@echo " install-dev to install in editable modeplus the dev packages"
@echo " lint to run flake8"
@echo " package to generate installable Python packages"
@echo " package-clean to remove generated Python packages"
@echo " package-upload to upload dist/* to PyPI"
@echo " test to run unit tests"
@echo " test-coverage to run unit tests and measure test coverage"
all: test-coverage lint
docs-clean:
@cd docs; $(MAKE) clean
docs-html:
@cd docs; $(MAKE) html
install:
pip install -e .
install-dev:
pip install -e .[dev]
lint:
flake8 .
package: package-clean
python setup.py --quiet sdist bdist_wheel
package-clean:
rm -rf build dist camayoc.egg-info
package-upload: package
twine upload dist/*
test:
py.test tests
test-coverage:
py.test --verbose --cov-report term --cov=camayoc tests
.PHONY: all docs-clean docs-html install install-dev lint package package-clean package-upload test test-coverage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment