Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
init-venv:
@pip install virtualenv
@python -m virtualenv venv
@source venv/bin/activate
@pip install -r requirements.txt
@pip install tox
.PHONY: init, init-venv

lint:
@python -m tox -e flake8
@python -m tox -e pylint
.PHONY: lint

test-only:
@python -m tox -e test
.PHONY: test-only

test: lint test-only
.PHONY: test

clean:
rm -rf .coverage .tox .mypy_cache __pytest_reports htmlcov
rm -rf build charon.egg-info dist local package
.PHONY: clean

build:
@pip install -r ./requirements.txt
@pip install .
.PHONY: build

sdist:
@python3 setup.py sdist
.PHONY: sdist

image-latest:
@podman build . -f ./image/Containerfile -t localhost/charon:latest
.PHONY: image-latest