sync
This commit is contained in:
parent
c8973c9249
commit
e07fc2b389
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -35,8 +35,6 @@ jobs:
|
|||||||
- { os: ubuntu-latest, target: x86_64, target-triple: x86_64-unknown-linux-musl, manylinux: musllinux_1_1 }
|
- { os: ubuntu-latest, target: x86_64, target-triple: x86_64-unknown-linux-musl, manylinux: musllinux_1_1 }
|
||||||
- { os: ubuntu-latest, target: aarch64, target-triple: aarch64-unknown-linux-gnu, manylinux: auto }
|
- { os: ubuntu-latest, target: aarch64, target-triple: aarch64-unknown-linux-gnu, manylinux: auto }
|
||||||
- { os: ubuntu-latest, target: aarch64, target-triple: aarch64-unknown-linux-musl, manylinux: musllinux_1_1 }
|
- { os: ubuntu-latest, target: aarch64, target-triple: aarch64-unknown-linux-musl, manylinux: musllinux_1_1 }
|
||||||
- { os: ubuntu-latest, target: armv7, target-triple: armv7-unknown-linux-gnueabihf, manylinux: auto }
|
|
||||||
- { os: ubuntu-latest, target: armv7, target-triple: armv7-unknown-linux-musleabihf, manylinux: musllinux_1_1 }
|
|
||||||
- { os: macos-15-intel, target: x86_64, target-triple: x86_64-apple-darwin }
|
- { os: macos-15-intel, target: x86_64, target-triple: x86_64-apple-darwin }
|
||||||
- { os: macos-latest, target: aarch64, target-triple: aarch64-apple-darwin }
|
- { os: macos-latest, target: aarch64, target-triple: aarch64-apple-darwin }
|
||||||
- { os: macos-latest, target: universal2, target-triple: x86_64-apple-darwin }
|
- { os: macos-latest, target: universal2, target-triple: x86_64-apple-darwin }
|
||||||
|
|||||||
@ -11,6 +11,6 @@ crate-type = ["cdylib"]
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
# "extension-module" tells pyo3 we want to build an extension module (skips linking against libpython.so)
|
# "extension-module" tells pyo3 we want to build an extension module (skips linking against libpython.so)
|
||||||
# "abi3-py39" tells pyo3 (and maturin) to build using the stable ABI with minimum Python version 3.9
|
# "abi3-py39" tells pyo3 (and maturin) to build using the stable ABI with minimum Python version 3.9
|
||||||
pyo3 = { version = "0.27.1", features = ["extension-module", "abi3-py38"] }
|
pyo3 = { version = "0.27.1", features = ["extension-module"] }
|
||||||
|
|
||||||
rbufr = { path = "../rbufr", features = ["python_bindings"] }
|
rbufr = { path = "../rbufr", features = ["python_bindings"] }
|
||||||
|
|||||||
@ -4,7 +4,7 @@ rbufrp - BUFR (Binary Universal Form for the Representation of meteorological da
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Optional
|
from typing import Optional, Union
|
||||||
|
|
||||||
# Import the Rust extension module
|
# Import the Rust extension module
|
||||||
from ._core import (
|
from ._core import (
|
||||||
@ -51,7 +51,7 @@ def _find_tables_directory() -> Optional[Path]:
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
def initialize_tables_path(custom_path: Optional[str | Path] = None) -> None:
|
def initialize_tables_path(custom_path: Optional[Union[str, Path]] = None) -> None:
|
||||||
if custom_path:
|
if custom_path:
|
||||||
custom_path = Path(custom_path)
|
custom_path = Path(custom_path)
|
||||||
if not custom_path.exists():
|
if not custom_path.exists():
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user