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

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


The following commit(s) were added to refs/heads/main by this push:
     new 862667e7 chore(python): drop py3.7 support (#1981)
862667e7 is described below

commit 862667e7ce04414371cce0ec867a2931d1bcada4
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 13044864..cea73638 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 74bd755b..8e7ad3c4 100644
--- a/python/pyfury/_serialization.pyx
+++ b/python/pyfury/_serialization.pyx
@@ -59,10 +59,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]

Reply via email to