{"action":"created","issue":{"url":"https://api.github.com/repos/mathcamp/pypicloud/issues/59","labels_url":"https://api.github.com/repos/mathcamp/pypicloud/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/mathcamp/pypicloud/issues/59/comments","events_url":"https://api.github.com/repos/mathcamp/pypicloud/issues/59/events","html_url":"https://github.com/mathcamp/pypicloud/issues/59","id":107542445,"number":59,"title":"Uploading arbitrary files","user":{"login":"zupo","id":311580,"avatar_url":"https://avatars.githubusercontent.com/u/311580?v=3","gravatar_id":"","url":"https://api.github.com/users/zupo","html_url":"https://github.com/zupo","followers_url":"https://api.github.com/users/zupo/followers","following_url":"https://api.github.com/users/zupo/following{/other_user}","gists_url":"https://api.github.com/users/zupo/gists{/gist_id}","starred_url":"https://api.github.com/users/zupo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zupo/subscriptions","organizations_url":"https://api.github.com/users/zupo/orgs","repos_url":"https://api.github.com/users/zupo/repos","events_url":"https://api.github.com/users/zupo/events{/privacy}","received_events_url":"https://api.github.com/users/zupo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-21T15:51:15Z","updated_at":"2015-09-22T05:05:45Z","closed_at":null,"body":"My use case: along with eggs that contain our cross-project code, we need to ship a requirements.txt that lists exact dependencies for these eggs. Currently we handle this use case by uploading requirements.txt directly into S3 and giving it a public-read permission. This approach is sub-optimal due to needing an additional manual step after a release that is different than the main step of upload and egg, and because the versions file is then world-readable.\r\n\r\nSo I'd like to add an ability to upload arbitrary files into folders containing eggs on pypicloud. I just want to see if there are any comments or blockers before I start implementation ..."},"comment":{"url":"https://api.github.com/repos/mathcamp/pypicloud/issues/comments/142182764","html_url":"https://github.com/mathcamp/pypicloud/issues/59#issuecomment-142182764","issue_url":"https://api.github.com/repos/mathcamp/pypicloud/issues/59","id":142182764,"user":{"login":"stevearc","id":506791,"avatar_url":"https://avatars.githubusercontent.com/u/506791?v=3","gravatar_id":"","url":"https://api.github.com/users/stevearc","html_url":"https://github.com/stevearc","followers_url":"https://api.github.com/users/stevearc/followers","following_url":"https://api.github.com/users/stevearc/following{/other_user}","gists_url":"https://api.github.com/users/stevearc/gists{/gist_id}","starred_url":"https://api.github.com/users/stevearc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevearc/subscriptions","organizations_url":"https://api.github.com/users/stevearc/orgs","repos_url":"https://api.github.com/users/stevearc/repos","events_url":"https://api.github.com/users/stevearc/events{/privacy}","received_events_url":"https://api.github.com/users/stevearc/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T05:05:45Z","updated_at":"2015-09-22T05:05:45Z","body":"I think that serving arbitrary files off of S3 is beyond the scope of what pypicloud should do. You are of course free to fork and do whatever you want, but I probably won't want to merge that functionality back into this repo.\r\n\r\nWith the caveat that I'm not at all familiar with your code or process, it seems like you could accomplish what you want without making edits to pypicloud. Could you zip up the requirements.txt file in the egg file?\r\n\r\nIf you do decide that this is absolutely necessary functionality, I would steer you in two directions that may be easier. First: you could make a server that sits next to pypicloud and does what you need. It would be small, fast to write, easy to reason about, and you wouldn't need to worry about how to hook it into any of the existing pypicloud code. Second: instead of uploading arbitrary files, you could add support for setting metadata on uploaded files. Then you could upload your requirements.txt to S3 and set a signed S3 url into the metadata of the appropriate packages. If you're going to edit the pypicloud source, I think that would be a much easier task."}}