Skip to content

Commit

Permalink
Merge pull request #702 from sfu-db/py313
Browse files Browse the repository at this point in the history
support python 3.13
  • Loading branch information
wangxiaoying authored Nov 4, 2024
2 parents 2816501 + 2715f29 commit b896fbd
Show file tree
Hide file tree
Showing 17 changed files with 882 additions and 718 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ jobs:
container: ubuntu:24.04
strategy:
matrix:
python-version: ["3.12"]
python-version: ["3.13"]
services:
# Label used to access the service container
postgres:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/import-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-10.15, windows-latest]
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
container: quay.io/pypa/manylinux_2_28_x86_64
strategy:
matrix:
python-version: [[39, "3.9"], [310, "3.10"], [311, "3.11"], [312, "3.12"]]
python-version: [[310, "3.10"], [311, "3.11"], [312, "3.12"], [313, "3.13"]]
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -162,7 +162,7 @@ jobs:
strategy:
matrix:
os: ["windows-latest", "macos-13"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.10", "3.11", "3.12", "3.13"]
include:
- os: "macos-13"
features: "--features integrated-auth-gssapi"
Expand Down Expand Up @@ -226,7 +226,7 @@ jobs:
runs-on: macos-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -288,7 +288,7 @@ jobs:
needs: [win-and-mac, linux]
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.10", "3.11", "3.12", "3.13"]
os: [macos-13, ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v4
Expand All @@ -311,7 +311,7 @@ jobs:
needs: [apple-arm]
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.10", "3.11", "3.12", "3.13"]
os: [macos-latest]
steps:
- uses: actions/checkout@v4
Expand Down
34 changes: 20 additions & 14 deletions connectorx-python/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions connectorx-python/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ connectorx = {path = "../connectorx", default-features = false}
env_logger = "0.9"
fehler = "1"
itertools = "0.10"
lazy_static = "1.4.0"
lazy_static = "1.4"
libc = "0.2"
log = "0.4"
ndarray = "0.15"
numpy = "0.21"
numpy = {version = "0.22", features = ["gil-refs"]}
openssl = {version = "0.10", features = ["vendored"]}
postgres = {version = "0.19", features = ["with-chrono-0_4", "with-uuid-0_8", "with-serde_json-1"]}
postgres-native-tls = {version = "0.5"}
postgres-openssl = {version = "0.5.0"}
pyo3 = {version = "0.21", default-features = false, features = ["macros"]}
pyo3 = {version = "0.22", default-features = false, features = ["macros", "gil-refs", "py-clone"]}
pyo3-built = "0.5"
rust_decimal = {version = "1", features = ["db-postgres"]}
serde_json = "1"
Expand All @@ -46,7 +46,7 @@ rayon = "1"

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

[dev-dependencies]
criterion = "0.3"
Expand Down
4 changes: 2 additions & 2 deletions connectorx-python/connectorx/tests/test_polars.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def postgres_url() -> str:
return conn


def test_modin(postgres_url: str) -> None:
def test_polars(postgres_url: str) -> None:
query = "SELECT * FROM test_table"
df = read_sql(
postgres_url,
Expand All @@ -35,4 +35,4 @@ def test_modin(postgres_url: str) -> None:
)

df = df.sort('test_int')
assert df.frame_equal(expected, null_equal=True)
assert df.equals(expected, null_equal=True)
Loading

0 comments on commit b896fbd

Please sign in to comment.