Add Dockerfile (#1350)

This commit is contained in:
Stephen Krider
2023-10-31 12:36:47 -07:00
committed by GitHub
parent 7b895c5976
commit 9cabcb7645
5 changed files with 101 additions and 2 deletions

View File

@@ -239,8 +239,12 @@ def find_version(filepath: str):
def read_readme() -> str:
"""Read the README file."""
return io.open(get_path("README.md"), "r", encoding="utf-8").read()
"""Read the README file if present."""
p = get_path("README.md")
if os.path.isfile(p):
return io.open(get_path("README.md"), "r", encoding="utf-8").read()
else:
return ""
def get_requirements() -> List[str]: