39
39
os .chmod (REQ_PATH + "/bin/hpecp" , 509 )
40
40
41
41
42
-
43
42
def read (rel_path ):
44
43
here = os .path .abspath (os .path .dirname (__file__ ))
45
- with codecs .open (os .path .join (here , rel_path ), 'r' ) as fp :
44
+ with codecs .open (os .path .join (here , rel_path ), "r" ) as fp :
46
45
return fp .read ()
47
46
47
+
48
48
def get_version (rel_path ):
49
49
for line in read (rel_path ).splitlines ():
50
- if line .startswith (' __version__' ):
50
+ if line .startswith (" __version__" ):
51
51
delim = '"' if '"' in line else "'"
52
52
return line .split (delim )[1 ]
53
53
else :
54
54
raise RuntimeError ("Unable to find version string." )
55
55
56
+
56
57
try :
57
58
this_directory = os .path .abspath (os .path .dirname (__file__ ))
58
- with open (os .path .join (this_directory , ' README.md' )) as f :
59
+ with open (os .path .join (this_directory , " README.md" )) as f :
59
60
long_description = f .read ()
60
61
except Exception :
61
62
long_description = ""
@@ -65,11 +66,11 @@ def get_version(rel_path):
65
66
name = "hpecp" ,
66
67
description = "HPE Ezmeral Container Platform client" ,
67
68
long_description = long_description ,
68
- long_description_content_type = ' text/markdown' ,
69
+ long_description_content_type = " text/markdown" ,
69
70
author = "Chris Snow" ,
70
71
71
72
url = "https://github.com/hpe-container-platform-community/hpecp-python-library" ,
72
- packages = ["hpecp" ],
73
+ packages = ["hpecp" , "hpecp.cli" ],
73
74
scripts = ["bin/hpecp" ],
74
75
keywords = "" ,
75
76
version = get_version ("hpecp/__init__.py" ),
0 commit comments