{"action":"created","issue":{"url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/issues/239","repository_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup","labels_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/issues/239/labels{/name}","comments_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/issues/239/comments","events_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/issues/239/events","html_url":"https://github.com/MechanicalSoup/MechanicalSoup/issues/239","id":359261440,"node_id":"MDU6SXNzdWUzNTkyNjE0NDA=","number":239,"title":"Issues with releases and assets","user":{"login":"hemberger","id":846186,"node_id":"MDQ6VXNlcjg0NjE4Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/846186?v=4","gravatar_id":"","url":"https://api.github.com/users/hemberger","html_url":"https://github.com/hemberger","followers_url":"https://api.github.com/users/hemberger/followers","following_url":"https://api.github.com/users/hemberger/following{/other_user}","gists_url":"https://api.github.com/users/hemberger/gists{/gist_id}","starred_url":"https://api.github.com/users/hemberger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hemberger/subscriptions","organizations_url":"https://api.github.com/users/hemberger/orgs","repos_url":"https://api.github.com/users/hemberger/repos","events_url":"https://api.github.com/users/hemberger/events{/privacy}","received_events_url":"https://api.github.com/users/hemberger/received_events","type":"User","site_admin":false},"labels":[{"id":1219983835,"node_id":"MDU6TGFiZWwxMjE5OTgzODM1","url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/labels/easy?","name":"easy?","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-09-11T23:34:03Z","updated_at":"2019-03-20T21:27:34Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"1. PyPI does not allow links to local assets in its documentation, so the logo shows up as a missing image.\r\n2. ~~The inclusion of assets in our release file has doubled its size (from 25K to 50K).~~ (edit: actually, no)\r\n\r\nFrom other repositories I have inspected, the README typically has a link to the content on github rather than a local path.\r\n\r\n@moy How do you feel about excluding `assets` from the release and linking to our assets on github instead? This probably deserves a post1 release."},"comment":{"url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/issues/comments/475035388","html_url":"https://github.com/MechanicalSoup/MechanicalSoup/issues/239#issuecomment-475035388","issue_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/issues/239","id":475035388,"node_id":"MDEyOklzc3VlQ29tbWVudDQ3NTAzNTM4OA==","user":{"login":"QuentinSanchez","id":15666541,"node_id":"MDQ6VXNlcjE1NjY2NTQx","avatar_url":"https://avatars2.githubusercontent.com/u/15666541?v=4","gravatar_id":"","url":"https://api.github.com/users/QuentinSanchez","html_url":"https://github.com/QuentinSanchez","followers_url":"https://api.github.com/users/QuentinSanchez/followers","following_url":"https://api.github.com/users/QuentinSanchez/following{/other_user}","gists_url":"https://api.github.com/users/QuentinSanchez/gists{/gist_id}","starred_url":"https://api.github.com/users/QuentinSanchez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuentinSanchez/subscriptions","organizations_url":"https://api.github.com/users/QuentinSanchez/orgs","repos_url":"https://api.github.com/users/QuentinSanchez/repos","events_url":"https://api.github.com/users/QuentinSanchez/events{/privacy}","received_events_url":"https://api.github.com/users/QuentinSanchez/received_events","type":"User","site_admin":false},"created_at":"2019-03-20T21:27:34Z","updated_at":"2019-03-20T21:27:34Z","author_association":"NONE","body":"I've made this code in order to locate the text after \"image::\" in the readme.\r\nAnd then concatenate the absolute link to the relative one already there.\r\n\r\n\r\n```\r\nreg  =r'image::(.*)'\r\nrelativeLink= re.search(reg, readme)\r\nrelativeLink = relativeLink.group(0)\r\n\r\nabsoluteLink=relativeLink.replace(\"whitespace\",\"whitespace \r\nhttps://raw.githubusercontent.com/MechanicalSoup/MechanicalSoup/master\")\r\nres = re.sub(reg, absoluteLink, readme)\r\n```\r\n \"whitespace\" are real whitespace in the code, but i have issues including them in this git message( they create line break).\r\n\r\n\r\n\r\nSo i end up with this line in the readme : \r\n\r\n..image:: https://raw.githubusercontent.com/MechanicalSoup/MechanicalSoup/master/assets/mechanical-soup-logo.png\r\n\r\nI'am currently trying to set up the test on test.pypi.\r\n\r\n"}}
{"actor":{"display_login":"QuentinSanchez"}}