-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
71 lines (60 loc) · 2.28 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
"""Package information for NetCalc."""
import os.path
import io
from setuptools import setup
from netcalc.version import __version__
def read(file_path_components, encoding="utf8"):
"""Read the contents of a file.
Receives a list of path components to the file and joins them in an
OS-agnostic way. Opens the file for reading using the specified
encoding, and returns the file's contents.
Works both in Python 2 and Python 3.
"""
with io.open(
os.path.join(os.path.dirname(__file__), *file_path_components),
encoding=encoding
) as fp:
return fp.read()
setup(
name='netcalc',
description='Advanced network calculator and address planning helper',
author="Israel G. Lugo",
author_email='israel.lugo@lugosys.com',
url='https://github.com/israel-lugo/netcalc',
version=__version__,
packages=['netcalc'],
install_requires=[ 'netaddr>=0.7.12' ],
entry_points={
'console_scripts': [ 'netcalc=netcalc.cli:main' ],
},
license='GPLv3+',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Education',
'Intended Audience :: Information Technology',
'Intended Audience :: Science/Research',
'Intended Audience :: System Administrators',
'Intended Audience :: Telecommunications Industry',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: Microsoft :: Windows',
'Operating System :: OS Independent',
'Operating System :: POSIX',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Communications',
'Topic :: Documentation',
'Topic :: Education ',
'Topic :: Internet',
'Topic :: System :: Networking',
'Topic :: System :: Networking :: Firewalls ',
'Topic :: System :: Systems Administration',
'Topic :: Utilities',
],
long_description=read([ "README.rst" ])
)