You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
include Makefile.config
|
|
|
|
-include Makefile.custom.config
|
|
|
|
|
|
|
|
all: install lint check check-outdated
|
|
|
|
|
|
|
|
install:
|
|
|
|
test -d $(VENV) || virtualenv $(VENV) -p $(PYTHON_VERSION)
|
|
|
|
$(PIP) install --upgrade --no-cache --no-use-wheel pip setuptools -e .[test,docs] devcore
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -fr $(VENV)
|
|
|
|
rm -fr *.egg-info
|
|
|
|
|
|
|
|
lint:
|
|
|
|
$(PYTEST) --flake8 -m flake8 $(PROJECT_NAME)
|
|
|
|
$(PYTEST) --isort -m isort $(PROJECT_NAME)
|
|
|
|
|
|
|
|
check:
|
|
|
|
$(PYTEST) $(PROJECT_NAME) $(PYTEST_ARGS) --cov-report= --cov=pygal
|
|
|
|
|
|
|
|
check-outdated:
|
|
|
|
$(PIP) list --outdated --format=columns
|
|
|
|
|
|
|
|
visual-check:
|
|
|
|
$(PYTHON) demo/moulinrouge.py
|
|
|
|
|
|
|
|
.PHONY: docs
|
|
|
|
docs:
|
|
|
|
cd docs && PYTHON_PATH=$(VENV) PATH=$(VENV)/bin:$(PATH) $(MAKE) rst html
|
|
|
|
|
|
|
|
release: docs
|
|
|
|
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
|