File tree Expand file tree Collapse file tree 5 files changed +199
-42
lines changed Expand file tree Collapse file tree 5 files changed +199
-42
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 22
33set -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+
513changelog=$( cat HISTORY.rst)
614
715regex='
@@ -33,11 +41,11 @@ if [ -n "$(git status --porcelain)" ]; then
3341 exit 1
3442fi
3543
36- perl -pi -e " s/(?<=__version__ = \" ).+?(?=\" )/$version /gsm" geoip2/__init__.py
44+ perl -pi -e " s/(?<=__version__ = \" ).+?(?=\" )/$version /gsm" src/ geoip2/__init__.py
3745perl -pi -e " s/(?<=^version = \" ).+?(?=\" )/$version /gsm" pyproject.toml
3846
3947echo $" Test results:"
40- tox
48+ uv run tox
4149
4250echo $' \n Diff:'
4351git diff
Original file line number Diff line number Diff line change 11[project ]
22name = " geoip2"
3- version = " 5.1 .0"
3+ version = " 5.2 .0"
44description = " MaxMind GeoIP2 API"
55authors = [
66 {
name =
" Gregory Oschwald" ,
email =
" [email protected] " },
@@ -34,6 +34,7 @@ classifiers = [
3434dev = [
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]
3940lint = [
Original file line number Diff line number Diff line change 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."
You can’t perform that action at this time.
0 commit comments