Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes here will be overwritten by Copier
_commit: v0.3.0
_commit: v0.7.0
_src_path: gh:smkent/copier-python
copyright_holder: Stephen Kent
copyright_holder_email: smkent@smkent.net
Expand All @@ -15,6 +15,8 @@ project_name: replyowl
project_slug: replyowl
project_type: library
project_visibility: public
python_version_maximum: No maximum
python_version_minimum: '3.10'
template_attribution: true
user_email: smkent@smkent.net
user_name: Stephen Kent
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,5 +144,10 @@ print(html) # (output formatted for readability)
# </html>
```

## Project template

This project is generated and maintained with [copier-python][copier-python].

[copier-python]: https://smkent.github.io/copier-python
[html2text]: https://github.com/Alir3z4/html2text
[logo]: https://raw.github.com/smkent/replyowl/main/img/replyowl.png
15 changes: 12 additions & 3 deletions docs/releasing.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,19 @@ icon: lucide/rocket

Release version numbers should follow [Semantic Versioning][semver].

To create a new release, simply create and push a tag with the new release
version number:
To create a release, run `poe release` with one of `patch`, `minor`, or `major`
corresponding to the version number component to update:

```sh
poe release patch|minor|major
```

A new tag with the new release version number will be created automatically
using [bump-my-version][bump-my-version] (for example, `v1.2.3`).

Afterward, push the new release tag:

```sh
git tag vX.Y.Z # for example, v1.2.3
git push --tags
```

Expand All @@ -24,6 +32,7 @@ git push --tags

[![PyPI][pypi-badge]][pypi-project]

[bump-my-version]: https://callowayproject.github.io/bump-my-version/
[github-release-badge]: https://img.shields.io/github/v/release/smkent/replyowl
[github-release-latest]: https://github.com/smkent/replyowl/releases/latest
[github-releases]: https://github.com/smkent/replyowl/releases
Expand Down
Empty file added py.typed
Empty file.
22 changes: 17 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,28 @@ Issues = "https://github.com/smkent/replyowl/issues"

[dependency-groups]
dev = [
"bump-my-version>=1.3.0",
"poethepoet>=0.42",
"prek>=0.3",
"pysentry-rs>=0.4",
"pytest>=9.0",
"pytest-cov>=7.0",
"pytest-sugar>=1.0",
"pytest>=9",
"pytest-cov>=7",
"pytest-sugar>=1",
"ruff>=0.15",
"ty>=0.0.26",
"ty>=0.0.31",
]
docs = [
"mkdocstrings[python]>=1",
"zensical>=0.0.30",
"zensical>=0.0.33",
]

[tool.bumpversion]
commit = false
tag = true
tag_name = "v{new_version}"
tag_message = ""
push = true

[tool.hatch.build.targets.sdist]
include = ["/replyowl", "/tests", "*.md", "LICENSE"]

Expand Down Expand Up @@ -117,6 +125,10 @@ help = "Run all formatters and static checks"
sequence = [{ref = "lint"}, {ref = "test"}]
help = "Run all formatters, static checks and tests"

[tool.poe.tasks.release]
cmd = "bump-my-version bump -v"
help = "Create and push a release tag (patch/minor/major)"

[tool.poe.tasks.setup]
sequence = [
{cmd = "uv sync"},
Expand Down
Loading