{"action":"created","issue":{"url":"https://api.github.com/repos/translate/pootle/issues/3569","labels_url":"https://api.github.com/repos/translate/pootle/issues/3569/labels{/name}","comments_url":"https://api.github.com/repos/translate/pootle/issues/3569/comments","events_url":"https://api.github.com/repos/translate/pootle/issues/3569/events","html_url":"https://github.com/translate/pootle/issues/3569","id":56100869,"number":3569,"title":"Drop __version__.py and instead follow PEP 440 and expose git version hash","user":{"login":"dwaynebailey","id":647438,"avatar_url":"https://avatars.githubusercontent.com/u/647438?v=3","gravatar_id":"","url":"https://api.github.com/users/dwaynebailey","html_url":"https://github.com/dwaynebailey","followers_url":"https://api.github.com/users/dwaynebailey/followers","following_url":"https://api.github.com/users/dwaynebailey/following{/other_user}","gists_url":"https://api.github.com/users/dwaynebailey/gists{/gist_id}","starred_url":"https://api.github.com/users/dwaynebailey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwaynebailey/subscriptions","organizations_url":"https://api.github.com/users/dwaynebailey/orgs","repos_url":"https://api.github.com/users/dwaynebailey/repos","events_url":"https://api.github.com/users/dwaynebailey/events{/privacy}","received_events_url":"https://api.github.com/users/dwaynebailey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/translate/pootle/milestones/5","labels_url":"https://api.github.com/repos/translate/pootle/milestones/5/labels","id":733266,"number":5,"title":"future","description":"","creator":{"login":"jleclanche","id":235410,"avatar_url":"https://avatars.githubusercontent.com/u/235410?v=3","gravatar_id":"","url":"https://api.github.com/users/jleclanche","html_url":"https://github.com/jleclanche","followers_url":"https://api.github.com/users/jleclanche/followers","following_url":"https://api.github.com/users/jleclanche/following{/other_user}","gists_url":"https://api.github.com/users/jleclanche/gists{/gist_id}","starred_url":"https://api.github.com/users/jleclanche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jleclanche/subscriptions","organizations_url":"https://api.github.com/users/jleclanche/orgs","repos_url":"https://api.github.com/users/jleclanche/repos","events_url":"https://api.github.com/users/jleclanche/events{/privacy}","received_events_url":"https://api.github.com/users/jleclanche/received_events","type":"User","site_admin":false},"open_issues":31,"closed_issues":20,"state":"open","created_at":"2014-07-27T15:33:31Z","updated_at":"2015-01-30T23:52:20Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-01-30T23:52:20Z","updated_at":"2015-02-02T11:46:12Z","closed_at":null,"body":"Following [PEP 440](https://www.python.org/dev/peps/pep-0440/) was highlighted by @julen as a good improvement to Pootle version info in #3565 and repeated below:\r\n\r\n> Can we use the occasion to be more (*de facto*) \"standard\" and put the version information in `pootle.__init__`? `__version__` should be a module/package attribute as specified by PEP8, not a module.\r\n> \r\n> Also ensuring the version scheme matches [PEP 440](https://www.python.org/dev/peps/pep-0440/) wouldn't hurt. Defining the version information in the tuple should be enough, then the string can be generated from there ([see how Django does it](https://github.com/django/django/blob/stable/1.7.x/django/utils/version.py)).\r\n> \r\n> ...[W]e'd very likely start using this module if we can directly get the git revision/branch information from there ([see example](https://github.com/getsentry/sentry/blob/master/src/sentry/__init__.py)). We currently do some deployment hackery to get this information for our staging server (see the ribbon on the upper-right corner)."},"comment":{"url":"https://api.github.com/repos/translate/pootle/issues/comments/72444008","html_url":"https://github.com/translate/pootle/issues/3569#issuecomment-72444008","issue_url":"https://api.github.com/repos/translate/pootle/issues/3569","id":72444008,"user":{"login":"unho","id":939880,"avatar_url":"https://avatars.githubusercontent.com/u/939880?v=3","gravatar_id":"","url":"https://api.github.com/users/unho","html_url":"https://github.com/unho","followers_url":"https://api.github.com/users/unho/followers","following_url":"https://api.github.com/users/unho/following{/other_user}","gists_url":"https://api.github.com/users/unho/gists{/gist_id}","starred_url":"https://api.github.com/users/unho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unho/subscriptions","organizations_url":"https://api.github.com/users/unho/orgs","repos_url":"https://api.github.com/users/unho/repos","events_url":"https://api.github.com/users/unho/events{/privacy}","received_events_url":"https://api.github.com/users/unho/received_events","type":"User","site_admin":false},"created_at":"2015-02-02T11:46:12Z","updated_at":"2015-02-02T11:46:12Z","body":"I think this is the right time to perform this change."}}