Skip to content

Commit 3a85443

Browse files
committed
Make README.md optional in setup.py
1 parent 4ef9532 commit 3a85443

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
from setuptools import find_packages, setup
55
from setuptools.command.build_py import build_py
66

7-
with open("README.md", "rt") as fh:
8-
long_description = fh.read()
7+
long_description = ""
8+
if os.path.exists("README.md"):
9+
with open("README.md", "rt") as fh:
10+
long_description = fh.read()
911

1012
with open("requirements.txt", "rt") as f:
1113
requirements = [r.strip() for r in f.readlines()]

0 commit comments

Comments
 (0)