Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): update pyo3 requirement from 0.21.2 to 0.22.2 #204

Merged
merged 4 commits into from
Sep 6, 2024
Merged
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
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ggetrs"
version = "0.1.81"
version = "0.1.82"
edition = "2021"
license = "MIT"
description = "Efficient querying of biological databases from the command line"
Expand Down Expand Up @@ -30,7 +30,7 @@ futures = "0.3.24"
indicatif = "0.17.5"
mysql = "25.0.1"
polars = { version = "0.42.0", default-features = false, features = ["json"] }
pyo3 = { version = "0.21.2", features = ["extension-module", "anyhow"] }
pyo3 = { version = "0.22.2", features = ["extension-module", "anyhow"] }
regex = "1.6.0"
reqwest = { version = "0.12.5", features = [
"json",
Expand Down
3 changes: 2 additions & 1 deletion src/blast/python.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ use pyo3::{

#[pyfunction(name = "blast")]
#[pyo3(
text_signature = "(query, program = None, database = None, limit = 50, expect = 10.0, low_comp_filter = False, megablast = True)"
signature = (query, program = None, database = None, limit = None, expect = None, low_comp_filter = None, megablast = None)
)]
#[allow(clippy::too_many_arguments)]

pub fn python_blast<'py>(
py: Python<'py>,
query: &str,
Expand Down
4 changes: 4 additions & 0 deletions src/ensembl/python.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use pyo3::{

#[pyfunction(name = "search")]
#[allow(clippy::needless_pass_by_value)]
#[pyo3(signature = (search_terms, database = None, species = None, db_type = None, release = None, assembly = None))]
pub fn python_ensembl_search<'py>(
py: Python<'py>,
search_terms: Vec<String>,
Expand Down Expand Up @@ -39,6 +40,7 @@ pub fn python_ensembl_search<'py>(
#[pyfunction(name = "database")]
#[must_use]
#[allow(clippy::needless_pass_by_value)]
#[pyo3(signature = (filter = None))]
pub fn python_ensembl_database(_py: Python, filter: Option<String>) -> Vec<String> {
let results = database(&filter).expect("Could not query ensembl SQL");
results.as_vec()
Expand All @@ -50,6 +52,7 @@ pub fn python_ensembl_release(_py: Python) -> usize {
}

#[pyfunction(name = "reference")]
#[pyo3(signature = (species = None, release = None, datatype = None))]
pub fn python_ensembl_reference<'py>(
py: Python<'py>,
species: Option<&str>,
Expand Down Expand Up @@ -87,6 +90,7 @@ pub fn python_ensembl_reference<'py>(
}

#[pyfunction(name = "species")]
#[pyo3(signature = (release = None, datatype = None))]
pub fn python_ensembl_species(
_py: Python,
release: Option<usize>,
Expand Down
2 changes: 1 addition & 1 deletion src/info/python.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use pyo3::{
};

#[pyfunction(name = "info")]
#[pyo3(text_signature = "(search_terms, species = 'homo_sapiens', taxon_id = 9606)")]
#[pyo3(signature = (search_terms, species = None, taxon_id = None))]
#[allow(clippy::needless_pass_by_value)]
pub fn python_info(
py: Python<'_>,
Expand Down
6 changes: 5 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
use pyo3::{pymodule, types::PyModule, wrap_pyfunction, Bound, PyResult, Python};
use pyo3::{
pymodule,
types::{PyModule, PyModuleMethods},
wrap_pyfunction, Bound, PyResult, Python,
};

/// `Enrichr` submodule
pub mod enrichr;
Expand Down
2 changes: 1 addition & 1 deletion src/seq/python.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use anyhow::{bail, Result};
use pyo3::{pyfunction, types::PyList, Bound, Python};

#[pyfunction(name = "seq")]
#[pyo3(text_signature = "(search_terms, translate = False, db_name = 'homo_sapiens')")]
#[pyo3(signature = (search_terms, translate = None, species = None))]
#[allow(clippy::needless_pass_by_value)]
pub fn python_seq(
py: Python<'_>,
Expand Down
2 changes: 1 addition & 1 deletion src/ucsc/python.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use pyo3::{
};

#[pyfunction(name = "blat")]
#[pyo3(text_signature = "(sequence, seqtype = 'dna', db_name = 'hg38')")]
#[pyo3(signature = (sequence, seqtype = None, db_name = None))]
pub fn python_ucsc_blat<'py>(
py: Python<'py>,
sequence: &str,
Expand Down
Loading