Python 3 support for fabric

前端 未结 7 1473
时光取名叫无心
时光取名叫无心 2020-12-25 09:28

Does fabric (http://docs.fabfile.org/en/1.7/) support Python 3 yet. As per Python 3 Wall of Superpowers it does not yet. If not what is the best alternative if using Django

7条回答
  •  盖世英雄少女心
    2020-12-25 10:24

    It is actually possible to get Fabric to work with Python 3. You can see how I did it in this gist.

    In the comments above, @rnevius suggests that invoke is meant as a successor of Fabric 1.x, however that is not completely correct. From the invoke docs:

    Thus, Invoke was created to focus exclusively on local and abstract concerns, leaving Fabric 2.x concerned only with servers and network commands.

    It thus seems that Fabric 2.x will be built on top of invoke. Hopefully, Fabric 2.x will be available soon, so Python2 can die as quickly as possible.

提交回复
热议问题