tuna / issues

Code Unrelated Issues
362 stars 28 forks source link

pypi 镜像源缺少pre-release版本 #520

Closed ficapy closed 5 years ago

ficapy commented 5 years ago

使用pypi镜像源无法安装预发布版本,能够添加支持吗?

pip install psqlparse==1.0rc6 -i https://mirrors.ustc.edu.cn/pypi/web/simple

相关页面 https://pypi.org/project/psqlparse/1.0rc6/#history

shitou1992 commented 5 years ago

估计没同步完成吧,看json里是有的,packages里的确没有: ‘’‘ "1.0rc6": [ { "comment_text": "", "digests": { "md5": "21597894a64675375c52489e8072ff15", "sha256": "a4b2f23a262eab3071e7f042f508147cde494838e60d1dd05ec036f8b6dad302" }, "downloads": -1, "filename": "psqlparse-1.0rc6.tar.gz", "has_sig": false, "md5_digest": "21597894a64675375c52489e8072ff15", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 36839, "upload_time": "2019-03-03T01:58:41", "url": "https://files.pythonhosted.org/packages/71/33/f18f42c43b9c5d8ca4c9d2f3f3cfb4db139572b399684db22b94e795a26a/psqlparse-1.0rc6.tar.gz" } ] }, ‘’’

ficapy commented 5 years ago

估计没同步完成吧,看 json 里是有的,packages 里的确没有:

"1.0rc6": [
{
"comment_text": "",
"digests": {
"md5": "21597894a64675375c52489e8072ff15",
"sha256": "a4b2f23a262eab3071e7f042f508147cde494838e60d1dd05ec036f8b6dad302"
},
"downloads": -1,
"filename": "psqlparse-1.0rc6.tar.gz",
"has_sig": false,
"md5_digest": "21597894a64675375c52489e8072ff15",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 36839,
"upload_time": "2019-03-03T01:58:41",
"url": "https://files.pythonhosted.org/packages/71/33/f18f42c43b9c5d8ca4c9d2f3f3cfb4db139572b399684db22b94e795a26a/psqlparse-1.0rc6.tar.gz"
}
]
},

不好意思,没明白这个package.json是从哪里来的,和pypi镜像同步存在什么关系 pip安装的时候访问html页面依次解析URL得到版本号,如果匹配则进行下载安装

zmwangx commented 5 years ago

遇到了同样的问题:https://pypi.tuna.tsinghua.edu.cn/simple/black/ 为空(black没有stable,只有prerelease)。JSON API里确实可以看到release:https://pypi.tuna.tsinghua.edu.cn/pypi/black/json ,然而应该不相干吧,因为URL都是files.pythonhosted.org的,跟不用镜像没有区别。我觉得https://pypi.tuna.tsinghua.edu.cn/pypi/ 就是个反向代理?(更新:显然不是反向代理,只是把json下载下来了。)反正PEP381并不要求mirror /pypi,而且pip用的是/simple,这JSON API也没什么用。

zmwangx commented 5 years ago

另外,

https://mirrors.ustc.edu.cn/pypi/web/simple

这是中科大的镜像啊,你好像汇报错地方了……虽然是同一个问题。

c4yg70 commented 5 years ago

另外,

https://mirrors.ustc.edu.cn/pypi/web/simple

这是中科大的镜像啊,你好像汇报错地方了……虽然是同一个问题。

科大镜像现在的pypi源的http服务是重定向到tuna的,所以也可以算tuna的问题吧

z4yx commented 5 years ago

现在这两个包看起来好了。 从pypi的cdn下载文件经常失败,所以会出现文件少的情况。bandersnatch同步工具也不够鲁棒,只能遇到了人工处理。