forked from mpenning/ciscoconfparse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
61 lines (55 loc) · 2.48 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
#!/usr/bin/env python
## Ref https://docs.python.org/2/distutils/introduction.html
## Ref https://the-hitchhikers-guide-to-packaging.readthedocs.org/en/latest/
## Ref http://www.ibm.com/developerworks/library/os-pythonpackaging/
from setuptools import setup, find_packages
import sys
import os
CURRENT_PATH=os.path.join(os.path.dirname(__file__))
sys.path.insert(1,CURRENT_PATH)
def read(fname):
# Dynamically generate setup(long_description)
return open(os.path.join(os.path.dirname(__file__), fname)).read()
## Conditionally require the correct ipaddr package in Python2 vs Python3
# Ref Github issue #127 - sdist improvements
REQUIRES = ['colorama', 'passlib', 'dnspython']
EXTRAS = {
":python_version<'3'": ['ipaddr>=2.1.11'],
}
setup(name='ciscoconfparse',
version=open(os.path.join(os.path.dirname(os.path.abspath(__file__)),
'ciscoconfparse', 'version')).read().strip(),
description='Parse, Audit, Query, Build, and Modify Cisco IOS-style configurations',
url='http://www.pennington.net/py/ciscoconfparse/',
author='David Michael Pennington',
author_email='[email protected]',
license='GPLv3',
platforms='any',
keywords='Parse audit query modify Cisco IOS configuration',
entry_points = "",
long_description=read('README.rst'),
include_package_data=True, # See MANIFEST.in for explicit rules
packages=find_packages(),
use_2to3=True, # Reqd for Windows + Py3 - ref Github issue #32
zip_safe=False,
install_requires = REQUIRES,
extras_require = EXTRAS, # Conditional dependencies Github isssue #127
#setup_requires=["setuptools_hg"], # setuptools_hg must be installed as a python module
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Plugins',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Intended Audience :: Information Technology',
'Intended Audience :: Telecommunications Industry',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Communications',
'Topic :: Internet',
'Topic :: System :: Networking',
'Topic :: System :: Networking :: Monitoring',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)