forked from roniemartinez/IPToCC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
41 lines (37 loc) · 1.32 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
#!/usr/bin/env python
import ssl
import sys
from setuptools import setup, find_packages
ssl._create_default_https_context = ssl._create_unverified_context
VERSION = open('iptocc/VERSION').read().strip()
REQUIREMENTS = []
with open('iptocc/requirements.txt') as f:
for line in f:
REQUIREMENTS.append(line.strip())
if sys.version_info[0] == '2':
REQUIREMENTS += ['backports.functools_lru_cache']
setup(
name='IPToCC',
version=VERSION,
packages=find_packages(),
url='https://github.com/Code-ReaQtor/IPToCC',
download_url='https://github.com/Code-ReaQtor/IPToCC/tarball/{}'.format(VERSION),
license='MIT',
author='Ronie Martinez',
author_email='[email protected]',
description='Get country code of IPv4/IPv6 address. Address lookup is done offline.',
long_description=open('README').read(),
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Topic :: Software Development :: Libraries :: Python Modules',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
install_requires=REQUIREMENTS,
package_data={
'iptocc': ['rir_statistics_exchange.json', 'VERSION', 'requirements.txt'],
'': ['setup.cfg', 'README']
}
)