{"action":"created","issue":{"url":"https://api.github.com/repos/mitsuhiko/platter/issues/7","labels_url":"https://api.github.com/repos/mitsuhiko/platter/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/mitsuhiko/platter/issues/7/comments","events_url":"https://api.github.com/repos/mitsuhiko/platter/issues/7/events","html_url":"https://github.com/mitsuhiko/platter/issues/7","id":58028570,"number":7,"title":"WAR implementation","user":{"login":"dcramer","id":23610,"avatar_url":"https://avatars.githubusercontent.com/u/23610?v=3","gravatar_id":"","url":"https://api.github.com/users/dcramer","html_url":"https://github.com/dcramer","followers_url":"https://api.github.com/users/dcramer/followers","following_url":"https://api.github.com/users/dcramer/following{/other_user}","gists_url":"https://api.github.com/users/dcramer/gists{/gist_id}","starred_url":"https://api.github.com/users/dcramer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcramer/subscriptions","organizations_url":"https://api.github.com/users/dcramer/orgs","repos_url":"https://api.github.com/users/dcramer/repos","events_url":"https://api.github.com/users/dcramer/events{/privacy}","received_events_url":"https://api.github.com/users/dcramer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-18T05:29:18Z","updated_at":"2015-02-18T17:17:16Z","closed_at":null,"body":"I've wanted this for ages, and platter seems to be in the position where it could either offer it as a feature, or it could simply be an underlying tool utilized in solving it.\r\n\r\nSomeone said this jokingly the other day, but for now I'm going to call it a big wheel, but really it's just a zip file with ``__main__`` defined.\r\n\r\nTo illustrate this concept better, let me use Sentry using the hypothetical API:\r\n\r\n```\r\n$ platter build ~/Development/getsentry --pip-option=\"-r requirements.txt\" --entry-point=sentry.utils.runner:main\r\n=> sentry.bwhl\r\n\r\n$ python sentry.bwhl --help\r\nusage: sentry.tgz [--config=/path/to/settings.py] [command] [options]\r\n```\r\n\r\nI think it's pretty clear cut how this could happen, the primary thing being platter assisting with generation of the ``__main__`` file and promoting this as a concept."},"comment":{"url":"https://api.github.com/repos/mitsuhiko/platter/issues/comments/74905168","html_url":"https://github.com/mitsuhiko/platter/issues/7#issuecomment-74905168","issue_url":"https://api.github.com/repos/mitsuhiko/platter/issues/7","id":74905168,"user":{"login":"dcramer","id":23610,"avatar_url":"https://avatars.githubusercontent.com/u/23610?v=3","gravatar_id":"","url":"https://api.github.com/users/dcramer","html_url":"https://github.com/dcramer","followers_url":"https://api.github.com/users/dcramer/followers","following_url":"https://api.github.com/users/dcramer/following{/other_user}","gists_url":"https://api.github.com/users/dcramer/gists{/gist_id}","starred_url":"https://api.github.com/users/dcramer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcramer/subscriptions","organizations_url":"https://api.github.com/users/dcramer/orgs","repos_url":"https://api.github.com/users/dcramer/repos","events_url":"https://api.github.com/users/dcramer/events{/privacy}","received_events_url":"https://api.github.com/users/dcramer/received_events","type":"User","site_admin":false},"created_at":"2015-02-18T17:17:16Z","updated_at":"2015-02-18T17:17:16Z","body":"If only pex didn't require this arbitrary format. Ideally what would happen is it could create a wrapper around the package. Giving you some kind of environment that is just a virtualenv of sorts, builds the __main__.py file for you, installs all of the dependencies, and then tarballs it. Asking someone to install pex to run a program is just as easy as asking them to install pip/requirements."}}