From 174866db570f81bc9da0779577999cd1b8421735 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rog=C3=A9rio=20Sampaio?= Date: Thu, 25 May 2023 20:24:27 -0300 Subject: [PATCH] drop makefile, use justfile --- justfile | 34 ++++++++++++++++++++++++++++++++++ makefile | 37 ------------------------------------- 2 files changed, 34 insertions(+), 37 deletions(-) create mode 100644 justfile delete mode 100644 makefile diff --git a/justfile b/justfile new file mode 100644 index 0000000..f127fd9 --- /dev/null +++ b/justfile @@ -0,0 +1,34 @@ +# coverage related +cov := "--cov=alive_progress --cov-branch --cov-report=term-missing" + +all: + @just --list + +install: + pip install -r requirements/dev.txt -r requirements/test.txt -e . + +clean: clean-build clean-pyc + +clean-build: + rm -rf build dist alive_progress.egg-info + +clean-pyc: + find . -type f -name *.pyc -delete + +lint: + ruff alive_progress --line-length 100 + +build: lint clean + python setup.py sdist bdist_wheel + +release: build + twine upload dist/* + +test: + pytest {{cov}} + +ptw: + ptw -- {{cov}} + +cov-report: + coverage report -m diff --git a/makefile b/makefile deleted file mode 100644 index e484155..0000000 --- a/makefile +++ /dev/null @@ -1,37 +0,0 @@ -.PHONY: all install clean build release - -# coverage related -SRC = alive_progress -COV = --cov=$(SRC) --cov-branch --cov-report=term-missing - -all: - @grep -E "^\w+:" makefile | cut -d: -f1 - -install: - pip install -r requirements/dev.txt -r requirements/test.txt -e . - -clean: clean-build clean-pyc - -clean-build: - rm -rf build dist alive_progress.egg-info - -clean-pyc: - find . -type f -name *.pyc -delete - -lint: - ruff alive_progress --line-length 100 - -build: lint clean - python setup.py sdist bdist_wheel - -release: build - twine upload dist/* - -test: - pytest $(COV) - -ptw: - ptw -- $(COV) - -cov-report: - coverage report -m