From d3ffa9981f0c7e50cef256a2bfbb7b80caa1eba3 Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Mon, 13 Sep 2021 23:06:28 +0200 Subject: remove pipenv related files fuzzycat is mostly a library; the command line tool will switch to a bundled executable (e.g. via shiv) soon; removed pipenv in order to lower confusion which setup to use; also pipenv unfortunately at time cat take a bit of time to complete operations --- Makefile | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 4dcbcfa..18c0e9c 100644 --- a/Makefile +++ b/Makefile @@ -8,14 +8,15 @@ help: ## Print info about all commands .PHONY: deps -deps: ## Install dependencies from setup.py into pipenv - pipenv install --dev --deploy +deps: ## Install dependencies and dev dependencies from setup.py + pip install -e . + pip install -e .[dev] .PHONY: fmt fmt: ## Apply import sorting and yapf source formatting on all files - pipenv run isort --atomic fuzzycat/* - pipenv run yapf -p -i -r fuzzycat/* - pipenv run yapf -p -i -r tests + isort --atomic fuzzycat/* + yapf -p -i -r fuzzycat/* + yapf -p -i -r tests .PHONY: dist dist: ## Create source distribution and wheel @@ -23,35 +24,22 @@ dist: ## Create source distribution and wheel .PHONY: cov cov: ## Run coverage report - pipenv run pytest --cov=fuzzycat fuzzycat/*.py tests/ # --cov-report annotate:cov_annotate --cov-report html + pytest --cov=fuzzycat fuzzycat/*.py tests/ # --cov-report annotate:cov_annotate --cov-report html .PHONY: test -test: ## Run coverage report - pipenv run pytest -o log_cli=true -s -vvv fuzzycat/*.py tests/*.py +test: ## Run tests + pytest -o log_cli=true -s -vvv fuzzycat/*.py tests/*.py .PHONY: lint lint: $(PY_FILES) ## Run pylint - pipenv run pylint fuzzycat + pylint fuzzycat .PHONY: mypy mypy: ## Run mypy checks - pipenv run mypy --strict $$(find fuzzycat -name "*py") + mypy --strict $$(find fuzzycat -name "*py") -.PHONY: clean -clean: ## Clean all artifacts - rm -rf build - rm -rf dist - rm -rf fuzzycat.egg-info/ - rm -rf .pytest_cache/ - rm -rf .coverage - rm -rf htmlcov/ - rm -rf cov_annotate/ - rm -rf .mypy_cache/ - find . -name "__pycache__" -type d -exec rm -rf {} \; - -# Upload requires https://github.com/pypa/twine and some configuration. .PHONY: upload -upload: dist ## Upload to pypi +upload: dist ## Upload to pypi, requires https://github.com/pypa/twine and some configuration. # https://pypi.org/account/register/ # $ cat ~/.pypirc # [pypi] @@ -65,3 +53,15 @@ upload: dist ## Upload to pypi # For automatic package deployments, also see: .gitlab-ci.yml. twine upload $(TWINE_OPTS) dist/* +.PHONY: clean +clean: ## Clean all artifacts + rm -rf build + rm -rf dist + rm -rf fuzzycat.egg-info/ + rm -rf .pytest_cache/ + rm -rf .coverage + rm -rf htmlcov/ + rm -rf cov_annotate/ + rm -rf .mypy_cache/ + find . -name "__pycache__" -type d -exec rm -rf {} \; + -- cgit v1.2.3