-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (23 loc) · 877 Bytes
/
Makefile
File metadata and controls
32 lines (23 loc) · 877 Bytes
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
REPO = $(shell git rev-parse --show-toplevel)
POETRY = poetry
install-build:
${POETRY} install --only=main
install-dev:
${POETRY} install
poetry:
curl -sSL https://install.python-poetry.org | POETRY_VERSION=1.8.4 python3 -
poetry cache clear pypi --all
poetry config virtualenvs.in-project true
quickstart: poetry install-dev
quickstart-build: poetry install-build
clean:
# Delete all .pyc and .pyo files.
find ${REPO} \( -name "*~" -o -name "*.py[co]" -o -name ".#*" -o -name "#*#" \) -exec rm -f '{}' +
rm -rf build dist src/django_richenum.egg-info django_richenum.egg-info
lint: clean
${POETRY} run flake8 --config=${REPO}/setup.cfg ${REPO}/src/django_richenum/ ${REPO}/tests/
${POETRY} run pylint --rcfile=${REPO}/pylint.rc ${REPO}/src/django_richenum/ ${REPO}/tests/
test: clean
${POETRY} run python ${REPO}/tests/run_tests.py
build:
${POETRY} build