diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 2d0e217..e1fefc7 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -41,4 +41,4 @@ jobs: if: startsWith(github.ref, 'refs/tags') run: | poetry config pypi-token.pypi "${{ secrets.PYPI_API_TOKEN }}" - make publish GITHUB_REFNAME="${{ github.ref_name }}" + make publish diff --git a/Makefile b/Makefile index 430ea9f..e88ba65 100644 --- a/Makefile +++ b/Makefile @@ -30,10 +30,10 @@ lint: ## Lint the code lock: ## Update dependency lockfile poetry lock -publish: install-prod clean build check version ## Publish the package +publish: install-prod clean build check ## Publish the package poetry publish -publish-test: install clean build check version ## Publish to the package to the PyPI test platform +publish-test: install clean build check ## Publish to the package to the PyPI test platform poetry config repositories.testpypi https://test.pypi.org/legacy/ poetry publish --repository testpypi @@ -47,14 +47,6 @@ setup-binaries: ## Setup binaries for developmet. Poetry, Twine. test: ## Test the package poetry run pytest -version: ## Generate version from GitHub tag - @[ "$(GITHUB_REFNAME)" ] \ - && ( \ - VERSION="$(shell echo "$(GITHUB_REFNAME)" | sed -e 's#v\(.*\)#\1#')" \ - && sed -i '' -e 's/version = ".*"/version = "'$${VERSION}'"/' pyproject.toml \ - ) \ - || exit 0 - vscode: ## Update VSCode settings @[ -d .vscode ] \ && echo "{\"python.defaultInterpreterPath\": \"$(shell which python)\", \"python.terminal.activateEnvInCurrentTerminal\": true}" > .vscode/settings.json \ diff --git a/pyproject.toml b/pyproject.toml index a058bd6..f3ed48f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "ritdu-slacker" -version = "1.2.0" +version = "1.3.3" description = "Simple internal Slack API wrapper" authors = [ "Ringier Tech ",