-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
66 lines (55 loc) · 2.12 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
"""Package information for NetForeman."""
import os.path
import io
from setuptools import setup
from netforeman.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='netforeman',
description='Making sure your network is running smoothly',
author="Israel G. Lugo",
author_email='[email protected]',
url='https://github.com/israel-lugo/netforeman',
version=__version__,
packages=['netforeman', 'netforeman.modules' ],
install_requires=[ 'netaddr>=0.7.12', 'pyroute2>=0.4.0', 'pyhocon>=0.3.35', 'psutil>=2.1.1' ],
entry_points={
'console_scripts': [ 'netforeman=netforeman.cli:main' ],
},
license='GPLv3+',
classifiers=[
'Development Status :: 3 - Alpha',
'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 :: POSIX',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 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 :: Operating System',
'Topic :: System :: Systems Administration',
'Topic :: Utilities',
],
long_description=read([ "README.rst" ])
)