Skip to content

Commit 5d62d1b

Browse files
authored
use [security] package for Python 2 only
1 parent 2d99217 commit 5d62d1b

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

setup.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
11

22
from setuptools import setup
3+
import sys
4+
5+
if sys.version_info >= (3,2):
6+
install_requires = ['requests']
7+
else:
8+
install_requires = ['requests[security]']
39

410
setup(
511
name = 'ipapi',
612
packages = ['ipapi'],
7-
version = '0.4.2',
8-
description = 'Python bindings for ipapi (IP address geolocation API - https://ipapi.com)',
13+
version = '0.5.2',
14+
description = 'Python bindings for ipapi (IP address to location mapping service. Free & paid API for a secure, fast & reliable IP lookup (city, country, latitude, longitude, timezone) - https://ipapi.co)',
915
author = 'ipapi',
1016
license="MIT License",
1117
author_email = '[email protected]',
1218
url = 'https://github.com/ipapi-co/ipapi-python',
13-
download_url = 'https://github.com/ipapi-co/ipapi-python/archive/0.4.2.tar.gz',
14-
keywords = ['geolocation', 'location', 'ipapi', 'ipapi.co', 'ip address to location', 'ipaddress', 'ipv4', 'ipv6', 'ip address', 'ip checker', 'ip lookup'],
19+
download_url = 'https://github.com/ipapi-co/ipapi-python/archive/0.5.2.tar.gz',
20+
keywords = ['geolocation', 'ip address', 'ip address geolocation', 'ip address lookup', 'ip address to location', 'ip address tracer', 'ip address tracker', 'ip checker', 'ip lookup', 'ip tracker', 'ip-address', 'ipapi', 'ipapi.co', 'ipv4', 'ipv6', 'location', 'lookup ip address', 'trace ip address'],
1521
classifiers = [],
16-
install_requires = [
17-
'requests[security]',
18-
],
22+
install_requires = install_requires,
1923
)

0 commit comments

Comments
 (0)