- do not try java things when building for docs.rs
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,5 +1,5 @@
|
||||
/target
|
||||
/Cargo.lock
|
||||
Cargo.lock
|
||||
|
||||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "ndbioimage"
|
||||
version = "2025.1.0"
|
||||
version = "2025.1.1"
|
||||
edition = "2021"
|
||||
authors = ["Wim Pomp <w.pomp@nki.nl>"]
|
||||
license = "GPL-3.0-or-later"
|
||||
|
||||
12
build.rs
12
build.rs
@@ -6,10 +6,14 @@ use retry::{delay, delay::Exponential, retry};
|
||||
fn main() -> anyhow::Result<()> {
|
||||
println!("cargo:rerun-if-changed=build.rs");
|
||||
|
||||
Ok(retry(
|
||||
Exponential::from_millis(1000).map(delay::jitter).take(4),
|
||||
deploy_java_artifacts,
|
||||
)?)
|
||||
if std::env::var("DOCS_RS").is_ok() {
|
||||
Ok(retry(
|
||||
Exponential::from_millis(1000).map(delay::jitter).take(4),
|
||||
deploy_java_artifacts,
|
||||
)?)
|
||||
} else {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
fn deploy_java_artifacts() -> Result<(), J4RsError> {
|
||||
|
||||
@@ -4,7 +4,7 @@ build-backend = "maturin"
|
||||
|
||||
[project]
|
||||
name = "ndbioimage_rs"
|
||||
requires-python = ">=3.8"
|
||||
requires-python = ">=3.10"
|
||||
classifiers = [
|
||||
"Programming Language :: Rust",
|
||||
"Programming Language :: Python :: Implementation :: CPython",
|
||||
|
||||
Reference in New Issue
Block a user