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