Skip to content

Bumping Versions

Example

Here, we see a very small example of how to bump versions using seal.

Below is a very basic configuration file for bumping versions.

seal.toml
1
2
3
4
5
6
[release]
current-version = "0.0.1"

version-files = [
    "README.md",
]

If you had a README.md file like this:

Markdown
1
# My Project (0.0.1)

With this setup, you can bump the version by running:

Bash
1
seal bump patch

Which will update your README.md file to:

Markdown
1
# My Project (0.0.2)

And update your seal.toml file to:

TOML
1
2
3
4
5
6
[release]
current-version = "0.0.2"

version-files = [
    "README.md",
]

Other Version Files

If we were working in a Python project like this:

my_app/__init__.py
1
__version__ = "0.0.1"
pyproject.toml
1
2
3
4
5
6
[project]
name = "my_app"
version = "0.0.1"
description = "My App"
requires-python = ">=3.13"
dependencies = []
seal.toml
1
2
3
4
5
6
7
[release]
current-version = "0.0.1"

version-files = [
    { path = "my_app/__init__.py", search = "__version__ = \"{version}\"" },
    { path = "pyproject.toml", field = "project.version", format = "toml" },
]

When you run seal bump patch, you will see the following output.

Text Only
1
2
3
4
5
Bumping version from 0.0.1 to 0.0.2

...

Proceed with these changes? (y/n):

Once you proceed with y, the changes will be applied.