Skip to content

Commit

Permalink
Merge 7443bde into 5407590
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed May 29, 2018
2 parents 5407590 + 7443bde commit 687838c
Show file tree
Hide file tree
Showing 14 changed files with 19 additions and 17 deletions.
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ by [Leonidas Poulopoulos (@leopoul)](http://ncclient.org/ncclient/)
**PyPI**: [https://pypi.python.org/pypi/ncclient](https://pypi.python.org/pypi/ncclient)

#### Requirements:
* Python >= 2.6 or Python3
* Python 2.7 or Python 3.4+
* setuptools 0.6+
* Paramiko 1.7+
* lxml 3.3.0+
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ by [Leonidas Poulopoulos (@leopoul)](http://ncclient.org)
**PyPI**: [https://pypi.python.org/pypi/ncclient](https://pypi.python.org/pypi/ncclient)

#### Requirements:
* version >= Python 2.6 or Python3
* Python 2.7 or Python 3.4+
* setuptools 0.6+
* Paramiko 1.7+
* lxml 3.3.0+
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Github:
Requirements:
^^^^^^^^^^^^^

- Python >= 2.6 or Python 3
- Python 2.7 or Python 3.4+
- setuptools 0.6+
- Paramiko 1.7+
- lxml 3.3.0+
Expand Down
2 changes: 1 addition & 1 deletion examples/nc01.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/env python2.6
#! /usr/bin/env python
#
# Connect to the NETCONF server passed on the command line and
# display their capabilities. This script and the following scripts
Expand Down
2 changes: 1 addition & 1 deletion examples/nc02.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/env python2.6
#! /usr/bin/env python
#
# Retrieve the running config from the NETCONF server passed on the
# command line using get-config and write the XML configs to files.
Expand Down
2 changes: 1 addition & 1 deletion examples/nc03.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/env python2.6
#! /usr/bin/env python
#
# Retrieve a portion selected by an XPATH expression from the running
# config from the NETCONF server passed on the command line using
Expand Down
2 changes: 1 addition & 1 deletion examples/nc04.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/env python2.6
#! /usr/bin/env python
#
# Create a new user to the running configuration using edit-config
# and the test-option provided by the :validate capability.
Expand Down
2 changes: 1 addition & 1 deletion examples/nc05.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/env python2.6
#! /usr/bin/env python
#
# Delete an existing user from the running configuration using
# edit-config and the test-option provided by the :validate
Expand Down
2 changes: 1 addition & 1 deletion examples/nc06.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/env python2.6
#! /usr/bin/env python
#
# Delete a list of existing users from the running configuration using
# edit-config; protect the transaction using a lock.
Expand Down
2 changes: 1 addition & 1 deletion examples/nc07.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/env python2.6
#! /usr/bin/env python
#
# Delete a list of existing users from the running configuration using
# edit-config and the candidate datastore protected by a lock.
Expand Down
2 changes: 1 addition & 1 deletion examples/nc08.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/env python2.6
#! /usr/bin/env python
#
# Configure an Interface: its description and make it active.
# XML payload created with lxml/etree instead of a template
Expand Down
2 changes: 1 addition & 1 deletion examples/nxosapi.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/env python2.6
#! /usr/bin/env python
#
# Connect to the NETCONF server passed on the command line and
# display their capabilities. This script and the following scripts
Expand Down
4 changes: 2 additions & 2 deletions ncclient/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

import sys

if sys.version_info < (2, 6):
raise RuntimeError('You need Python 2.6+ for this module.')
if sys.version_info < (2, 7):
raise RuntimeError('You need Python 2.7+ for this module.')

class NCClientError(Exception):
"Base type for all NCClient errors"
Expand Down
8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
import platform
import codecs

if sys.version_info[0] == 2 and sys.version_info[1] < 6:
print ("Sorry, Python < 2.6 is not supported")
if sys.version_info.major == 2 and sys.version_info.minor < 7:
print ("Sorry, Python < 2.7 is not supported")
exit()

#parse requirements
Expand All @@ -45,11 +45,13 @@
license="Apache License 2.0",
platforms=["Posix; OS X; Windows"],
keywords=('NETCONF', 'NETCONF Python client', 'Juniper Optimization', 'Cisco NXOS Optimization'),
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: System :: Networking',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
Expand Down

0 comments on commit 687838c

Please sign in to comment.