Skip to content

Apache DataFusion SQL Query Engine

ARROW-7846: [Python][Dev] Remove dependencies on six

Antoine Pitroubf39cea313b8
diff --git a/dev/archery/archery/integration/util.py b/dev/archery/archery/integration/util.py
index 98eb45929a..98d648a514 100644
--- a/dev/archery/archery/integration/util.py
+++ b/dev/archery/archery/integration/util.py
@@ -16,7 +16,6 @@
# under the License.
import os
-import six
import string
import subprocess
import uuid
@@ -52,19 +51,19 @@ def rands(nchars):
def tobytes(o):
- if isinstance(o, six.text_type):
+ if isinstance(o, str):
return o.encode('utf8')
return o
def frombytes(o):
- if isinstance(o, six.binary_type):
+ if isinstance(o, bytes):
return o.decode('utf8')
return o
def run_cmd(cmd):
- if isinstance(cmd, six.string_types):
+ if isinstance(cmd, str):
cmd = cmd.split(' ')
try:
diff --git a/dev/archery/setup.py b/dev/archery/setup.py
index 66ecdda949..40263a7713 100644
--- a/dev/archery/setup.py
+++ b/dev/archery/setup.py
@@ -32,7 +32,7 @@ setup(
maintainer='Arrow Developers',
maintainer_email='[email protected]',
packages=['archery'],
- install_requires=['click', 'six'],
+ install_requires=['click'],
entry_points='''
[console_scripts]
archery=archery.cli:archery
diff --git a/dev/release/verify-release-candidate.sh b/dev/release/verify-release-candidate.sh
index aacf67f0a9..ac5ceca7f6 100755
--- a/dev/release/verify-release-candidate.sh
+++ b/dev/release/verify-release-candidate.sh
@@ -244,7 +244,6 @@ setup_miniconda() {
nomkl \
numpy \
pandas \
- six \
cython
conda activate arrow-test
}
diff --git a/dev/tasks/conda-recipes/pyarrow/meta.yaml b/dev/tasks/conda-recipes/pyarrow/meta.yaml
index abc172032f..a8549cf0d3 100644
--- a/dev/tasks/conda-recipes/pyarrow/meta.yaml
+++ b/dev/tasks/conda-recipes/pyarrow/meta.yaml
@@ -26,7 +26,6 @@ requirements:
- python
- setuptools
- setuptools_scm
- - six
run:
- {{ pin_compatible('arrow-cpp') }}
@@ -38,7 +37,6 @@ requirements:
# empty parquet-cpp metapackage, force old versions to be uninstalled
- parquet-cpp 1.5.1.*
- python
- - six
- snappy
test:
diff --git a/integration/README.md b/integration/README.md
index e9be92876d..3148962af1 100644
--- a/integration/README.md
+++ b/integration/README.md
@@ -43,7 +43,7 @@ wget -O miniconda.sh $MINICONDA_URL
bash miniconda.sh -b -p miniconda
export PATH=`pwd`/miniconda/bin:$PATH
-conda create -n arrow-integration python=3.6 nomkl numpy six
+conda create -n arrow-integration python=3.6 nomkl numpy
conda activate arrow-integration
```
@@ -68,15 +68,15 @@ the test run. For example, if you only have the C++ project built, you set:
```
export ARROW_CPP_EXE_PATH=$CPP_BUILD_DIR/debug
-archery integration --enable-cpp=1
+archery integration --with-cpp=1
```
For Java, it may look like:
```
-VERSION=0.11.0-SNAPSHOT
+VERSION=1.0.0-SNAPSHOT
export ARROW_JAVA_INTEGRATION_JAR=$JAVA_DIR/tools/target/arrow-tools-$VERSION-jar-with-dependencies.jar
-archery integration --enable-cpp=1 --enable-java=1
+archery integration --with-cpp=1 --with-java=1
```
[1]: https://conda.io/miniconda.html