This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new a853233ddb Bring back unicodecsv as depenendency of Airflow (#31814)
a853233ddb is described below

commit a853233ddb838873c7f0958402cccf5e25ea60c8
Author: Jarek Potiuk <[email protected]>
AuthorDate: Fri Jun 9 13:45:02 2023 +0200

    Bring back unicodecsv as depenendency of Airflow (#31814)
    
    Removing unicodescv as dependency invites problems when users will
    use older hive, google, microsoft providers, because they were
    using unicodecsv, but they did not declare it as dependency (it
    was a transitive dependency of the "apache-airflow" package).
    
    It has been removed in #31693
    
    Unicodecsv has very low footprint so this is not a problem to
    keep it.
    
    The dependency misses license in it's package, therefore we
    add the licence in our "licences" folder.
---
 licenses/LICENSE-unicodecsv.txt | 25 +++++++++++++++++++++++++
 setup.cfg                       |  5 +++++
 2 files changed, 30 insertions(+)

diff --git a/licenses/LICENSE-unicodecsv.txt b/licenses/LICENSE-unicodecsv.txt
new file mode 100644
index 0000000000..6d004c776d
--- /dev/null
+++ b/licenses/LICENSE-unicodecsv.txt
@@ -0,0 +1,25 @@
+Copyright 2010 Jeremy Dunck. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without 
modification, are
+permitted provided that the following conditions are met:
+
+   1. Redistributions of source code must retain the above copyright notice, 
this list of
+      conditions and the following disclaimer.
+
+   2. Redistributions in binary form must reproduce the above copyright 
notice, this list
+      of conditions and the following disclaimer in the documentation and/or 
other materials
+      provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY JEREMY DUNCK ``AS IS'' AND ANY EXPRESS OR IMPLIED
+WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 
MERCHANTABILITY AND
+FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL JEREMY 
DUNCK OR
+CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 
CAUSED AND ON
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 
(INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
EVEN IF
+ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+The views and conclusions contained in the software and documentation are 
those of the
+authors and should not be interpreted as representing official policies, 
either expressed
+or implied, of Jeremy Dunck.
diff --git a/setup.cfg b/setup.cfg
index 35328a5aa8..59ee6d9130 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -146,6 +146,11 @@ install_requires =
     tenacity>=6.2.0,!=8.2.0
     termcolor>=1.1.0
     typing-extensions>=4.0.0
+    # We should remove this dependency when Providers are limited to Airflow 
2.7+
+    # as we replaced the usage of unicodecsv with csv in Airflow 2.7
+    # See https://github.com/apache/airflow/pull/31693
+    # We should also remove "licenses/LICENSE-unicodecsv.txt" file when we 
remove this dependency
+    unicodecsv>=0.14.1
     werkzeug>=2.0
 
 [options.packages.find]

Reply via email to