提交 dcfeb3e9 编写于 作者: K Kentaro Wada

github2pypi is optional

上级 9885f070
......@@ -96,16 +96,14 @@ if sys.argv[1] == 'release':
def get_long_description():
with open('README.md') as f:
long_description = f.read()
try:
import github2pypi
except ImportError:
return github2pypi.replace_url(
slug='wkentaro/labelme', content=long_description
)
except Exception:
return long_description
return github2pypi.replace_url(
slug='wkentaro/labelme', content=long_description
)
setup(
name='labelme',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册