Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo build --verbose
- run: cargo test --verbose
- run: cargo build --verbose -F 3di
- run: cargo build --verbose -F python
8 changes: 2 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ include = [
"/LICENSE",
"/NOTICE",
"/src",
"/python_mini3di",
"/tests"
]
keywords = ["bioinformatics", "genomics", "sequencing", "k-mer", "sketch"]
Expand All @@ -29,7 +28,7 @@ categories = ["command-line-utilities", "science"]
crate-type = ["cdylib", "lib"]

[features]
3di = ["dep:pyo3", "dep:pyo3-build-config"]
python = ["dep:pyo3"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
# data structures
Expand All @@ -48,7 +47,7 @@ memmap2 = "0.9"
arrayref = "0.3"
num-traits = "0.2"
# ffi
pyo3 = { version = "0.21", features = ["auto-initialize"], optional = true }
pyo3 = { version = "0.21", features = ["abi3-py310"], optional = true }
# logging
log = "0.4"
simple_logger = { version = "4", features = ["stderr"] }
Expand Down Expand Up @@ -101,9 +100,6 @@ js-sys = {version = "0.3.51" }



[build-dependencies]
pyo3-build-config = {version = "0.22", optional = true}

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
# testing
snapbox = "0.6.21"
Expand Down
18 changes: 18 additions & 0 deletions maturin/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[build-system]
requires = ["maturin>=1.7,<2"]
build-backend = "maturin"

[project]
name = "sketchlib"
version = "0.3.0"
description = "Python bindings for sketchlib.rust"
requires-python = ">=3.10"
license = "Apache-2.0"
authors = [
{ name = "John Lees", email = "jlees@ebi.ac.uk" },
]

[tool.maturin]
manifest-path = "../Cargo.toml"
features = ["python"]
module-name = "sketchlib"
49 changes: 0 additions & 49 deletions python_mini3di/3di_convert.py

This file was deleted.

Loading
Loading