-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
85e61a6
commit 8c83e0d
Showing
6 changed files
with
36 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ def get_requirements(env: str = None): | |
version=VERSION, | ||
description="Experimental High level Raft framework", | ||
long_description=README, | ||
long_description_content_type='text/markdown', | ||
long_description_content_type="text/markdown", | ||
author="Lablup Inc.", | ||
maintainer="jopemachine", | ||
maintainer_email="[email protected]", | ||
|
@@ -35,9 +35,5 @@ def get_requirements(env: str = None): | |
install_requires=default_requires, | ||
zip_safe=False, | ||
include_package_data=True, | ||
entry_points={ | ||
'console_scripts': [ | ||
'raftify_cli = raftify_cli.cli:main' | ||
] | ||
} | ||
entry_points={"console_scripts": ["raftify_cli = raftify_cli.cli:main"]}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import os | ||
|
||
|
||
def get_storage_path(log_dir: str, node_id: int) -> str: | ||
return f"{log_dir}/node-{node_id}" | ||
|
||
|
||
def ensure_directory_exist(storage_path: str): | ||
if not os.path.exists(storage_path): | ||
os.makedirs(storage_path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters