diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e5247e7..6b1cef5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,7 +10,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python: ['3.8', '3.9', '3.10', '3.11'] + python: ['3.8', '3.9', '3.10', '3.11', '3.12'] runs-on: ${{ matrix.os }} steps: diff --git a/pyproject.toml b/pyproject.toml index 34c68e2..7fab1b9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,7 +40,11 @@ dynamic = ["version"] spark = [ # In NumPy 1.24.0, np.bool has been removed. # https://issues.apache.org/jira/browse/SPARK-41718 - "pyspark>=3.1; python_version <= '3.11'", + "pyspark>=3.1", + # setuptools is only necessary because Python 3.12 removed the distutils + # package. pyspark 3.5.X still imports this package, so we need it on + # Python 3.12 to run the tests. + "setuptools", ] dev = [ "pre-commit",