有一个包含多个轮子的包,用于不同的架构。 2.7 轮有问题,需要从索引中删除。
devpi remove 子命令只接受一个位置参数:
positional arguments:
spec remove info/files for a project/version/release file from
the current index. Example specs: 'pytest' or
'pytest>=2.3.5'
要求删除版本号列出所有轮子:
$ devpi remove "somepackage==1.2.3"
About to remove the following releases and distributions
version: 1.2.3
- https://devpi/x/y/+f/cafef00d/somepackage-1.2.3-268-cp27-cp27mu-linux_x86_64.whl
- https://devpi/x/y/+f/cafef00d/somepackage-1.2.3-268-cp36-cp36m-linux_x86_64.whl
Are you sure (yes/no)?
它只是提示删除全部或不删除。如何指定“规范”以仅移除 2.7 车轮?不可能只通过 ssh 进入 devpi 服务器并删除文件本身,但这会使 devpi 元数据全部搞砸,索引 View 仍然认为 wheel 存在。
devpi客户端版本为3.0.0,服务端版本为4.0.0。
请您参考如下方法:
我向项目维护者提出了这个问题,在当前版本的 devpi 中是不可能的:
https://github.com/devpi/devpi/issues/448
请参阅问题 448 以获取(非常老套的)解决方法。
