Skip to content

Commit b896fbd

Browse files
authored
Merge pull request #702 from sfu-db/py313
support python 3.13
2 parents 2816501 + 2715f29 commit b896fbd

File tree

17 files changed

+882
-718
lines changed

17 files changed

+882
-718
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ jobs:
112112
container: ubuntu:24.04
113113
strategy:
114114
matrix:
115-
python-version: ["3.12"]
115+
python-version: ["3.13"]
116116
services:
117117
# Label used to access the service container
118118
postgres:

.github/workflows/import-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
matrix:
2020
os: [ubuntu-latest, macos-10.15, windows-latest]
21-
python-version: ["3.7", "3.8", "3.9", "3.10"]
21+
python-version: ["3.10", "3.11", "3.12", "3.13"]
2222
steps:
2323
- uses: actions/checkout@v4
2424

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
container: quay.io/pypa/manylinux_2_28_x86_64
1313
strategy:
1414
matrix:
15-
python-version: [[39, "3.9"], [310, "3.10"], [311, "3.11"], [312, "3.12"]]
15+
python-version: [[310, "3.10"], [311, "3.11"], [312, "3.12"], [313, "3.13"]]
1616
steps:
1717
- uses: actions/checkout@v4
1818

@@ -162,7 +162,7 @@ jobs:
162162
strategy:
163163
matrix:
164164
os: ["windows-latest", "macos-13"]
165-
python-version: ["3.9", "3.10", "3.11", "3.12"]
165+
python-version: ["3.10", "3.11", "3.12", "3.13"]
166166
include:
167167
- os: "macos-13"
168168
features: "--features integrated-auth-gssapi"
@@ -226,7 +226,7 @@ jobs:
226226
runs-on: macos-latest
227227
strategy:
228228
matrix:
229-
python-version: ["3.9", "3.10", "3.11", "3.12"]
229+
python-version: ["3.10", "3.11", "3.12", "3.13"]
230230
steps:
231231
- uses: actions/checkout@v4
232232

@@ -288,7 +288,7 @@ jobs:
288288
needs: [win-and-mac, linux]
289289
strategy:
290290
matrix:
291-
python-version: ["3.9", "3.10", "3.11", "3.12"]
291+
python-version: ["3.10", "3.11", "3.12", "3.13"]
292292
os: [macos-13, ubuntu-latest, windows-latest]
293293
steps:
294294
- uses: actions/checkout@v4
@@ -311,7 +311,7 @@ jobs:
311311
needs: [apple-arm]
312312
strategy:
313313
matrix:
314-
python-version: ["3.9", "3.10", "3.11", "3.12"]
314+
python-version: ["3.10", "3.11", "3.12", "3.13"]
315315
os: [macos-latest]
316316
steps:
317317
- uses: actions/checkout@v4

connectorx-python/Cargo.lock

Lines changed: 20 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

connectorx-python/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ connectorx = {path = "../connectorx", default-features = false}
2222
env_logger = "0.9"
2323
fehler = "1"
2424
itertools = "0.10"
25-
lazy_static = "1.4.0"
25+
lazy_static = "1.4"
2626
libc = "0.2"
2727
log = "0.4"
2828
ndarray = "0.15"
29-
numpy = "0.21"
29+
numpy = {version = "0.22", features = ["gil-refs"]}
3030
openssl = {version = "0.10", features = ["vendored"]}
3131
postgres = {version = "0.19", features = ["with-chrono-0_4", "with-uuid-0_8", "with-serde_json-1"]}
3232
postgres-native-tls = {version = "0.5"}
3333
postgres-openssl = {version = "0.5.0"}
34-
pyo3 = {version = "0.21", default-features = false, features = ["macros"]}
34+
pyo3 = {version = "0.22", default-features = false, features = ["macros", "gil-refs", "py-clone"]}
3535
pyo3-built = "0.5"
3636
rust_decimal = {version = "1", features = ["db-postgres"]}
3737
serde_json = "1"
@@ -46,7 +46,7 @@ rayon = "1"
4646

4747
[build-dependencies]
4848
built = {version = "0.5", features = ["chrono"]}
49-
pyo3-build-config = {version = "0.21", features = ["resolve-config"]}
49+
pyo3-build-config = {version = "0.22", features = ["resolve-config"]}
5050

5151
[dev-dependencies]
5252
criterion = "0.3"

connectorx-python/connectorx/tests/test_polars.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def postgres_url() -> str:
1313
return conn
1414

1515

16-
def test_modin(postgres_url: str) -> None:
16+
def test_polars(postgres_url: str) -> None:
1717
query = "SELECT * FROM test_table"
1818
df = read_sql(
1919
postgres_url,
@@ -35,4 +35,4 @@ def test_modin(postgres_url: str) -> None:
3535
)
3636

3737
df = df.sort('test_int')
38-
assert df.frame_equal(expected, null_equal=True)
38+
assert df.equals(expected, null_equal=True)

0 commit comments

Comments
 (0)