aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-09-13 23:06:28 +0200
committerMartin Czygan <martin.czygan@gmail.com>2021-09-13 23:06:28 +0200
commitd3ffa9981f0c7e50cef256a2bfbb7b80caa1eba3 (patch)
tree2d6368b41a434edd359ffb4541d0fd4732e94e21 /Makefile
parentc9480cec94e19e9511eb391c6d38c504ac7e02c9 (diff)
downloadfuzzycat-d3ffa9981f0c7e50cef256a2bfbb7b80caa1eba3.tar.gz
fuzzycat-d3ffa9981f0c7e50cef256a2bfbb7b80caa1eba3.zip
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
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile48
1 files changed, 24 insertions, 24 deletions
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 {} \;
+