2017-08-09 98 views
2

有一个包含多个轮子为不同的建筑而建造的包裹。 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元数据全部搞砸了,索引视图仍然认为轮子存在。

devpi客户端版本是3.0.0,服务器版本是4.0.0。

+0

尝试'devpi remove“somepackage == 1.2.3; python_version =='2.7'”' – phd

+0

这给了'pkg_resources.RequirementParseError:无效的需求,解析错误在''; python'“' – wim

回答

相关问题