Since Fabric has not been compatible with Python3 forever, I have summarized the results of investigating whether it can be used with Python3 somehow.
--Support status for Python 3
--Discussion on GitHub
--Use of Fabric3
fork
[Addition]
After a long time, on May 10, 2018, Fabric 2.0 was finally released and is available in Python 3.4 and above!
http://docs.fabfile.org/en/2.0/upgrading.html
[/ Addendum]
There is a fork called Fabric3
, so if you want to use Python3, you can use that.
virtualenv -p python3 env
source env/bin/activate
pip3 install fabric3
Fabric is an automation tool made by Python.
This article was very helpful for the explanation of Fabric itself. Thank you very much.
http://qiita.com/greenspa/items/fff535d2ae5da36e36fe
If you haven't done so yet, please take a look.
It's a very useful Fabric, but it doesn't support Python 3 (as of June 5, 2016).
It's a shame for me as a generous generation of Python3 when I first touched it.
There seem to be a lot of people like me, and there are 16 Python3-related issues on GitHub.
Bitprophet, a major committer, also seems tired of requests for Python3 support, and every time a Python3-related issue comes up.
Please see the roadmap - http://www.fabfile.org/roadmap.html - alpha for v2 out soon (really).
I have locked the issue by commenting.
For example, in This Issue,
In response to the question "I want to contribute to working with Python 3, what should I do?"
"Look at the roadmap, version 2 will come soon", then another person
"I've seen all the issues, but I've been saying the same thing all the time. It's open source, so why not have someone else work on it?"
Was attached. Well, after that it was locked silently.
Fabric3
Under such circumstances, there was a person who made a fork called Fabric3.
Issue here suggests patching.
It's locked because "I can't cut Python 2.5 yet", but it seems that this fork is recommended for people who "want to use it with Python 3".
Just install pip3 install fabric3
.
The idempotent plugin Cuisine
in Fabric does not support Python 3, so it cannot be used.
It seems that there is a suggestion that "If Fabric supports Python3, Cuisine will also support it".
It's a little disappointing that Cuisine can't be used, but Fabric3 itself has passed all the tests and seems to be fine for normal use.
I will try using it for a while and add it if there is a problem.
Recommended Posts