Skip to content

Commit 727cc55

Browse files
delsnerborchero
andauthored
build: Support Python 3.10 (#88)
Co-authored-by: Oliver Borchert <[email protected]>
1 parent 1bc060e commit 727cc55

19 files changed

+3564
-47
lines changed

.copier-answers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author_email: [email protected]
66
author_name: Oliver Borchert
77
github_url: https://github.com/quantco/dataframely
88
github_user: borchero
9-
minimal_python_version: py311
9+
minimal_python_version: py310
1010
project_short_description: A declarative, polars-native data frame validation library
1111
project_slug: dataframely
1212
use_devcontainer: false

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
uses: PyO3/maturin-action@e10f6c464b90acceb5f640d31beda6d586ba7b4a # v1.49.3
6262
with:
6363
command: build
64-
args: --out dist -i python3.11
64+
args: --out dist -i python3.10
6565
manylinux: auto
6666
- name: Check package
6767
run: pixi run -e build check-wheel

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
fail-fast: true
4141
matrix:
4242
os: [ubuntu-latest, windows-latest]
43-
environment: [py311, py312, py313]
43+
environment: [py310, py311, py312, py313]
4444
steps:
4545
- name: Checkout branch
4646
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ crate-type = ["cdylib"]
88
name = "dataframely"
99

1010
[dependencies]
11-
pyo3 = { version = "0.24", features = ["abi3-py311", "extension-module"] }
11+
pyo3 = { version = "0.24", features = ["abi3-py310", "extension-module"] }
1212
rand = { version = "0.9", features = ["std_rng"] }
1313
regex-syntax = "0.8"
1414
thiserror = "2.0"

dataframely/_base_collection.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
from abc import ABCMeta
99
from collections.abc import Iterable
1010
from dataclasses import dataclass, field
11-
from typing import Annotated, Any, Self, cast, get_args, get_origin
11+
from typing import Annotated, Any, cast, get_args, get_origin
1212

1313
import polars as pl
14+
from typing_extensions import Self
1415

1516
from ._filter import Filter
1617
from ._typing import LazyFrame as TypedLazyFrame

dataframely/_base_schema.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
from abc import ABCMeta
88
from copy import copy
99
from dataclasses import dataclass, field
10-
from typing import Any, Self
10+
from typing import Any
1111

1212
import polars as pl
13+
from typing_extensions import Self
1314

1415
from ._rule import GroupRule, Rule
1516
from .columns import Column

dataframely/_rule.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55

66
from collections import defaultdict
77
from collections.abc import Callable
8-
from typing import Any, Self
8+
from typing import Any
99

1010
import polars as pl
11+
from typing_extensions import Self
1112

1213
ValidationFunction = Callable[[], pl.Expr]
1314

dataframely/collection.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77
from collections.abc import Mapping, Sequence
88
from dataclasses import asdict
99
from pathlib import Path
10-
from typing import Annotated, Any, Self, cast
10+
from typing import Annotated, Any, cast
1111

1212
import polars as pl
1313
import polars.exceptions as plexc
14+
from typing_extensions import Self
1415

1516
from ._base_collection import BaseCollection, CollectionMember
1617
from ._filter import Filter

dataframely/columns/_base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
from abc import ABC, abstractmethod
88
from collections import Counter
99
from collections.abc import Callable
10-
from typing import Any, Self, TypeAlias, cast
10+
from typing import Any, TypeAlias, cast
1111

1212
import polars as pl
13+
from typing_extensions import Self
1314

1415
from dataframely._compat import pa, sa, sa_TypeEngine
1516
from dataframely._deprecation import (

dataframely/columns/_mixins.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
# SPDX-License-Identifier: BSD-3-Clause
33

44
from collections.abc import Sequence
5-
from typing import TYPE_CHECKING, Any, Generic, Protocol, Self, TypeVar
5+
from typing import TYPE_CHECKING, Any, Generic, Protocol, TypeVar
66

77
import polars as pl
8+
from typing_extensions import Self
89

910
if TYPE_CHECKING: # pragma: no cover
1011
from ._base import Column

0 commit comments

Comments
 (0)