Skip to content

Commit

Permalink
python 3.11 support (#263)
Browse files Browse the repository at this point in the history
* adding 3.11 to actions

* bumping spark versions

* excluding spark matrix

* updating extras

* adding back exclude

* adding in python 3.12

* adding spark support matrix, remove 3.12

* adding spark support matrix, remove 3.12
  • Loading branch information
fdosani authored Feb 2, 2024
1 parent 5d422c0 commit e105d84
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 7 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/test-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,15 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.8, 3.9, '3.10']
spark-version: [3.1.3, 3.2.3, 3.3.1, 3.4.0, 3.5.0]
python-version: [3.8, 3.9, '3.10', '3.11']
spark-version: [3.1.3, 3.2.4, 3.3.4, 3.4.2, 3.5.0]
exclude:
- python-version: '3.11'
spark-version: 3.1.3
- python-version: '3.11'
spark-version: 3.2.4
- python-version: '3.11'
spark-version: 3.3.4
env:
PYTHON_VERSION: ${{ matrix.python-version }}
SPARK_VERSION: ${{ matrix.spark-version }}
Expand Down Expand Up @@ -55,7 +62,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.8, 3.9, '3.10']
python-version: [3.8, 3.9, '3.10', '3.11']
env:
PYTHON_VERSION: ${{ matrix.python-version }}

Expand All @@ -81,7 +88,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.8, 3.9, '3.10']
python-version: [3.8, 3.9, '3.10', '3.11']
env:
PYTHON_VERSION: ${{ matrix.python-version }}

Expand Down
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,22 @@ pip install datacompy[ray]

```

### In-scope Spark versions
Different versions of Spark play nicely with only certain versions of Python below is a matrix of what we test with

| | Spark 3.1.3 | Spark 3.2.3 | Spark 3.3.4 | Spark 3.4.4 | Spark 3.5.0 |
|-------------|--------------|-------------|-------------|-------------|-------------|
| Python 3.8 ||||||
| Python 3.9 ||||||
| Python 3.10 ||||||
| Python 3.11 ||||||
| Python 3.12 ||||||


:::{note}
At the current time Python ``3.12`` is not supported by Spark and also Ray within Fugue.
:::

## Supported backends

- Pandas: ([See documentation](https://capitalone.github.io/datacompy/pandas_usage.html))
Expand Down
10 changes: 7 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ classifiers = [
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]

dynamic = ["version"]
Expand Down Expand Up @@ -59,8 +60,11 @@ python-tag = "py3"

[project.optional-dependencies]
duckdb = ["fugue[duckdb]"]
polars = ["fugue[polars]"]
spark = ["fugue[spark]"]
polars = ["polars"]
spark = [
"pyspark>=3.1.1; python_version < '3.11'",
"pyspark>=3.4; python_version >= '3.11'",
]
dask = ["fugue[dask]"]
ray = ["fugue[ray]"]
docs = [
Expand All @@ -77,7 +81,7 @@ tests-spark = [
"pytest",
"pytest-cov",
"pytest-spark",
"fugue[spark]",
"spark",
]
qa = [
"pre-commit",
Expand Down

0 comments on commit e105d84

Please sign in to comment.