Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Basti Tee committed Aug 19, 2023
1 parent 186edc1 commit 8960fab
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,17 @@ First release. Contains support for:
- vscode editor configuration including debugging support, unit test discovery and on-save formatting
- Dockerized builds and run with nginx/uwsgi
- Publishing to PyPi.org at <https://pypi.org/project/python3-boilerplate/>

## How to release a new version

- Finish development on branch and merge to main
- Update this changelog and commit
- Bump version number in `pyproject.toml`
- Run

```shell
VERSION=$( poetry version --short ) &&\
echo "Release: ${VERSION}" &&\
git tag -a ${VERSION} -m "Version ${VERSION}" &&\
git push --tags
```
9 changes: 1 addition & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ outdated:
@echo Show outdated dependencies
$(POETRY_CMD) show --outdated

# Executing and publishing
# Executing

run-venv:
@echo Execute package directly in virtual environment
Expand All @@ -91,10 +91,3 @@ install-run:
python -m pip install --upgrade .
@echo --- Note: The next command might fail before you reload your shell
my_module_cli

publish:
@echo Release version $(VERSION)
git tag -a $(VERSION) -m "Version $(VERSION)"
git push --tags
# Uncomment the following line to integrate with pypi publishing
# $(POETRY_CMD) publish

0 comments on commit 8960fab

Please sign in to comment.