From b08a0e8bed5df27a102d77b0be3e5a384ef2a0e4 Mon Sep 17 00:00:00 2001 From: Andros Fenollosa Date: Wed, 9 Nov 2022 16:54:29 +0100 Subject: [PATCH] Add requirements --- .github/workflows/python-publish.yml | 2 +- Makefile | 6 ++++++ requirements.txt | 3 +++ 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 Makefile diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 5cc384d..ac90273 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -29,7 +29,7 @@ jobs: - name: Install dependencies run: | python3 -m pip install --upgrade pip - pip3 install wheel twine + pip3 install -r requirements.txt - name: Add version run: sed -i 's/VERSION/${{github.ref_name}}/g' setup.py - name: Build package diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b25ee73 --- /dev/null +++ b/Makefile @@ -0,0 +1,6 @@ +.DEFAULT_GOAL := help +help: + @perl -nle'print $& if m{^[a-zA-Z_-|.]+:.*?## .*$$}' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-25s\033[0m %s\n", $$1, $$2}' + +format: ## Format Python + black --exclude="/(dist|build|__pycache__|venv|\.git)/" . diff --git a/requirements.txt b/requirements.txt index 95962b1..62b6489 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,4 @@ +wheel===0.38.3 +twine===4.0.1 +black===22.10.0 pytest===7.2.0