Skip to content

Commit b82e01c

Browse files
authored
Merge pull request #173 from tower/develop
v0.3.42 release
2 parents 7b2e381 + f342526 commit b82e01c

5 files changed

Lines changed: 25 additions & 20 deletions

File tree

Cargo.lock

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ resolver = "2"
44

55
[workspace.package]
66
edition = "2021"
7-
version = "0.3.41"
7+
version = "0.3.42"
88
description = "Tower is the best way to host Python data apps in production"
99
rust-version = "1.81"
1010
authors = ["Brad Heller <brad@tower.dev>"]

crates/tower-package/src/lib.rs

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,13 @@ pub const MAX_BUNDLE_SIZE: u64 = 50 * 1024 * 1024;
3535

3636
#[derive(Clone, Serialize, Deserialize, Debug)]
3737
pub struct Parameter {
38+
#[serde(default)]
3839
pub name: String,
39-
pub description: String,
40+
41+
#[serde(default)]
42+
pub description: Option<String>,
43+
44+
#[serde(default)]
4045
pub default: String,
4146
}
4247

@@ -115,7 +120,7 @@ fn get_parameters(towerfile: &Towerfile) -> Vec<Parameter> {
115120
for p in &towerfile.parameters {
116121
parameters.push(Parameter {
117122
name: p.name.clone(),
118-
description: p.description.clone(),
123+
description: Some(p.description.clone()),
119124
default: p.default.clone(),
120125
});
121126
}
@@ -190,16 +195,16 @@ impl Package {
190195
}
191196
}
192197

193-
pub async fn from_unpacked_path(path: PathBuf) -> Self {
198+
pub async fn from_unpacked_path(path: PathBuf) -> Result<Self, Error> {
194199
let manifest_path = path.join("MANIFEST");
195-
let manifest = Manifest::from_path(&manifest_path).await.unwrap();
200+
let manifest = Manifest::from_path(&manifest_path).await?;
196201

197-
Self {
202+
Ok(Self {
198203
tmp_dir: None,
199204
package_file_path: None,
200205
unpacked_path: Some(path),
201206
manifest,
202-
}
207+
})
203208
}
204209

205210
// build creates a new package from a PackageSpec. PackageSpec is typically composed of fields

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "maturin"
44

55
[project]
66
name = "tower"
7-
version = "0.3.41"
7+
version = "0.3.42"
88
description = "Tower CLI and runtime environment for Tower."
99
authors = [{ name = "Tower Computing Inc.", email = "brad@tower.dev" }]
1010
readme = "README.md"

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)