forked from madmouser1/ipgetter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
41 lines (34 loc) · 1.46 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
from distutils.core import setup
def get_version(relpath):
"""read version info from file without importing it"""
from os.path import dirname, join
for line in open(join(dirname(__file__), relpath)):
if '__version__' in line:
if '"' in line:
# __version__ = "0.1"
return line.split('"')[1]
elif "'" in line:
return line.split("'")[1]
setup(
name='ipgetter',
version=get_version('ipgetter.py'),
author='Fernando Giannasi <[email protected]>',
url='https://github.com/phoemur/ipgetter',
download_url = 'https://github.com/phoemur/ipgetter/tarball/0.4',
description="Utility to fetch your external IP address",
license="Public Domain",
classifiers=[
'Environment :: Console',
'License :: Public Domain',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Networking',
'Topic :: Utilities',
],
py_modules=['ipgetter'],
long_description='''This module is designed to fetch your external IP address from the internet. It is used mostly when behind a NAT. It picks your IP
randomly from a serverlist to minimize request overhead on a single server
If you want to add or remove your server from the list contact me on github''',
)