fog/Makefile

25 lines
429 B
Makefile
Raw Normal View History

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-05-30 06:57:55 +00:00
publish: lint test upload clean
2018-04-27 12:54:40 +00:00
clean:
2018-06-21 15:35:48 +00:00
rm -rf *.egg-info .pytest_cache .ipynb_checkpoints ./**/__pycache__ ./**/**/__pycache__ build dist
2018-04-26 15:40:12 +00:00
lint:
@echo Linting source code using pep8...
2018-06-21 10:30:58 +00:00
pycodestyle --ignore E501,E722,E741 $(SOURCE) test
2018-04-27 10:59:14 +00:00
@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/*