Skip to content

Commit

Permalink
Merge pull request #277 from ligangty/build
Browse files Browse the repository at this point in the history
Add Makefile
  • Loading branch information
ligangty authored Sep 29, 2024
2 parents 01355c8 + 1bdd911 commit 37e0c49
Showing 1 changed file with 37 additions and 0 deletions.
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

0 comments on commit 37e0c49

Please sign in to comment.