[AIRFLOW-3731] Constrain mysqlclient to <1.4#4558
Conversation
To maintain Python2 compatibility
|
@kaxil PTAL |
|
@potiuk, In my opinion, this stuff needs to be fixed first before we move to a multi-layer image of Airflow. In this case, the image would still be working, but the master would be broken when using Python2 and MySQL 😢 |
Codecov Report
@@ Coverage Diff @@
## master #4558 +/- ##
=========================================
+ Coverage 73.81% 74.1% +0.29%
=========================================
Files 421 421
Lines 27662 27662
=========================================
+ Hits 20418 20499 +81
+ Misses 7244 7163 -81
Continue to review full report at Codecov.
|
|
Aren't they just dropping python 3.4 support? |
|
They changed the public interface of the |
To maintain Python2 compatibility
To maintain Python2 compatibility
|
I think we need to move forward. Is there a way to install both and use <1.4 for python2 and >=1.4 for python3? I'm not sure if @kaxil is correct but if they are only removing support for python 3.4 then there shouldn't be an issue here. I would be happy to take a stab at refactoring airflow's MySqlHook for 1.4 if nobody else is working on it. |
|
Yes. It's possible. In setup.py of v1-10-test we have: |
|
@TylerBrock an attempt has be done here #5430 but wan't completed. |
|
I removed airflow/tests/operators/test_operators.py Lines 354 to 363 in 7bebe8d airflow/tests/operators/test_operators.py Lines 370 to 371 in 7bebe8d The Airflow expect Since this interface is different from many people expects, I am changing it:
|
To maintain Python2 compatibility: https://pypi.org/project/mysqlclient/#history
Make sure you have checked all steps below.
Jira
Description
Tests
Commits
Documentation
Code Quality
flake8