diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index af5ff36..c355871 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,7 @@ on: jobs: release: - name: Release + name: release runs-on: ubuntu-latest steps: - name: Checkout code @@ -25,13 +25,7 @@ jobs: run: echo "$HOME/.local/bin" >> $GITHUB_PATH - name: Build project for distribution - run: poetry build - - - name: Check Version - id: check-version - run: | - [[ "$(poetry version --short)" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] \ - || echo ::set-output name=prerelease::true + run: make build - name: Create Release uses: ncipollo/release-action@v1 @@ -44,4 +38,4 @@ jobs: - name: Publish to PyPI env: POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }} - run: poetry publish + run: make publish diff --git a/HISTORY.md b/HISTORY.md index 052c0f2..9c3b647 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,6 +1,9 @@ -# 0.X.X (2022-XX-XX) +# 0.2.2 (2022-02-01) * migrate to pyproject.toml * add python3.10 support +* add mypy +* add flake8 +* add poetry # 0.2.0 (2020-12-26) diff --git a/Makefile b/Makefile index 99f05bf..4e92ac0 100644 --- a/Makefile +++ b/Makefile @@ -65,6 +65,11 @@ clean: rm -rf build rm -rf cover +build: + $(VENV)/bin/poetry build + +publish: + $(VENV)/bin/poetry publish doc: make -C docs html diff --git a/pyproject.toml b/pyproject.toml index 1fb8972..db55198 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pyaspeller" -version = "0.2.0" +version = "0.2.2" description = "Search tool typos in the text, files and websites." authors = [ "Vassiliy Taranov ",