mirror of
https://github.com/craigerl/aprsd.git
synced 2024-11-15 12:51:57 -05:00
59 lines
1.2 KiB
Makefile
59 lines
1.2 KiB
Makefile
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
|
|
|
|
.PHONY: server
|
|
server: venv
|
|
$(VENV)/aprsd server --loglevel DEBUG
|
|
|
|
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/*
|
|
|
|
docker: test
|
|
docker build -t hemna6969/aprsd:latest -f docker/Dockerfile docker
|
|
|
|
docker-dev: test
|
|
docker build -t hemna6969/aprsd:master -f docker/Dockerfile-dev docker
|
|
|
|
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
|