Skip to content

Commit

Permalink
build: release 3.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ehossack committed Jul 2, 2023
1 parent 1fb5498 commit 3783826
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -140,18 +140,18 @@ run-sample-proj:
release: publish-to-pypi
gh release create ${PROJ_VERSION} --notes '${VER_DESCRIPTION}'

publish-to-pypi: require-var-pypi_user require-var-pypi_pw
publish-to-pypi: require-var-pypi_token
$(eval VER_DESCRIPTION = $(shell bash -c 'read -p "Release Description: " desc; echo $$desc'))
$(eval PROJ_VERSION = $(shell poetry run python -c "import toml; print(toml.load('pyproject.toml')['tool']['poetry']['version'])"))
poetry publish --build --dry-run --username ${pypi_user} --password ${pypi_pw}
poetry publish --build --dry-run --username __token__ --password ${pypi_token}
@if git show-ref --tags ${PROJ_VERSION} --quiet; then \
echo "tag for ${PROJ_VERSION} exists, delete it? [y/N] " && \
read ans && [ $${ans:-N} = y ] && \
read ans && ([ $${ans:-N} = y ] && \
git tag -d ${PROJ_VERSION} && \
git tag -a ${PROJ_VERSION} -m '${VER_DESCRIPTION}'; \
git tag -a ${PROJ_VERSION} -m '${VER_DESCRIPTION}') || true; \
else \
git tag -a ${PROJ_VERSION} -m '${VER_DESCRIPTION}'; \
fi
git push -f origin refs/tags/${PROJ_VERSION}
rm -rf dist
poetry publish --build --username ${pypi_user} --password ${pypi_pw}
poetry publish --build --username __token__ --password ${pypi_token}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ line-length = 120

[tool.poetry]
name = "django-backblaze-b2"
version = "3.1.0"
version = "3.2.1"
description = "A Django app to use backblaze b2 as storage."
authors = ["Etienne H <django_backblaze_b2@internet-e-mail.com>"]
maintainers = ["Etienne H <django_backblaze_b2@internet-e-mail.com>"]
Expand Down

0 comments on commit 3783826

Please sign in to comment.