Skip to content

Commit 3938d76

Browse files
committed
refactor
Signed-off-by: Chris Snow <[email protected]>
1 parent 93428db commit 3938d76

16 files changed

+7
-6
lines changed

setup.py

+7-6
Original file line numberDiff line numberDiff line change
@@ -39,23 +39,24 @@
3939
os.chmod(REQ_PATH + "/bin/hpecp", 509)
4040

4141

42-
4342
def read(rel_path):
4443
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:
4645
return fp.read()
4746

47+
4848
def get_version(rel_path):
4949
for line in read(rel_path).splitlines():
50-
if line.startswith('__version__'):
50+
if line.startswith("__version__"):
5151
delim = '"' if '"' in line else "'"
5252
return line.split(delim)[1]
5353
else:
5454
raise RuntimeError("Unable to find version string.")
5555

56+
5657
try:
5758
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:
5960
long_description = f.read()
6061
except Exception:
6162
long_description = ""
@@ -65,11 +66,11 @@ def get_version(rel_path):
6566
name="hpecp",
6667
description="HPE Ezmeral Container Platform client",
6768
long_description=long_description,
68-
long_description_content_type='text/markdown',
69+
long_description_content_type="text/markdown",
6970
author="Chris Snow",
7071
author_email="[email protected]",
7172
url="https://github.com/hpe-container-platform-community/hpecp-python-library",
72-
packages=["hpecp"],
73+
packages=["hpecp", "hpecp.cli"],
7374
scripts=["bin/hpecp"],
7475
keywords="",
7576
version=get_version("hpecp/__init__.py"),
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)