File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed
Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 44 History
55-------
66
7+ 5.3.0
8+ ++++++++++++++++++
9+
10+ * The version is now retrieved from package metadata at runtime using
11+ ``importlib.metadata ``. This reduces the chance of version inconsistencies
12+ during releases.
13+
7145.2.0 (2025-11-20)
815++++++++++++++++++
916
Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ if [ -n "$(git status --porcelain)" ]; then
4141 exit 1
4242fi
4343
44- perl -pi -e " s/(?<=__version__ = \" ).+?(?=\" )/$version /gsm" src/geoip2/__init__.py
4544perl -pi -e " s/(?<=^version = \" ).+?(?=\" )/$version /gsm" pyproject.toml
4645
4746echo $" Test results:"
Original file line number Diff line number Diff line change 11"""geoip2 client library."""
22
3- __title__ = "geoip2"
4- __version__ = "5.2.0"
5- __author__ = "Gregory Oschwald"
6- __license__ = "Apache License, Version 2.0"
7- __copyright__ = "Copyright (c) 2013-2025 MaxMind, Inc."
3+ from importlib .metadata import version
4+
5+ __version__ = version ("geoip2" )
You can’t perform that action at this time.
0 commit comments