Updated make commands to use poetry
@@ -7,8 +7,8 @@ VERSION := $(shell python tomodachi/__version__.py)
RELEASED := $(shell git tag | grep ^${VERSION}$$)
default:
- @echo "Current version info collected: ${VERSION}"
- if [[ "${RELEASED}" ]]; then echo "Version is already released"; else echo "Version can be released"; fi
+ @echo "Current version info collected: ${VERSION}."
+ if [[ "${RELEASED}" ]]; then echo "Version is already released."; else echo "Version can be released."; fi
@echo ""
@echo "Usage:"
@echo " make install | install package"
@@ -34,31 +34,31 @@ clean:
.PHONY: black
black:
- black setup.py tomodachi.py tomodachi/ examples/ tests/
+ poetry run black setup.py tomodachi.py tomodachi/ examples/ tests/
.PHONY: isort
isort:
- isort setup.py tomodachi.py tomodachi/ examples/ tests/
+ poetry run isort setup.py tomodachi.py tomodachi/ examples/ tests/
.PHONY: lint
lint:
- flake8 tomodachi/ tests/
- mypy ./
+ poetry run flake8 tomodachi/ tests/
+ poetry run mypy ./
.PHONY: mypy
mypy:
- mypy ./
+ poetry run mypy ./
.PHONY: tests
tests:
- pytest tests -v
- PYTHONPATH=. python tomodachi.py run tests/run_example_service.py
- PYTHONPATH=. python tomodachi.py run --loop uvloop tests/run_example_service.py
+ poetry run pytest tests -v
+ poetry run python tomodachi.py run tests/run_example_service.py
+ poetry run python tomodachi.py run --loop uvloop tests/run_example_service.py
.PHONY: pytest
pytest:
- PYTHONPATH=. py.test tests/
+ poetry run pytest tests -v
.PHONY: _check_release
_check_release:
@@ -77,17 +77,16 @@ _git_release:
.PHONY: _pypi_release
_pypi_release:
- twine upload dist/tomodachi-`python tomodachi/__version__.py`*
+ poetry run twine upload dist/tomodachi-`python tomodachi/__version__.py`*
test: tests
testing: tests
remove: uninstall
linting: lint
linter: lint
-develop: development
-dev: development
+develop: install
+dev: install
release: _check_release version build lint test _pypi_release _git_release
help: default
current-version: help
usage: help
-dev: development
