{"action":"created","issue":{"url":"https://api.github.com/repos/linkedin/pygradle/issues/150","repository_url":"https://api.github.com/repos/linkedin/pygradle","labels_url":"https://api.github.com/repos/linkedin/pygradle/issues/150/labels{/name}","comments_url":"https://api.github.com/repos/linkedin/pygradle/issues/150/comments","events_url":"https://api.github.com/repos/linkedin/pygradle/issues/150/events","html_url":"https://github.com/linkedin/pygradle/pull/150","id":239880217,"number":150,"title":"Support a configurable set of whitelisted and default Python versions","user":{"login":"warsaw","id":210184,"avatar_url":"https://avatars0.githubusercontent.com/u/210184?v=4","gravatar_id":"","url":"https://api.github.com/users/warsaw","html_url":"https://github.com/warsaw","followers_url":"https://api.github.com/users/warsaw/followers","following_url":"https://api.github.com/users/warsaw/following{/other_user}","gists_url":"https://api.github.com/users/warsaw/gists{/gist_id}","starred_url":"https://api.github.com/users/warsaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/warsaw/subscriptions","organizations_url":"https://api.github.com/users/warsaw/orgs","repos_url":"https://api.github.com/users/warsaw/repos","events_url":"https://api.github.com/users/warsaw/events{/privacy}","received_events_url":"https://api.github.com/users/warsaw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2017-06-30T20:24:05Z","updated_at":"2017-07-18T19:47:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/linkedin/pygradle/pulls/150","html_url":"https://github.com/linkedin/pygradle/pull/150","diff_url":"https://github.com/linkedin/pygradle/pull/150.diff","patch_url":"https://github.com/linkedin/pygradle/pull/150.patch"},"body":"This branch intends to add support for whitelisting acceptable Python versions.  Let's say your product claims to support Python 2.6, but Python 2.6 is not a supported version for pygradle.  If `python2.6` is found on your `$PATH`, it may still get picked up and used.\r\n\r\nThis branch adds an explicit list of acceptable Python versions, and throws an exception if a product claims to use one that is not in the list.  Only Major.Minor version numbers are checked.  (There's no point IMHO to blacklist point releases.)\r\n\r\nOne key design requirement is for this plugin to come with a default set, but would allow derived plugins to modify that default set based on local site policy.  Thus `whitelistedPythonVersions` is not final.\r\n\r\n* Add a `String` array called `whitelistedPythonVersions` which contains the set\r\n  of acceptable Major.Minor Python versions.  This can be changed by consumers\r\n  if they want to support something other than the default set, which is\r\n  currently 2.6, 2.7, 3.4, 3.5, and 3.6.\r\n* In `PythonDetails.setPythonVersion()`, throw a `GradleException` if the version\r\n  being set is not in the whitelisted set.\r\n* Fix a doc typo."},"comment":{"url":"https://api.github.com/repos/linkedin/pygradle/issues/comments/316176834","html_url":"https://github.com/linkedin/pygradle/pull/150#issuecomment-316176834","issue_url":"https://api.github.com/repos/linkedin/pygradle/issues/150","id":316176834,"user":{"login":"warsaw","id":210184,"avatar_url":"https://avatars0.githubusercontent.com/u/210184?v=4","gravatar_id":"","url":"https://api.github.com/users/warsaw","html_url":"https://github.com/warsaw","followers_url":"https://api.github.com/users/warsaw/followers","following_url":"https://api.github.com/users/warsaw/following{/other_user}","gists_url":"https://api.github.com/users/warsaw/gists{/gist_id}","starred_url":"https://api.github.com/users/warsaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/warsaw/subscriptions","organizations_url":"https://api.github.com/users/warsaw/orgs","repos_url":"https://api.github.com/users/warsaw/repos","events_url":"https://api.github.com/users/warsaw/events{/privacy}","received_events_url":"https://api.github.com/users/warsaw/received_events","type":"User","site_admin":false},"created_at":"2017-07-18T19:47:22Z","updated_at":"2017-07-18T19:47:22Z","body":"Yep, I restarted the circleci check.  Let's see if it passes this time... and thanks!"}}
{"actor":{"display_login":"warsaw"}}