{"action":"created","issue":{"url":"https://api.github.com/repos/pypa/pip/issues/3666","repository_url":"https://api.github.com/repos/pypa/pip","labels_url":"https://api.github.com/repos/pypa/pip/issues/3666/labels{/name}","comments_url":"https://api.github.com/repos/pypa/pip/issues/3666/comments","events_url":"https://api.github.com/repos/pypa/pip/issues/3666/events","html_url":"https://github.com/pypa/pip/issues/3666","id":154150138,"number":3666,"title":"Package names containing a dot don't work under DevPI","user":{"login":"grgsrs","id":1814295,"avatar_url":"https://avatars.githubusercontent.com/u/1814295?v=3","gravatar_id":"","url":"https://api.github.com/users/grgsrs","html_url":"https://github.com/grgsrs","followers_url":"https://api.github.com/users/grgsrs/followers","following_url":"https://api.github.com/users/grgsrs/following{/other_user}","gists_url":"https://api.github.com/users/grgsrs/gists{/gist_id}","starred_url":"https://api.github.com/users/grgsrs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grgsrs/subscriptions","organizations_url":"https://api.github.com/users/grgsrs/orgs","repos_url":"https://api.github.com/users/grgsrs/repos","events_url":"https://api.github.com/users/grgsrs/events{/privacy}","received_events_url":"https://api.github.com/users/grgsrs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":30,"created_at":"2016-05-11T03:00:07Z","updated_at":"2016-05-11T12:35:20Z","closed_at":null,"body":"* Pip version: 8.1.2\r\n* Python version: 2.7.11\r\n* Operating System: Linux\r\n\r\n### Description:\r\n\r\nWhen asked for a package name containing a dot version 8.1.2 of pip rewrites the package name with a dash instead (e.g. \"foo.bar\" becomes \"foo-bar\"). This seems to work fine on PyPI, but not on DevPI (we're using devpi-server-2.1.4). Downgrading to version 8.1.1 of pip resolves the problem.\r\n\r\n### What I've run:\r\n\r\n```\r\n$ virtualenv ~/v27\r\nNew python executable in /home/myname/v27/bin/python\r\nPlease make sure you remove any previous custom paths from your /home/myname/.pydistutils.cfg file.\r\nInstalling setuptools, pip, wheel...done.\r\n~\r\n$ ~/v27/bin/pip list\r\npip (8.1.2)\r\nsetuptools (21.0.0)\r\nwheel (0.29.0)\r\n~\r\n$ ~/v27/bin/pip -v -v -v install zope.interface\r\nCollecting zope.interface\r\n  1 location(s) to search for versions of zope.interface:\r\n  * http://devpi.our.domain.com/our_company/prod/+simple/zope-interface/\r\n  Getting page http://devpi.our.domain.com/our_company/prod/+simple/zope-interface/\r\n  Starting new HTTP connection (1): webproxy.our.domain.com\r\n  \"GET http://devpi.our.domain.com/our_company/prod/+simple/zope-interface/ HTTP/1.1\" 200 139\r\n  Analyzing links from page http://devpi.our.domain.com/our_company/prod/+simple/zope-interface/\r\n  Could not find a version that satisfies the requirement zope.interface (from versions: )\r\nCleaning up...\r\nNo matching distribution found for zope.interface\r\nException information:\r\nTraceback (most recent call last):\r\n  File \"/home/myname/v27/lib/python2.7/site-packages/pip/basecommand.py\", line 215, in main\r\n    status = self.run(options, args)\r\n  File \"/home/myname/v27/lib/python2.7/site-packages/pip/commands/install.py\", line 310, in run\r\n    wb.build(autobuilding=True)\r\n  File \"/home/myname/v27/lib/python2.7/site-packages/pip/wheel.py\", line 750, in build\r\n    self.requirement_set.prepare_files(self.finder)\r\n  File \"/home/myname/v27/lib/python2.7/site-packages/pip/req/req_set.py\", line 370, in prepare_files\r\n    ignore_dependencies=self.ignore_dependencies))\r\n  File \"/home/myname/v27/lib/python2.7/site-packages/pip/req/req_set.py\", line 522, in _prepare_file\r\n    finder, self.upgrade, require_hashes)\r\n  File \"/home/myname/v27/lib/python2.7/site-packages/pip/req/req_install.py\", line 268, in populate_link\r\n    self.link = finder.find_requirement(self, upgrade)\r\n  File \"/home/myname/v27/lib/python2.7/site-packages/pip/index.py\", line 491, in find_requirement\r\n    'No matching distribution found for %s' % req\r\nDistributionNotFound: No matching distribution found for zope.interface\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/pypa/pip/issues/comments/218446073","html_url":"https://github.com/pypa/pip/issues/3666#issuecomment-218446073","issue_url":"https://api.github.com/repos/pypa/pip/issues/3666","id":218446073,"user":{"login":"tobias-9","id":18613585,"avatar_url":"https://avatars.githubusercontent.com/u/18613585?v=3","gravatar_id":"","url":"https://api.github.com/users/tobias-9","html_url":"https://github.com/tobias-9","followers_url":"https://api.github.com/users/tobias-9/followers","following_url":"https://api.github.com/users/tobias-9/following{/other_user}","gists_url":"https://api.github.com/users/tobias-9/gists{/gist_id}","starred_url":"https://api.github.com/users/tobias-9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobias-9/subscriptions","organizations_url":"https://api.github.com/users/tobias-9/orgs","repos_url":"https://api.github.com/users/tobias-9/repos","events_url":"https://api.github.com/users/tobias-9/events{/privacy}","received_events_url":"https://api.github.com/users/tobias-9/received_events","type":"User","site_admin":false},"created_at":"2016-05-11T12:35:20Z","updated_at":"2016-05-11T12:35:20Z","body":"Firstly, having NEVER experienced a warning in regard to \".\" in package names, this effective pulling the plug is pretty bad.\r\n\r\nSecondly, while PyPI still has packages using the \".\" pip should allow for it.  Goto\r\n\r\nhttps://pypi.python.org/pypi/zope.interface\r\n\r\nvs\r\n\r\nhttps://pypi.python.org/pypi/zope-interface\r\n\r\nNotice where you redirect in the 2nd case.\r\n\r\nI must say I believe PEP 503's forcing of \"-\" to be the effective \"separator\" in package names to be a cause of confusion, if not simply wrong.  Reasons:\r\n\r\n- \"-\" is used to separate \"major\" parts of the package file - eg, name, version, py versions; notice the \".\" separators in the versioning scheme after all!\r\n- The \".\" in package names is also better aligned with how the package will actually be used:\r\nfrom zope.interface import registry\r\n- PEP 426 allows for \".\" (and \"-\" and \"_\"); let it be the author's choice if it's accepted character (same for lowercasing)"}}