Skip to content

Commit 2bf58ee

Browse files
committed
Add Makefile
Signed-off-by: Gang Li <ligangty@users.noreply.github.com>
1 parent 08b0e39 commit 2bf58ee

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

Makefile

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
init-venv:
2+
@pip install virtualenv
3+
@python -m virtualenv venv
4+
@source venv/bin/activate
5+
@pip install -r requirements.txt
6+
@pip install tox
7+
.PHONY: init, init-venv
8+
9+
lint:
10+
@python -m tox -e flake8
11+
@python -m tox -e pylint
12+
.PHONY: lint
13+
14+
test-only:
15+
@python -m tox -e test
16+
.PHONY: test-only
17+
18+
test: lint test-only
19+
.PHONY: test
20+
21+
clean:
22+
rm -rf .coverage .tox .mypy_cache __pytest_reports htmlcov
23+
rm -rf build charon.egg-info dist local package
24+
.PHONY: clean
25+
26+
build:
27+
@pip install -r ./requirements.txt
28+
@pip install .
29+
.PHONY: build
30+
31+
sdist:
32+
@python3 setup.py sdist
33+
.PHONY: sdist
34+
35+
image-latest:
36+
@podman build . -f ./image/Containerfile -t localhost/charon:latest
37+
.PHONY: image-latest

0 commit comments

Comments
 (0)