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