File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 66import os
77import sys
88
9+ from .version import SDK_VERSION
10+
911API_URL = "https://ipinfo.io"
1012COUNTRY_FILE_DEFAULT = "countries.json"
1113
1214def get_headers (access_token ):
1315 """Build headers for request to IPinfo API."""
1416 headers = {
15- "user-agent" : "IPinfoClient/Python{version}/4.0.0" .format (
16- version = sys .version_info [0 ]
17+ "user-agent" : "IPinfoClient/Python{version}/{sdk_version}" .format (
18+ version = sys .version_info [0 ],
19+ sdk_version = SDK_VERSION
1720 ),
1821 "accept" : "application/json" ,
1922 }
Original file line number Diff line number Diff line change 1+ SDK_VERSION = '4.1.0'
Original file line number Diff line number Diff line change 11from setuptools import setup
22
3+ from ipinfo .version import SDK_VERSION
4+
35long_description = """
46The official Python library for IPinfo.
57
1012
1113setup (
1214 name = "ipinfo" ,
13- version = "4.0.0" ,
15+ version = SDK_VERSION ,
1416 description = "Official Python library for IPInfo" ,
1517 long_description = long_description ,
1618 url = "https://github.com/ipinfo/python" ,
You can’t perform that action at this time.
0 commit comments