Minor edits. Added Makefile
This commit is contained in:
21
Makefile
Normal file
21
Makefile
Normal file
@@ -0,0 +1,21 @@
|
||||
PYTHON=python3
|
||||
VENV=.venv
|
||||
|
||||
# Setup and install all of the required tools for building, testing,
|
||||
# and deploying
|
||||
setup::
|
||||
rm -rf $(VENV)
|
||||
$(PYTHON) -m venv $(VENV)
|
||||
./$(VENV)/bin/python -m pip install pytest
|
||||
./$(VENV)/bin/python -m pip install pytest-cov
|
||||
./$(VENV)/bin/python -m pip install build
|
||||
./$(VENV)/bin/python -m pip install twine
|
||||
|
||||
# Run unit tests
|
||||
test::
|
||||
./$(VENV)/bin/python -m pip install .
|
||||
./$(VENV)/bin/python -m pytest --cov
|
||||
|
||||
# Build an artifact suitable for installing with pip
|
||||
build::
|
||||
./$(VENV)/bin/python -m build
|
Reference in New Issue
Block a user