V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2016-12-03 12:08:20 +08:00 · 2914 次点击
    这是一个创建于 2694 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    7 条回复    2017-02-03 11:44:55 +08:00
    Owenjia
        1
    Owenjia  
       2016-12-03 12:23:24 +08:00 via Android
    Invoke ?
    yangxg
        2
    yangxg  
    OP
       2016-12-03 12:40:31 +08:00 via iPad
    @Owenjia 你有没有用过?刚简单读了下他的文档,好像主要用于执行本地的 shell 命令。能否执行远程服务器的命令?
    jimmyye
        3
    jimmyye  
       2016-12-03 13:57:12 +08:00   ❤️ 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  
       2016-12-04 18:35:55 +08:00
    自动化部署脚本不应该是在本地跑吗,本地全局装 fabric,virtualenv 中装 python2
    yangxg
        5
    yangxg  
    OP
       2016-12-04 23:33:21 +08:00
    @honmaple 嗯,目前采用这个方案了,配合 autohotkey 在 windows 下还不错。
    dcoder
        6
    dcoder  
       2017-02-03 11:23:54 +08:00
    @yangxg @jimmyye https://python3wos.appspot.com/
    这里不是已经绿了么, 还不支持 Python 3?
    jimmyye
        7
    jimmyye  
       2017-02-03 11:44:55 +08:00
    @dcoder 官方还没有支持 Python3 : https://github.com/fabric/fabric
    那里的 py3k 版本也只是一个 fork : https://github.com/mathiasertl/fabric
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5184 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 09:27 · PVG 17:27 · LAX 02:27 · JFK 05:27
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.