Skip to content

Commit

Permalink
Update version
Browse files Browse the repository at this point in the history
  • Loading branch information
datashaman committed Mar 2, 2023
1 parent b9776c7 commit 558ccf4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
12 changes: 2 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 \
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <tools@ringier.co.za>",
Expand Down

0 comments on commit 558ccf4

Please sign in to comment.