Skip to content

Commit

Permalink
try-except README so that the package can be installed from source
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKim0407 committed Apr 27, 2023
1 parent b349be9 commit 675990f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
from python_package_importer import __version__

project_dir = Path(__file__).parent
try:
long_description = (project_dir / 'README.md').read_text()
except FileNotFoundError:
long_description = ''

extra_flake8 = (
'flake8',
Expand Down Expand Up @@ -38,7 +42,7 @@
author='Michael Kim',
author_email='mkim0407@gmail.com',
description='Dynamically import all python files in a directory.',
long_description=(project_dir / 'README.md').read_text(),
long_description=long_description,
long_description_content_type='text/markdown',

install_requires=(
Expand Down

0 comments on commit 675990f

Please sign in to comment.