This is an automated email from the ASF dual-hosted git repository. chaokunyang pushed a commit to branch releases-0.10 in repository https://gitbox.apache.org/repos/asf/fury.git
commit d74242594c91be3b5df55629fb09b74703b85d5c Author: Shawn Yang <[email protected]> AuthorDate: Tue Dec 17 01:30:09 2024 +0800 chore(python): drop py3.7 support (#1981) ## What does this PR do? This pr drop py3.7 support ## Related issues Closes #1982 ## Does this PR introduce any user-facing change? <!-- If any user-facing interface changes, please [open an issue](https://github.com/apache/fury/issues/new/choose) describing the need to do so and update the document if necessary. --> - [ ] Does this PR introduce any public API change? - [ ] Does this PR introduce any binary protocol compatibility change? ## Benchmark <!-- When the PR has an impact on performance (if you don't know whether the PR will have an impact on performance, you can submit the PR first, and if it will have impact on performance, the code reviewer will explain it), be sure to attach a benchmark data here. --> --- .github/workflows/ci.yml | 2 +- .github/workflows/release.yaml | 2 +- python/pyfury/_fury.py | 6 +----- python/pyfury/_serialization.pyx | 5 +---- python/setup.py | 2 -- 5 files changed, 4 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1574138f..72201cff 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -218,7 +218,7 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - python-version: [3.7, 3.12] + python-version: [3.8, 3.12] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d5beee49..109204e9 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -32,7 +32,7 @@ jobs: url: https://pypi.org/project/pyfury strategy: matrix: - python-version: [3.7, 3.8, 3.9, 3.10.12, 3.11, 3.12] + python-version: [3.8, 3.9, 3.10.12, 3.11, 3.12] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} diff --git a/python/pyfury/_fury.py b/python/pyfury/_fury.py index 19a624ed..1e4ca68a 100644 --- a/python/pyfury/_fury.py +++ b/python/pyfury/_fury.py @@ -21,7 +21,6 @@ import datetime import enum import logging import os -import sys import warnings from dataclasses import dataclass from typing import Dict, Tuple, TypeVar, Union, Iterable @@ -80,10 +79,7 @@ except ImportError: from cloudpickle import Pickler -if sys.version_info[:2] < (3, 8): # pragma: no cover - from pickle5 import Unpickler -else: - from pickle import Unpickler +from pickle import Unpickler logger = logging.getLogger(__name__) diff --git a/python/pyfury/_serialization.pyx b/python/pyfury/_serialization.pyx index 3f2c6041..d6c1fab4 100644 --- a/python/pyfury/_serialization.pyx +++ b/python/pyfury/_serialization.pyx @@ -56,10 +56,7 @@ try: except ImportError: np = None -if sys.version_info[:2] < (3, 8): # pragma: no cover - import pickle5 as pickle # nosec # pylint: disable=import_pickle -else: - import pickle # nosec # pylint: disable=import_pickle +import pickle # nosec # pylint: disable=import_pickle cimport cython diff --git a/python/setup.py b/python/setup.py index 699ca893..01be89bc 100644 --- a/python/setup.py +++ b/python/setup.py @@ -159,8 +159,6 @@ setup( ], zip_safe=False, install_requires=[ - 'dataclasses; python_version<"3.7"', - 'pickle5; python_version<"3.8"', "cloudpickle", ], extras_require={ --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
