From b612d33a35386b795f5c0e7740a1a49987236aa9 Mon Sep 17 00:00:00 2001 From: Wim Pomp Date: Mon, 3 Feb 2025 16:17:14 +0100 Subject: [PATCH] - do not try java things when building for docs.rs --- .gitignore | 2 +- Cargo.toml | 2 +- build.rs | 12 ++++++++---- pyproject.toml | 2 +- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index d1f43ac..9dc8179 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ /target -/Cargo.lock +Cargo.lock # Byte-compiled / optimized / DLL files __pycache__/ diff --git a/Cargo.toml b/Cargo.toml index e0d06a7..e5cb027 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ndbioimage" -version = "2025.1.0" +version = "2025.1.1" edition = "2021" authors = ["Wim Pomp "] license = "GPL-3.0-or-later" diff --git a/build.rs b/build.rs index 0f67075..37bc04e 100644 --- a/build.rs +++ b/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> { diff --git a/pyproject.toml b/pyproject.toml index a26350b..1c91e01 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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",