This is an automated email from the ASF dual-hosted git repository. jiayuliu pushed a commit to branch python-310 in repository https://gitbox.apache.org/repos/asf/arrow-datafusion.git
commit 872b170d8b4f5dfe78d36a0ea5db3bc7adcdbd57 Author: Jiayu Liu <[email protected]> AuthorDate: Thu Oct 7 00:06:18 2021 +0800 update python verion to 3.10 --- .github/workflows/comment_bot.yml | 2 +- .github/workflows/dev.yml | 6 +++--- .github/workflows/python_build.yml | 2 +- .github/workflows/python_test.yaml | 2 +- .github/workflows/rust.yml | 2 +- python/README.md | 6 +++++- python/pyproject.toml | 1 + 7 files changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/comment_bot.yml b/.github/workflows/comment_bot.yml index a5e9e60..92e1d3c 100644 --- a/.github/workflows/comment_bot.yml +++ b/.github/workflows/comment_bot.yml @@ -37,7 +37,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: "3.9" + python-version: "3.10" - name: Install Archery and Crossbow dependencies run: pip install -e dev/archery[bot] - name: Handle Github comment event diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 1d15aa5..ff4881e 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -32,7 +32,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v2 with: - python-version: "3.9" + python-version: "3.10" - name: Setup Archery run: pip install -e dev/archery[lint] - name: Lint @@ -45,9 +45,9 @@ jobs: - name: Checkout uses: actions/checkout@v2 - name: Setup Python - uses: actions/setup-python@v1 + uses: actions/setup-python@v2 with: - python-version: "3.9" + python-version: "3.10" - name: Audit licenses run: ./dev/release/run-rat.sh . diff --git a/.github/workflows/python_build.yml b/.github/workflows/python_build.yml index 74b61ae..adc9f0b 100644 --- a/.github/workflows/python_build.yml +++ b/.github/workflows/python_build.yml @@ -49,7 +49,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.9"] + python-version: ["3.10"] os: [macos-latest, windows-latest] steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/python_test.yaml b/.github/workflows/python_test.yaml index 17e7abb..0c4bf56 100644 --- a/.github/workflows/python_test.yaml +++ b/.github/workflows/python_test.yaml @@ -40,7 +40,7 @@ jobs: key: target-maturin-cache- - uses: actions/setup-python@v2 with: - python-version: "3.9" + python-version: "3.10" - name: Create Virtualenv run: | python -m venv venv diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index aae84e6..6013085 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -149,7 +149,7 @@ jobs: submodules: true - uses: actions/setup-python@v2 with: - python-version: "3.9" + python-version: "3.10" - name: Install Python dependencies run: | python -m pip install --upgrade pip setuptools wheel diff --git a/python/README.md b/python/README.md index 7cb980c..947254a 100644 --- a/python/README.md +++ b/python/README.md @@ -146,6 +146,8 @@ python -m pip install -r requirements-37.txt python -m pip install -r requirements-38.txt # if python -V gives python 3.9 python -m pip install -r requirements-39.txt +# if python -V gives python 3.10 +python -m pip install -r requirements-310.txt ``` Whenever rust code changes (your changes or via `git pull`): @@ -170,12 +172,14 @@ python -m piptools compile --generate-hashes -o requirements-37.txt python -m piptools compile --generate-hashes -o requirements-38.txt # or run this is you are on python 3.9 python -m piptools compile --generate-hashes -o requirements-39.txt +# or run this is you are on python 3.10 +python -m piptools compile --generate-hashes -o requirements-310.txt ``` To update dependencies, run with `-U` ```bash -python -m piptools compile -U --generate-hashes -o requirements-39.txt +python -m piptools compile -U --generate-hashes -o requirements-310.txt ``` More details [here](https://github.com/jazzband/pip-tools) diff --git a/python/pyproject.toml b/python/pyproject.toml index 0f2e050..f366aa9 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -39,6 +39,7 @@ classifier = [ "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", "Programming Language :: Python", "Programming Language :: Rust", ]
