Skip to content

Commit

Permalink
Update maturin
Browse files Browse the repository at this point in the history
  • Loading branch information
adriangb committed Jan 27, 2024
1 parent 8cc4d6e commit e38cef7
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-json.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions json/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion py/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ readme = "README.md"
license = "MIT"

[lib]
name = "pgpq"
name = "_pgpq"
crate-type = ["cdylib"]

[dependencies]
Expand Down
7 changes: 5 additions & 2 deletions py/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -43,14 +43,17 @@ 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]
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"

0 comments on commit e38cef7

Please sign in to comment.