Browse Source

fix the description

tags/v1.2.0-rc1
shenghong96 4 years ago
parent
commit
571783ef74
2 changed files with 7 additions and 6 deletions
  1. +3
    -2
      mindinsight/scripts/start.py
  2. +4
    -4
      setup.py

+ 3
- 2
mindinsight/scripts/start.py View File

@@ -176,8 +176,9 @@ class Command(BaseCommand):
type=str,
action=WorkspaceAction,
help="""
Specify path for user workspace. Default is %s.
""" % settings.WORKSPACE)
Specify path for user workspace. Default is
$HOME/mindinsight.
""")

parser.add_argument(
'--port',


+ 4
- 4
setup.py View File

@@ -52,7 +52,7 @@ def get_platform():
Returns:
str, platform name in lowercase.
"""
return platform.system().lower()
return platform.system().strip().lower()


def get_description():
@@ -63,7 +63,7 @@ def get_description():
str, wheel package description.
"""
os_info = get_platform()
cpu_info = platform.machine()
cpu_info = platform.machine().strip()

cmd = "git log --format='[sha1]:%h, [branch]:%d' -1"
process = subprocess.Popen(
@@ -75,7 +75,7 @@ def get_description():
)
stdout, _ = process.communicate()
if not process.returncode:
git_version = stdout.decode()
git_version = stdout.decode().strip()
return 'mindinsight platform: %s, cpu: %s, git version: %s' % (os_info, cpu_info, git_version)

return 'mindinsight platform: %s, cpu: %s' % (os_info, cpu_info)
@@ -89,7 +89,7 @@ def get_install_requires():
list, list of dependent packages.
"""
with open('requirements.txt') as file:
return file.read().splitlines()
return file.read().strip().splitlines()


def update_permissions(path):


Loading…
Cancel
Save