About Fabric's support for Python 3

Overview

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]

Conclusion

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

About Fabric

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.

Support for Python 3

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.

Use the fork 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.

Demerit

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

About Fabric's support for Python 3
About Python, for ~ (range)
About "for _ in range ():" in python
About pyenv's support for Anaconda / Miniconda
About python slices
python [for myself]
About python comprehension
About Python tqdm.
About python yield
About python, class
About python inheritance
About python, range ()
About python decorators
About python reference
About Python decorators
[Python] About multi-process
Play with Lambda layer (python) for about 5 minutes
About Python external module import <For super beginners>
About function arguments (python)
Python basics ② for statement
[Python] Memo about functions
Summary about Python3 + OpenCV3
python textbook for beginners
About pgbench for MySQL
About Python3 character code
Refactoring tools for Python
[Python] Memo about errors
About Python development environment
Python: About function arguments
Python, about exception handling
python for android Toolchain
About Python Pyramid traversal
About polymorphism for nesting
About Python3 ... (Ellipsis object)
[Python] Chapter 01-01 About Python (First Python)
[Python] About standard input
About __all__ in python
OpenCV for Python beginners
Install Python (for Windows)
[Python] for statement error
Python environment for projects
Write about building a Python environment for writing Qiita Qiita
Support for Python 2.7 runtime on AWS Lambda (as of 2020.1)
About creating and modifying custom themes for Python IDLE
python memo (for myself): About the development environment virtualenv
[Python] Find out about pip
Python memo (for myself): Array
Python list, for statement, dictionary
Python for Data Analysis Chapter 4
Modern Python for intermediate users
Learning flow for Python beginners
Python 3.6 installation procedure [for Windows]
About python objects and classes
About Python variables and objects
BigQuery integration for Python users
Python learning plan for AI learning
About the Python module venv
Set Up for Mac (Python)
Think about architecture in python
About python beginner's memorandum function
Simulation of late damages for child support delinquency with python