mirror of
https://github.com/hemna/aprsd-slack-plugin.git
synced 2024-12-12 09:55:17 -05:00
51 lines
1.0 KiB
Makefile
51 lines
1.0 KiB
Makefile
.PHONY: virtual dev build-requirements black isort flake8
|
|
|
|
REQUIREMENTS_TXT ?= requirements.txt dev-requirements.txt
|
|
|
|
include Makefile.venv
|
|
Makefile.venv:
|
|
curl \
|
|
-o Makefile.fetched \
|
|
-L "https://github.com/sio/Makefile.venv/raw/v2020.08.14/Makefile.venv"
|
|
echo "5afbcf51a82f629cd65ff23185acde90ebe4dec889ef80bbdc12562fbd0b2611 *Makefile.fetched" \
|
|
| sha256sum --check - \
|
|
&& mv Makefile.fetched Makefile.venv
|
|
|
|
all: pip dev
|
|
|
|
.PHONY: dev
|
|
dev: venv
|
|
$(VENV)/pre-commit install
|
|
|
|
.PHONY: docs
|
|
docs: build
|
|
cp README.rst docs/readme.rst
|
|
cp Changelog docs/changelog.rst
|
|
tox -edocs
|
|
|
|
clean: clean-venv
|
|
rm -rf dist/*
|
|
|
|
.PHONY: test
|
|
test: dev
|
|
tox -p all
|
|
|
|
build: test
|
|
$(VENV)/python3 setup.py sdist bdist_wheel
|
|
$(VENV)/twine check dist/*
|
|
|
|
upload: build
|
|
$(VENV)/twine upload dist/*
|
|
|
|
update-requirements: dev
|
|
$(VENV)/pip-compile requirements.in
|
|
$(VENV)/pip-compile dev-requirements.in
|
|
|
|
|
|
check: dev # Code format check with isort and black
|
|
tox -efmt-check
|
|
tox -epep8
|
|
|
|
fix: dev # fixes code formatting with isort and black
|
|
tox -efmt
|