2017-05-02 15:59:52 +00:00
|
|
|
include Makefile.config
|
|
|
|
-include Makefile.custom.config
|
|
|
|
|
|
|
|
all: install lint check-outdated run-debug
|
|
|
|
|
|
|
|
install:
|
2017-05-15 09:30:59 +00:00
|
|
|
test -d $(VENV) || virtualenv $(VENV) -p $(PYTHON_VERSION)
|
2018-09-03 12:41:39 +00:00
|
|
|
$(PIP) install --upgrade --no-cache pip setuptools -e .[lint,themes] devcore
|
2017-05-29 08:32:28 +00:00
|
|
|
$(NPM) install
|
2017-05-02 15:59:52 +00:00
|
|
|
|
|
|
|
clean:
|
2017-05-02 16:12:36 +00:00
|
|
|
rm -fr $(NODE_MODULES)
|
2017-05-02 15:59:52 +00:00
|
|
|
rm -fr $(VENV)
|
|
|
|
rm -fr *.egg-info
|
|
|
|
|
|
|
|
lint:
|
|
|
|
$(PYTEST) --flake8 -m flake8 $(PROJECT_NAME)
|
|
|
|
$(PYTEST) --isort -m isort $(PROJECT_NAME)
|
|
|
|
|
|
|
|
check-outdated:
|
|
|
|
$(PIP) list --outdated --format=columns
|
|
|
|
|
2017-05-29 08:32:28 +00:00
|
|
|
ARGS ?= --port=1212 --unsecure --debug
|
2017-05-02 15:59:52 +00:00
|
|
|
run-debug:
|
2017-05-15 13:32:39 +00:00
|
|
|
$(PYTHON) ./butterfly.server.py $(ARGS)
|
2017-05-02 15:59:52 +00:00
|
|
|
|
2017-05-02 16:12:36 +00:00
|
|
|
build-coffee:
|
|
|
|
$(NODE_MODULES)/.bin/grunt
|
|
|
|
|
|
|
|
release: build-coffee
|
2017-05-02 15:59:52 +00:00
|
|
|
git pull
|
|
|
|
$(eval VERSION := $(shell PROJECT_NAME=$(PROJECT_NAME) $(VENV)/bin/devcore bump $(LEVEL)))
|
|
|
|
git commit -am "Bump $(VERSION)"
|
|
|
|
git tag $(VERSION)
|
|
|
|
$(PYTHON) setup.py sdist bdist_wheel upload
|
|
|
|
git push
|
|
|
|
git push --tags
|