Skip to content

Commit

Permalink
Satisfy analyses
Browse files Browse the repository at this point in the history
  • Loading branch information
Curtis Fenner committed Oct 8, 2021
1 parent 0999116 commit e5cd3e7
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions setup.py
Expand Up @@ -2,19 +2,20 @@

from os import path

this_directory = path.abspath(path.dirname(__file__))
try:
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
except FileNotFoundError:
# This happens when `snyk test` analyzes `setup.py` in a temporary directory.
long_description = 'See https://github.com/paypay/paypayopa-sdk-python'
def fetchLongDescription():
this_directory = path.abspath(path.dirname(__file__))
try:
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
return f.read()
except FileNotFoundError:
# This happens when `snyk test` analyzes `setup.py` in a temporary directory.
return 'See https://github.com/paypay/paypayopa-sdk-python'

setup(
name="paypayopa",
version="0.0.0",
description="PayPay OPA SDK",
long_description=long_description,
long_description=fetchLongDescription(),
long_description_content_type='text/markdown',
author="Team PayPay",
author_email="opensource@paypay-corp.co.jp",
Expand Down

0 comments on commit e5cd3e7

Please sign in to comment.