2017-08-09 100 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

回答

相關問題