-
Notifications
You must be signed in to change notification settings - Fork 413
/
Makefile
39 lines (30 loc) · 875 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
include Makefile.config
-include Makefile.custom.config
all: install lint check check-outdated
install:
test -d $(VENV) || $(PYTHON_VERSION) -m venv $(VENV)
$(PIP) install --upgrade --upgrade-strategy eager \
pip setuptools twine -e .[test,docs] devcore
clean:
rm -fr $(VENV)
rm -fr *.egg-info
lint:
$(RUFF) check $(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
$(TWINE) upload dist/*
git push
git push --tags