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
2 changes: 1 addition & 1 deletion HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
History
-------

5.2.0
5.2.0 (2025-11-20)
++++++++++++++++++

* IMPORTANT: Python 3.10 or greater is required. If you are using an older
Expand Down
12 changes: 10 additions & 2 deletions dev-bin/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

set -eu -o pipefail

# Check that we're not on the main branch
current_branch=$(git branch --show-current)
if [ "$current_branch" = "main" ]; then
echo "Error: Releases should not be done directly on the main branch."
echo "Please create a release branch and run this script from there."
exit 1
fi

changelog=$(cat HISTORY.rst)

regex='
Expand Down Expand Up @@ -33,11 +41,11 @@ if [ -n "$(git status --porcelain)" ]; then
exit 1
fi

perl -pi -e "s/(?<=__version__ = \").+?(?=\")/$version/gsm" geoip2/__init__.py
perl -pi -e "s/(?<=__version__ = \").+?(?=\")/$version/gsm" src/geoip2/__init__.py
perl -pi -e "s/(?<=^version = \").+?(?=\")/$version/gsm" pyproject.toml

echo $"Test results:"
tox
uv run tox

echo $'\nDiff:'
git diff
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "geoip2"
version = "5.1.0"
version = "5.2.0"
description = "MaxMind GeoIP2 API"
authors = [
{name = "Gregory Oschwald", email = "goschwald@maxmind.com"},
Expand Down Expand Up @@ -34,6 +34,7 @@ classifiers = [
dev = [
"pytest>=8.3.5",
"pytest-httpserver>=1.0.10",
"tox-uv>=1.29.0",
"types-requests>=2.32.0.20250328",
]
lint = [
Expand Down
2 changes: 1 addition & 1 deletion src/geoip2/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""geoip2 client library."""

__title__ = "geoip2"
__version__ = "5.1.0"
__version__ = "5.2.0"
__author__ = "Gregory Oschwald"
__license__ = "Apache License, Version 2.0"
__copyright__ = "Copyright (c) 2013-2025 MaxMind, Inc."
Loading
Loading