-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Gang Li <[email protected]>
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |