2018-04-26 15:40:12 +00:00
|
|
|
# Variables
|
|
|
|
SOURCE = fog
|
|
|
|
|
|
|
|
# Commands
|
2018-04-27 10:59:14 +00:00
|
|
|
all: lint test
|
|
|
|
test: unit
|
2018-04-27 12:54:40 +00:00
|
|
|
publish: upload clean
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf *.egg-info .pytest_cache build dist
|
2018-04-26 15:40:12 +00:00
|
|
|
|
|
|
|
lint:
|
|
|
|
@echo Linting source code using pep8...
|
2018-04-27 10:59:14 +00:00
|
|
|
pycodestyle --ignore E501 $(SOURCE) test
|
|
|
|
@echo
|
|
|
|
|
|
|
|
unit:
|
|
|
|
@echo Running unit tests...
|
2018-04-27 12:21:05 +00:00
|
|
|
pytest -s
|
2018-04-26 15:40:12 +00:00
|
|
|
@echo
|
2018-04-27 12:54:40 +00:00
|
|
|
|
|
|
|
upload:
|
|
|
|
python setup.py sdist bdist_wheel
|
|
|
|
twine upload dist/*
|