{"action":"created","issue":{"url":"https://api.github.com/repos/Julian/jsonschema/issues/244","repository_url":"https://api.github.com/repos/Julian/jsonschema","labels_url":"https://api.github.com/repos/Julian/jsonschema/issues/244/labels{/name}","comments_url":"https://api.github.com/repos/Julian/jsonschema/issues/244/comments","events_url":"https://api.github.com/repos/Julian/jsonschema/issues/244/events","html_url":"https://github.com/Julian/jsonschema/issues/244","id":100173657,"number":244,"title":"Unable to correctly extract version from pypi distributed tarball","user":{"login":"harlowja","id":970458,"avatar_url":"https://avatars.githubusercontent.com/u/970458?v=3","gravatar_id":"","url":"https://api.github.com/users/harlowja","html_url":"https://github.com/harlowja","followers_url":"https://api.github.com/users/harlowja/followers","following_url":"https://api.github.com/users/harlowja/following{/other_user}","gists_url":"https://api.github.com/users/harlowja/gists{/gist_id}","starred_url":"https://api.github.com/users/harlowja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harlowja/subscriptions","organizations_url":"https://api.github.com/users/harlowja/orgs","repos_url":"https://api.github.com/users/harlowja/repos","events_url":"https://api.github.com/users/harlowja/events{/privacy}","received_events_url":"https://api.github.com/users/harlowja/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2015-08-10T21:33:17Z","updated_at":"2016-08-28T02:33:39Z","closed_at":"2016-08-28T02:33:39Z","body":"Trying to use jsonschema's version support, I am unable to actually get the version number.\r\n\r\nHere is what I did to reproduce this:\r\n\r\nSeems like something is busted here (wheels seem to work):\r\n\r\n```\r\n$ virtualenv-2.7 .venv;\r\nNew python executable in .venv/bin/python\r\nInstalling setuptools, pip, wheel...done.\r\nharlowja@buildingbuild:/tmp/d$ source .venv/bin/activate\r\n(.venv)harlowja@buildingbuild:/tmp/d$ ls\r\n(.venv)harlowja@buildingbuild:/tmp/d$ wget https://pypi.python.org/packages/source/j/jsonschema/jsonschema-2.5.1.tar.gz#md5=374e848fdb69a3ce8b7e778b47c30640 --no-check-certificate\r\n--2015-08-10 14:32:04--  https://pypi.python.org/packages/source/j/jsonschema/jsonschema-2.5.1.tar.gz\r\nResolving pypi.python.org (pypi.python.org)... 199.27.79.223\r\nConnecting to pypi.python.org (pypi.python.org)|199.27.79.223|:443... connected.\r\nHTTP request sent, awaiting response... 200 OK\r\nLength: 50855 (50K) [application/octet-stream]\r\nSaving to: ‘jsonschema-2.5.1.tar.gz’\r\n\r\n100%[==================================================================================================================================>] 50,855      --.-K/s   in 0.03s   \r\n\r\n2015-08-10 14:32:04 (1.93 MB/s) - ‘jsonschema-2.5.1.tar.gz’ saved [50855/50855]\r\n\r\n(.venv)harlowja@buildingbuild:/tmp/d$ tar -xzvf jsonschema-2.5.1.tar.gz \r\njsonschema-2.5.1/\r\njsonschema-2.5.1/CHANGELOG.rst\r\njsonschema-2.5.1/COPYING\r\njsonschema-2.5.1/json/\r\njsonschema-2.5.1/json/.gitignore\r\njsonschema-2.5.1/json/.travis.yml\r\njsonschema-2.5.1/json/bin/\r\njsonschema-2.5.1/json/bin/jsonschema_suite\r\njsonschema-2.5.1/json/LICENSE\r\njsonschema-2.5.1/json/README.md\r\njsonschema-2.5.1/json/remotes/\r\njsonschema-2.5.1/json/remotes/folder/\r\njsonschema-2.5.1/json/remotes/folder/folderInteger.json\r\njsonschema-2.5.1/json/remotes/integer.json\r\njsonschema-2.5.1/json/remotes/subSchemas.json\r\njsonschema-2.5.1/json/tests/\r\njsonschema-2.5.1/json/tests/draft3/\r\njsonschema-2.5.1/json/tests/draft3/additionalItems.json\r\njsonschema-2.5.1/json/tests/draft3/additionalProperties.json\r\njsonschema-2.5.1/json/tests/draft3/default.json\r\njsonschema-2.5.1/json/tests/draft3/dependencies.json\r\njsonschema-2.5.1/json/tests/draft3/disallow.json\r\njsonschema-2.5.1/json/tests/draft3/divisibleBy.json\r\njsonschema-2.5.1/json/tests/draft3/enum.json\r\njsonschema-2.5.1/json/tests/draft3/extends.json\r\njsonschema-2.5.1/json/tests/draft3/items.json\r\njsonschema-2.5.1/json/tests/draft3/maximum.json\r\njsonschema-2.5.1/json/tests/draft3/maxItems.json\r\njsonschema-2.5.1/json/tests/draft3/maxLength.json\r\njsonschema-2.5.1/json/tests/draft3/minimum.json\r\njsonschema-2.5.1/json/tests/draft3/minItems.json\r\njsonschema-2.5.1/json/tests/draft3/minLength.json\r\njsonschema-2.5.1/json/tests/draft3/optional/\r\njsonschema-2.5.1/json/tests/draft3/optional/bignum.json\r\njsonschema-2.5.1/json/tests/draft3/optional/format.json\r\njsonschema-2.5.1/json/tests/draft3/optional/jsregex.json\r\njsonschema-2.5.1/json/tests/draft3/optional/zeroTerminatedFloats.json\r\njsonschema-2.5.1/json/tests/draft3/pattern.json\r\njsonschema-2.5.1/json/tests/draft3/patternProperties.json\r\njsonschema-2.5.1/json/tests/draft3/properties.json\r\njsonschema-2.5.1/json/tests/draft3/ref.json\r\njsonschema-2.5.1/json/tests/draft3/refRemote.json\r\njsonschema-2.5.1/json/tests/draft3/required.json\r\njsonschema-2.5.1/json/tests/draft3/type.json\r\njsonschema-2.5.1/json/tests/draft3/uniqueItems.json\r\njsonschema-2.5.1/json/tests/draft4/\r\njsonschema-2.5.1/json/tests/draft4/additionalItems.json\r\njsonschema-2.5.1/json/tests/draft4/additionalProperties.json\r\njsonschema-2.5.1/json/tests/draft4/allOf.json\r\njsonschema-2.5.1/json/tests/draft4/anyOf.json\r\njsonschema-2.5.1/json/tests/draft4/default.json\r\njsonschema-2.5.1/json/tests/draft4/definitions.json\r\njsonschema-2.5.1/json/tests/draft4/dependencies.json\r\njsonschema-2.5.1/json/tests/draft4/enum.json\r\njsonschema-2.5.1/json/tests/draft4/items.json\r\njsonschema-2.5.1/json/tests/draft4/maximum.json\r\njsonschema-2.5.1/json/tests/draft4/maxItems.json\r\njsonschema-2.5.1/json/tests/draft4/maxLength.json\r\njsonschema-2.5.1/json/tests/draft4/maxProperties.json\r\njsonschema-2.5.1/json/tests/draft4/minimum.json\r\njsonschema-2.5.1/json/tests/draft4/minItems.json\r\njsonschema-2.5.1/json/tests/draft4/minLength.json\r\njsonschema-2.5.1/json/tests/draft4/minProperties.json\r\njsonschema-2.5.1/json/tests/draft4/multipleOf.json\r\njsonschema-2.5.1/json/tests/draft4/not.json\r\njsonschema-2.5.1/json/tests/draft4/oneOf.json\r\njsonschema-2.5.1/json/tests/draft4/optional/\r\njsonschema-2.5.1/json/tests/draft4/optional/bignum.json\r\njsonschema-2.5.1/json/tests/draft4/optional/format.json\r\njsonschema-2.5.1/json/tests/draft4/optional/zeroTerminatedFloats.json\r\njsonschema-2.5.1/json/tests/draft4/pattern.json\r\njsonschema-2.5.1/json/tests/draft4/patternProperties.json\r\njsonschema-2.5.1/json/tests/draft4/properties.json\r\njsonschema-2.5.1/json/tests/draft4/ref.json\r\njsonschema-2.5.1/json/tests/draft4/refRemote.json\r\njsonschema-2.5.1/json/tests/draft4/required.json\r\njsonschema-2.5.1/json/tests/draft4/type.json\r\njsonschema-2.5.1/json/tests/draft4/uniqueItems.json\r\njsonschema-2.5.1/jsonschema/\r\njsonschema-2.5.1/jsonschema/__init__.py\r\njsonschema-2.5.1/jsonschema/__main__.py\r\njsonschema-2.5.1/jsonschema/_format.py\r\njsonschema-2.5.1/jsonschema/_reflect.py\r\njsonschema-2.5.1/jsonschema/_utils.py\r\njsonschema-2.5.1/jsonschema/_validators.py\r\njsonschema-2.5.1/jsonschema/_version.py\r\njsonschema-2.5.1/jsonschema/cli.py\r\njsonschema-2.5.1/jsonschema/compat.py\r\njsonschema-2.5.1/jsonschema/exceptions.py\r\njsonschema-2.5.1/jsonschema/schemas/\r\njsonschema-2.5.1/jsonschema/schemas/draft3.json\r\njsonschema-2.5.1/jsonschema/schemas/draft4.json\r\njsonschema-2.5.1/jsonschema/tests/\r\njsonschema-2.5.1/jsonschema/tests/__init__.py\r\njsonschema-2.5.1/jsonschema/tests/compat.py\r\njsonschema-2.5.1/jsonschema/tests/test_cli.py\r\njsonschema-2.5.1/jsonschema/tests/test_exceptions.py\r\njsonschema-2.5.1/jsonschema/tests/test_format.py\r\njsonschema-2.5.1/jsonschema/tests/test_jsonschema_test_suite.py\r\njsonschema-2.5.1/jsonschema/tests/test_validators.py\r\njsonschema-2.5.1/jsonschema/validators.py\r\njsonschema-2.5.1/jsonschema.egg-info/\r\njsonschema-2.5.1/jsonschema.egg-info/dependency_links.txt\r\njsonschema-2.5.1/jsonschema.egg-info/entry_points.txt\r\njsonschema-2.5.1/jsonschema.egg-info/pbr.json\r\njsonschema-2.5.1/jsonschema.egg-info/PKG-INFO\r\njsonschema-2.5.1/jsonschema.egg-info/requires.txt\r\njsonschema-2.5.1/jsonschema.egg-info/SOURCES.txt\r\njsonschema-2.5.1/jsonschema.egg-info/top_level.txt\r\njsonschema-2.5.1/MANIFEST.in\r\njsonschema-2.5.1/PKG-INFO\r\njsonschema-2.5.1/README.rst\r\njsonschema-2.5.1/setup.cfg\r\njsonschema-2.5.1/setup.py\r\njsonschema-2.5.1/tox.ini\r\njsonschema-2.5.1/version.txt\r\n(.venv)harlowja@buildingbuild:/tmp/d$ cd jsonschema-2.5.1/\r\n(.venv)harlowja@buildingbuild:/tmp/d/jsonschema-2.5.1$ ls\r\nCHANGELOG.rst  COPYING  json  jsonschema  jsonschema.egg-info  MANIFEST.in  PKG-INFO  README.rst  setup.cfg  setup.py  tox.ini  version.txt\r\n(.venv)harlowja@buildingbuild:/tmp/d/jsonschema-2.5.1$ python setup.py --version\r\nzip_safe flag not set; analyzing archive contents...\r\n\r\nInstalled /tmp/d/jsonschema-2.5.1/.eggs/vcversioner-2.14.0.0-py2.7.egg\r\nTraceback (most recent call last):\r\n  File \"setup.py\", line 44, in <module>\r\n    vcversioner={\"version_module_paths\" : [\"jsonschema/_version.py\"]},\r\n  File \"/usr/lib/python2.7/distutils/core.py\", line 137, in setup\r\n    ok = dist.parse_command_line()\r\n  File \"/tmp/d/.venv/local/lib/python2.7/site-packages/setuptools/dist.py\", line 299, in parse_command_line\r\n    result = _Distribution.parse_command_line(self)\r\n  File \"/usr/lib/python2.7/distutils/dist.py\", line 459, in parse_command_line\r\n    args = parser.getopt(args=self.script_args, object=self)\r\n  File \"/usr/lib/python2.7/distutils/fancy_getopt.py\", line 285, in getopt\r\n    val = getattr(object, attr, 0) + 1\r\nTypeError: coercing to Unicode: need string or buffer, int found\r\n```"},"comment":{"url":"https://api.github.com/repos/Julian/jsonschema/issues/comments/242952450","html_url":"https://github.com/Julian/jsonschema/issues/244#issuecomment-242952450","issue_url":"https://api.github.com/repos/Julian/jsonschema/issues/244","id":242952450,"user":{"login":"Julian","id":329822,"avatar_url":"https://avatars.githubusercontent.com/u/329822?v=3","gravatar_id":"","url":"https://api.github.com/users/Julian","html_url":"https://github.com/Julian","followers_url":"https://api.github.com/users/Julian/followers","following_url":"https://api.github.com/users/Julian/following{/other_user}","gists_url":"https://api.github.com/users/Julian/gists{/gist_id}","starred_url":"https://api.github.com/users/Julian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Julian/subscriptions","organizations_url":"https://api.github.com/users/Julian/orgs","repos_url":"https://api.github.com/users/Julian/repos","events_url":"https://api.github.com/users/Julian/events{/privacy}","received_events_url":"https://api.github.com/users/Julian/received_events","type":"User","site_admin":false},"created_at":"2016-08-28T02:33:39Z","updated_at":"2016-08-28T02:33:39Z","body":"This is (as of a bit ago) now fixed upstream. Sorry for the delay."}}
{"actor":{"display_login":"Julian"}}