Skip to content

Commit 06a2592

Browse files
committed
Merge branch 'fix-build' of github.com:adsharma/reasonable
2 parents 28240ed + e94b02d commit 06a2592

File tree

5 files changed

+25
-17
lines changed

5 files changed

+25
-17
lines changed

.cargo/config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@ rustflags = [
33
"-C", "link-arg=-undefined",
44
"-C", "link-arg=dynamic_lookup",
55
]
6+
7+
[target.aarch64-apple-darwin]
8+
rustflags = [
9+
"-C", "link-arg=-undefined",
10+
"-C", "link-arg=dynamic_lookup",
11+
]

.github/workflows/Python.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ jobs:
1111
- uses: actions/checkout@v4
1212
- uses: actions/setup-python@v4
1313
with:
14-
python-version: 3.9
15-
architecture: x64
14+
python-version: 3.13
15+
architecture: arm64
1616
- uses: dtolnay/rust-toolchain@stable
17-
- name: Build wheels - x86_64
17+
- name: Build wheels - aarch64
1818
uses: PyO3/maturin-action@v1
1919
with:
20-
target: x86_64
20+
target: aarch64
2121
args: --release --out dist --sdist -m Cargo.toml -b pyo3
2222
#- name: Install built wheel - x86_64
2323
# run: |
@@ -61,7 +61,7 @@ jobs:
6161
runs-on: ubuntu-latest
6262
strategy:
6363
matrix:
64-
target: [x86_64, i686]
64+
target: [x86_64]
6565
steps:
6666
- uses: actions/checkout@v4
6767
- uses: actions/setup-python@v4

.github/workflows/builds.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,6 @@ jobs:
3838
- name: List releases
3939
run: ls target/release
4040

41-
- uses: marvinpinto/action-automatic-releases@latest
42-
with:
43-
repo_token: ${{ secrets.GITHUB_TOKEN }}
44-
prerelease: true
45-
automatic_release_tag: nightly
46-
title: Nightly Build ${{ steps.date.outputs.date }}
47-
files: |
48-
target/release/reasonable
49-
reasonable-static
5041
python:
5142
runs-on: ${{ matrix.os }}
5243
strategy:
@@ -55,7 +46,7 @@ jobs:
5546
# - stable
5647
- nightly
5748
os: [ubuntu-latest, macos-latest]
58-
python-version: ["3.9","3.10","3.11"]
49+
python-version: ["3.11", "3.12", "3.13"]
5950
steps:
6051
- uses: actions/checkout@v4
6152
- uses: actions-rs/toolchain@v1

Cargo.toml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ license-file = "LICENSE"
88
readme = "README.md"
99
description = "An OWL 2 RL reasoner with reasonable performance"
1010
edition = "2018"
11+
build = "build.rs"
1112

1213
[lib]
1314
name = "reasonable"
@@ -23,7 +24,7 @@ bench = false
2324
rdf = "0.1.4"
2425
rio_turtle = "0.7.1"
2526
rio_api = "0.7.1"
26-
oxrdf = "0.1.0"
27+
oxrdf = "0.2.4"
2728
farmhash = "1.1.5"
2829
datafrog = "2.0.1"
2930
roaring = "0.5.2"
@@ -37,9 +38,15 @@ serde_json = "1.0"
3738
serde_derive = "1.0"
3839
tinytemplate = "1.2.1"
3940
anyhow = "1.0.60"
40-
pyo3 = { version = "0.17", features = ["extension-module", "abi3-py37"]}
41+
pyo3 = { version = "0.23", features = ["extension-module"]}
4142
clap = { version = "4.3.10", features = ["derive"] }
4243

44+
[build-dependencies]
45+
pyo3-build-config = "0.23"
46+
47+
[features]
48+
abi3 = ["pyo3/abi3-py39"]
49+
4350
[profile.release]
4451
debug = true
4552

build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
fn main() {
2+
pyo3_build_config::add_extension_module_link_args();
3+
}
4+

0 commit comments

Comments
 (0)