Skip to content

Commit 5cd915a

Browse files
committed
refactor: update version references to use standardized __version__
- Update ipinfo/handler_utils.py to use __version__ instead of SDK_VERSION - Remove legacy version imports in setup.py to follow PEP 517 - Ensure User-Agent strings reflect the standardized version attribute - Align internal API with PEP 396 module versioning conventions
1 parent 5b14471 commit 5cd915a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ipinfo/handler_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import os
88
import sys
99

10-
from .version import SDK_VERSION
10+
from .version import __version__ as SDK_VERSION
1111

1212
# Base URL to make requests against.
1313
API_URL = "https://ipinfo.io"

ipinfo/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
SDK_VERSION = "5.4.1"
1+
__version__ = "5.4.1"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from setuptools import setup
22

3-
from ipinfo.version import SDK_VERSION
3+
from ipinfo.version import __version__ as SDK_VERSION
44

55
long_description = """
66
The official Python library for IPinfo.

0 commit comments

Comments
 (0)