推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
yangxg
V2EX  ›  Python

有没有类似于 Fabric 但支持 Py3 的自动部署工具?

  •  
  •   yangxg · Dec 3, 2016 · 4295 views
    This topic created in 3588 days ago, the information mentioned may be changed or developed.

    Fabric 目前只支持 Py2 ,因为项目用的 Python3 ,不想在 2 和 3 间来回切换。是否有支持 Py3 的替代 Fabric 的库?

    7 replies  •  2017-02-03 11:44:55 +08:00
    Owenjia
        1
    Owenjia  
       Dec 3, 2016 via Android
    Invoke ?
    yangxg
        2
    yangxg  
    OP
       Dec 3, 2016 via iPad
    @Owenjia 你有没有用过?刚简单读了下他的文档,好像主要用于执行本地的 shell 命令。能否执行远程服务器的命令?
    jimmyye
        3
    jimmyye  
       Dec 3, 2016   ❤️ 1
    有几个 fork ,之前用过
    https://github.com/akaariai/fabric/tree/py34 好像没有什么问题,更新的 branch
    https://github.com/akaariai/fabric/tree/py34_1.10 没有用过。还有更新的 fork 也没有用过
    https://github.com/rane-hs/fabric-py3
    honmaple
        4
    honmaple  
       Dec 4, 2016
    自动化部署脚本不应该是在本地跑吗,本地全局装 fabric,virtualenv 中装 python2
    yangxg
        5
    yangxg  
    OP
       Dec 4, 2016
    @honmaple 嗯,目前采用这个方案了,配合 autohotkey 在 windows 下还不错。
    dcoder
        6
    dcoder  
       Feb 3, 2017
    @yangxg @jimmyye https://python3wos.appspot.com/
    这里不是已经绿了么, 还不支持 Python 3?
    jimmyye
        7
    jimmyye  
       Feb 3, 2017
    @dcoder 官方还没有支持 Python3 : https://github.com/fabric/fabric
    那里的 py3k 版本也只是一个 fork : https://github.com/mathiasertl/fabric
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   990 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 18:14 · PVG 02:14 · LAX 11:14 · JFK 14:14
    ♥ Do have faith in what you're doing.