Skip to content

Commit 68b64c4

Browse files
authored
Merge pull request #286 from maxmind/greg/eng-3319
Release 5.2.0
2 parents 025cbe3 + d6cd6a0 commit 68b64c4

File tree

5 files changed

+199
-42
lines changed

5 files changed

+199
-42
lines changed

HISTORY.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
History
55
-------
66

7-
5.2.0
7+
5.2.0 (2025-11-20)
88
++++++++++++++++++
99

1010
* IMPORTANT: Python 3.10 or greater is required. If you are using an older

dev-bin/release.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
set -eu -o pipefail
44

5+
# Check that we're not on the main branch
6+
current_branch=$(git branch --show-current)
7+
if [ "$current_branch" = "main" ]; then
8+
echo "Error: Releases should not be done directly on the main branch."
9+
echo "Please create a release branch and run this script from there."
10+
exit 1
11+
fi
12+
513
changelog=$(cat HISTORY.rst)
614

715
regex='
@@ -33,11 +41,11 @@ if [ -n "$(git status --porcelain)" ]; then
3341
exit 1
3442
fi
3543

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

3947
echo $"Test results:"
40-
tox
48+
uv run tox
4149

4250
echo $'\nDiff:'
4351
git diff

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "geoip2"
3-
version = "5.1.0"
3+
version = "5.2.0"
44
description = "MaxMind GeoIP2 API"
55
authors = [
66
{name = "Gregory Oschwald", email = "[email protected]"},
@@ -34,6 +34,7 @@ classifiers = [
3434
dev = [
3535
"pytest>=8.3.5",
3636
"pytest-httpserver>=1.0.10",
37+
"tox-uv>=1.29.0",
3738
"types-requests>=2.32.0.20250328",
3839
]
3940
lint = [

src/geoip2/__init__.py

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

33
__title__ = "geoip2"
4-
__version__ = "5.1.0"
4+
__version__ = "5.2.0"
55
__author__ = "Gregory Oschwald"
66
__license__ = "Apache License, Version 2.0"
77
__copyright__ = "Copyright (c) 2013-2025 MaxMind, Inc."

0 commit comments

Comments
 (0)