From 004df26293783edc4953180dbae938d96ddc690e Mon Sep 17 00:00:00 2001 From: David Beazley Date: Tue, 25 Oct 2022 09:28:13 -0500 Subject: [PATCH] Minor edits. Added Makefile --- CHANGES | 6 +++++- Makefile | 21 +++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 Makefile diff --git a/CHANGES b/CHANGES index ae8ad0d..98c51ed 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,9 @@ -In Progress +Version 0.5 ----------- +10/25/2022 ***IMPORTANT NOTE*** This is the last release to be made + on PyPi. If you want the latest version go to + https://github.com/dabeaz/sly. + 09/06/2022 Modernization of the packaging infrastructure. Slight project reorganization. diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5e55523 --- /dev/null +++ b/Makefile @@ -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