2
2
from setuptools import find_packages
3
3
import os
4
4
import re
5
+ import sys
6
+
7
+
8
+ requirements = [
9
+ 'paramiko>=2.0.0' ,
10
+ 'scp>=0.10.0' ,
11
+ 'pyyaml' ,
12
+ 'pyserial' ,
13
+ 'textfsm' ,
14
+ ]
15
+
16
+ # Cryptography library makes this necessary as older versions of PIP (PIP7 and less)
17
+ # will not auto_install enum34 from extras_require.
18
+ if sys .version_info < (3 ,):
19
+ requirements .append ("enum34" )
20
+ requirements .append ("ipaddress" )
21
+
22
+ with open ("README.md" , "r" ) as fs :
23
+ long_description = fs .read ()
5
24
6
25
7
26
def find_version (* file_paths ):
@@ -26,6 +45,8 @@ def find_version(*file_paths):
26
45
name = 'netmiko' ,
27
46
version = find_version ('netmiko' , '__init__.py' ),
28
47
description = 'Multi-vendor library to simplify Paramiko SSH connections to network devices' ,
48
+ long_description = long_description ,
49
+ long_description_content_type = "text/markdown" ,
29
50
url = 'https://github.com/ktbyers/netmiko' ,
30
51
author = 'Kirk Byers' ,
31
52
@@ -40,13 +61,7 @@ def find_version(*file_paths):
40
61
'Programming Language :: Python :: 3.6' ,
41
62
],
42
63
packages = find_packages (exclude = ("test*" , )),
43
- install_requires = [
44
- 'paramiko>=2.0.0' ,
45
- 'scp>=0.10.0' ,
46
- 'pyyaml' ,
47
- 'pyserial' ,
48
- 'textfsm'
49
- ],
64
+ install_requires = requirements ,
50
65
extras_require = {
51
66
'test' : ['pytest>=3.2.5' , ]
52
67
},
0 commit comments