Skip to content

Commit 4acf96f

Browse files
ensure the project self-bumps its own pyproject version
1 parent b360cea commit 4acf96f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

pyproject.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "STACpopulator"
7-
version = "0.0.1"
7+
version = "0.1.0"
88
description = "Utility for populating the STAC Catalog, Collections and Items from various dataset/catalog sources."
99
requires-python = ">=3.10"
1010
dependencies = [
@@ -130,3 +130,10 @@ replace = """
130130
131131
## [{new_version}](https://github.com/crim-ca/stac-populator/tree/{new_version}) ({now:%Y-%m-%d})
132132
"""
133+
134+
[[tool.bumpversion.files]]
135+
filename = "pyproject.toml"
136+
# ensure the regex does not match another version by mistake using the package name as guide
137+
regex = true
138+
search = "^name = \"STACpopulator\"\nversion = \"{current_version}\"$"
139+
replace = "name = \"STACpopulator\"\nversion = \"{new_version}\""

0 commit comments

Comments
 (0)