{"action":"closed","issue":{"url":"https://api.github.com/repos/chinapnr/fishbase/issues/113","repository_url":"https://api.github.com/repos/chinapnr/fishbase","labels_url":"https://api.github.com/repos/chinapnr/fishbase/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/chinapnr/fishbase/issues/113/comments","events_url":"https://api.github.com/repos/chinapnr/fishbase/issues/113/events","html_url":"https://github.com/chinapnr/fishbase/issues/113","id":357161687,"node_id":"MDU6SXNzdWUzNTcxNjE2ODc=","number":113,"title":"setup.py 增加 long_description, 用来在 pypi 仓库显示 readme","user":{"login":"iTaa","id":13126814,"node_id":"MDQ6VXNlcjEzMTI2ODE0","avatar_url":"https://avatars3.githubusercontent.com/u/13126814?v=4","gravatar_id":"","url":"https://api.github.com/users/iTaa","html_url":"https://github.com/iTaa","followers_url":"https://api.github.com/users/iTaa/followers","following_url":"https://api.github.com/users/iTaa/following{/other_user}","gists_url":"https://api.github.com/users/iTaa/gists{/gist_id}","starred_url":"https://api.github.com/users/iTaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iTaa/subscriptions","organizations_url":"https://api.github.com/users/iTaa/orgs","repos_url":"https://api.github.com/users/iTaa/repos","events_url":"https://api.github.com/users/iTaa/events{/privacy}","received_events_url":"https://api.github.com/users/iTaa/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/chinapnr/fishbase/milestones/5","html_url":"https://github.com/chinapnr/fishbase/milestone/5","labels_url":"https://api.github.com/repos/chinapnr/fishbase/milestones/5/labels","id":3549180,"node_id":"MDk6TWlsZXN0b25lMzU0OTE4MA==","number":5,"title":"v1.1.1","description":"通用组件更新，问题修复","creator":{"login":"iTaa","id":13126814,"node_id":"MDQ6VXNlcjEzMTI2ODE0","avatar_url":"https://avatars3.githubusercontent.com/u/13126814?v=4","gravatar_id":"","url":"https://api.github.com/users/iTaa","html_url":"https://github.com/iTaa","followers_url":"https://api.github.com/users/iTaa/followers","following_url":"https://api.github.com/users/iTaa/following{/other_user}","gists_url":"https://api.github.com/users/iTaa/gists{/gist_id}","starred_url":"https://api.github.com/users/iTaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iTaa/subscriptions","organizations_url":"https://api.github.com/users/iTaa/orgs","repos_url":"https://api.github.com/users/iTaa/repos","events_url":"https://api.github.com/users/iTaa/events{/privacy}","received_events_url":"https://api.github.com/users/iTaa/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":2,"state":"open","created_at":"2018-08-06T14:01:51Z","updated_at":"2018-10-12T00:19:18Z","due_on":"2018-09-14T07:00:00Z","closed_at":null},"comments":0,"created_at":"2018-09-05T10:18:57Z","updated_at":"2018-10-12T00:19:18Z","closed_at":"2018-10-12T00:19:18Z","author_association":"CONTRIBUTOR","body":"# setup.py 增加 long_description, 用来在 pypi 仓库显示 readme\r\n目前 fishbase 在 pypi 仓库上的 Project description 是空的，通过在 setup 中加入 long_description 参数，可以添加 Project description。具体方法如下：\r\n- 将 README.md 转换为 README.rst ，文件名和内容均需修改\r\n- 在 setup.py 中加入以下代码：\r\n``` python\r\n# 文件开头读取 README.rst \r\nwith io.open('README.rst', 'rt', encoding='utf8') as f:\r\n    readme = f.read()\r\n.\r\n.\r\n.\r\n   # setup 中  新增 long_description 字段\r\n    long_description=readme, \r\n.\r\n.\r\n.\r\n\r\n```"}}
{"actor":{"display_login":"iTaa"}}