diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6bbfe1c --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +build: ci version + python setup.py sdist + +name := pypdx-clausewitz +v := `python -c "from clausewitz import __version__; print(__version__)"` + +version: + @echo "Current version: $(v). Do you confirm? (y/n)" + @read y_n && [ "$${y_n}" == "y" ] + +lint: + flake8 . + +test: + pytest --cov --cov-report term-missing:skip-covered + +ci: lint test + +upload: build + twine upload "dist/$(name)-$(v).tar.gz" diff --git a/clausewitz/__init__.py b/clausewitz/__init__.py index 11d27f8..b650ceb 100644 --- a/clausewitz/__init__.py +++ b/clausewitz/__init__.py @@ -1 +1 @@ -__version__ = '0.1' +__version__ = '0.2'