如何从版本中删除一个轮文件?

How to remove one wheel file from a release?

有一个针对不同架构构建的包含多个轮子的包。 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)?

只是提示全部删除或none。如何指定 'spec' 只删除 2.7 轮?不可能只通过 ssh 进入 devpi 服务器并删除文件本身,但这会使 devpi 元数据全部搞砸,索引视图仍然认为 wheel 存在。

devpi客户端版本为3.0.0,服务端版本为4.0.0

我向项目维护者提出了这个问题,在 devpi 的当前版本中是不可能的:

https://github.com/devpi/devpi/issues/448

请参阅问题 448 了解(非常老套的)解决方法。