From e38cef70fd3d5206e812fff1824f6133a9929700 Mon Sep 17 00:00:00 2001 From: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com> Date: Sat, 27 Jan 2024 09:19:31 -0300 Subject: [PATCH] Update maturin --- .github/workflows/python-json.yaml | 2 +- .github/workflows/python.yaml | 2 +- json/pyproject.toml | 3 +++ py/Cargo.toml | 2 +- py/pyproject.toml | 7 +++++-- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python-json.yaml b/.github/workflows/python-json.yaml index 12ec1cc..5f8bbbe 100644 --- a/.github/workflows/python-json.yaml +++ b/.github/workflows/python-json.yaml @@ -13,7 +13,7 @@ concurrency: env: PACKAGE_NAME: arrow-json PYTHON_VERSION: "3.7" # to build abi3 wheels - MATURIN_VERSION: "v0.14.6" + MATURIN_VERSION: "v1.4.0" PACKAGE_DIR: json jobs: diff --git a/.github/workflows/python.yaml b/.github/workflows/python.yaml index cac52c4..a32d01a 100644 --- a/.github/workflows/python.yaml +++ b/.github/workflows/python.yaml @@ -13,7 +13,7 @@ concurrency: env: PACKAGE_NAME: pgpq PYTHON_VERSION: "3.7" # to build abi3 wheels - MATURIN_VERSION: "v0.14.6" + MATURIN_VERSION: "v1.4.0" PACKAGE_DIR: py jobs: diff --git a/json/pyproject.toml b/json/pyproject.toml index f103421..eaa51a7 100644 --- a/json/pyproject.toml +++ b/json/pyproject.toml @@ -44,6 +44,9 @@ sdist-include = ["Cargo.lock"] strip = true python-source = "python" profile = "release" +module-name = "arrow_json._arrow_json" +bindings = 'pyo3' +features = ["pyo3/extension-module"] [tool.isort] profile = "black" diff --git a/py/Cargo.toml b/py/Cargo.toml index da04f8d..92e4110 100644 --- a/py/Cargo.toml +++ b/py/Cargo.toml @@ -6,7 +6,7 @@ readme = "README.md" license = "MIT" [lib] -name = "pgpq" +name = "_pgpq" crate-type = ["cdylib"] [dependencies] diff --git a/py/pyproject.toml b/py/pyproject.toml index 97ba6b4..969b04a 100644 --- a/py/pyproject.toml +++ b/py/pyproject.toml @@ -26,7 +26,7 @@ requires-python = ">=3.7" [project.optional-dependencies] test = [ "pytest >=7.0.0", - "maturin >= 0.14.0", + "maturin >= 1.4.0", "pre-commit>=2.16.0", "testing.postgresql >= 1.3.0", "psycopg[binary] >= 3.1.8", @@ -43,7 +43,7 @@ documentation = "https://github.com/adriangb/pgpq/README.md" repository = "https://github.com/adriangb/pgpq" [build-system] -requires = ["maturin>=0.14.0,<15"] +requires = ["maturin>=1,<2"] build-backend = "maturin" [tool.maturin] @@ -51,6 +51,9 @@ sdist-include = ["Cargo.lock"] strip = true python-source = "python" profile = "release" +module-name = "pgpq._pgpq" +bindings = 'pyo3' +features = ["pyo3/extension-module"] [tool.isort] profile = "black"