From e2c1772df9a193fe06748868ea14c089e3ecf141 Mon Sep 17 00:00:00 2001 From: Hyunseok Seo Date: Fri, 28 Jun 2024 23:42:39 +0900 Subject: [PATCH] remove unncessary requirements for six --- .github/workflows/dev.yml | 2 +- dev/merge_arrow_pr.py | 7 ++----- dev/requirements_merge_arrow_pr.txt | 1 - 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 1ea12b0a4d23d..5aec3638a8967 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -120,7 +120,7 @@ jobs: shell: bash run: | gem install test-unit - pip install "cython>=0.29.31" setuptools six pytest jira setuptools-scm + pip install "cython>=0.29.31" setuptools pytest jira setuptools-scm - name: Run Release Test env: ARROW_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/dev/merge_arrow_pr.py b/dev/merge_arrow_pr.py index 344d943fd87e1..6694d2373b8f1 100755 --- a/dev/merge_arrow_pr.py +++ b/dev/merge_arrow_pr.py @@ -44,9 +44,6 @@ import requests import getpass -from six.moves import input -import six - try: import jira.client import jira.exceptions @@ -99,7 +96,7 @@ def get_json(url, headers=None): def run_cmd(cmd): - if isinstance(cmd, six.string_types): + if isinstance(cmd, str): cmd = cmd.split(' ') try: @@ -113,7 +110,7 @@ def run_cmd(cmd): print('--------------') raise e - if isinstance(output, six.binary_type): + if isinstance(output, bytes): output = output.decode('utf-8') return output diff --git a/dev/requirements_merge_arrow_pr.txt b/dev/requirements_merge_arrow_pr.txt index 7ac17dc1b1933..99909e434a580 100644 --- a/dev/requirements_merge_arrow_pr.txt +++ b/dev/requirements_merge_arrow_pr.txt @@ -1,3 +1,2 @@ jira requests -six