Skip to content

Commit d379c89

Browse files
Release/v4.0.3 (#211)
* update changelog and add bump-my-version * Bump version: 4.0.2 → 4.0.3
1 parent 17baaf3 commit d379c89

File tree

5 files changed

+50
-3
lines changed

5 files changed

+50
-3
lines changed

CHANGES.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## [Unreleased]
44

5+
## [4.0.3] - 2025-03-10
6+
57
### Fixed
68

79
- fix links when app is mounted behind proxy or has router-prefix ([#195](https://github.com/stac-utils/stac-fastapi-pgstac/pull/195))
@@ -387,7 +389,8 @@ As a part of this release, this repository was extracted from the main
387389

388390
- First PyPi release!
389391

390-
[Unreleased]: <https://github.com/stac-utils/stac-fastapi-pgstac/compare/4.0.2..main>
392+
[Unreleased]: <https://github.com/stac-utils/stac-fastapi-pgstac/compare/4.0.3..main>
393+
[4.0.3]: <https://github.com/stac-utils/stac-fastapi-pgstac/compare/4.0.2..4.0.3>
391394
[4.0.2]: <https://github.com/stac-utils/stac-fastapi-pgstac/compare/4.0.1..4.0.2>
392395
[4.0.1]: <https://github.com/stac-utils/stac-fastapi-pgstac/compare/4.0.0..4.0.1>
393396
[4.0.0]: <https://github.com/stac-utils/stac-fastapi-pgstac/compare/3.0.1..4.0.0>

RELEASING.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ This is a checklist for releasing a new version of **stac-fastapi**.
66
We currently do not have published versioning guidelines, but there is some text on the subject here: <https://github.com/radiantearth/stac-spec/discussions/1184>.
77
2. Create a release branch named `release/vX.Y.Z`, where `X.Y.Z` is the new version.
88
3. Search and replace all instances of the current version number with the new version.
9+
10+
Note: You can use [`bump-my-version`](https://github.com/callowayproject/bump-my-version) CLI
11+
```
12+
bump-my-version bump --new-version 3.1.0
13+
```
14+
915
4. Update [CHANGES.md](./CHANGES.md) for the new version.
1016
Add the appropriate header, and update the links at the bottom of the file.
1117
5. Audit CHANGES.md for completeness and accuracy.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.0.2
1+
4.0.3

pyproject.toml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,41 @@ ignore = [
2626
"E501", # do not perform function calls in argument defaults
2727
"B028", # No explicit `stacklevel` keyword argument found
2828
]
29+
30+
31+
[tool.bumpversion]
32+
current_version = "4.0.3"
33+
parse = """(?x)
34+
(?P<major>\\d+)\\.
35+
(?P<minor>\\d+)\\.
36+
(?P<patch>\\d+)
37+
(?:
38+
(?P<pre_l>a|b|rc) # pre-release label
39+
(?P<pre_n>\\d+) # pre-release version number
40+
)? # pre-release section is optional
41+
(?:
42+
\\.post
43+
(?P<post_n>\\d+) # post-release version number
44+
)? # post-release section is optional
45+
"""
46+
serialize = [
47+
"{major}.{minor}.{patch}.post{post_n}",
48+
"{major}.{minor}.{patch}{pre_l}{pre_n}",
49+
"{major}.{minor}.{patch}",
50+
]
51+
52+
search = "{current_version}"
53+
replace = "{new_version}"
54+
regex = false
55+
tag = false
56+
commit = true
57+
58+
[[tool.bumpversion.files]]
59+
filename = "VERSION"
60+
search = "{current_version}"
61+
replace = "{new_version}"
62+
63+
[[tool.bumpversion.files]]
64+
filename = "stac_fastapi/pgstac/version.py"
65+
search = '__version__ = "{current_version}"'
66+
replace = '__version__ = "{new_version}"'

stac_fastapi/pgstac/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""library version."""
22

3-
__version__ = "4.0.2"
3+
__version__ = "4.0.3"

0 commit comments

Comments
 (0)