Skip to content
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
22 changes: 11 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ resolver = "2"

[workspace.package]
edition = "2021"
version = "0.3.63"
version = "0.3.64"
description = "Tower is the best way to host Python data apps in production"
rust-version = "1.81"
authors = ["Brad Heller <brad@tower.dev>", "Ben Lovell <ben@tower.dev>"]
Expand Down
1 change: 1 addition & 0 deletions crates/tower-cmd/src/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ where

env_vars.insert("TOWER_JWT".to_string(), session.token.jwt.to_string());
env_vars.insert("TOWER__RUNTIME__IS_LOCAL".to_string(), "true".to_string());
env_vars.insert("TOWER_ENVIRONMENT".to_string(), env.to_string());

// Load the Towerfile
let towerfile_path = path.join("Towerfile");
Expand Down
1 change: 1 addition & 0 deletions crates/tower-cmd/src/skill.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ fn append_command(out: &mut String, cmd: &Command, path: &[&str], depth: usize)
}

const WORKFLOW_HEADER: &str = r#"---
name: tower
description: Use Tower to build, run, and deploy Python data apps, pipelines, and AI agents. Covers MCP tools, Towerfile setup, local development, cloud deployment, scheduling, and secrets management.
---

Expand Down
14 changes: 0 additions & 14 deletions crates/tower-runtime/src/local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ async fn inner_execute_local_app(
) -> Result<i32, Error> {
let ctx = opts.ctx.clone();
let package = opts.package;
let environment = opts.environment;
let package_path = package.unpacked_path.clone().unwrap().to_path_buf();

// set for later on.
Expand Down Expand Up @@ -186,7 +185,6 @@ async fn inner_execute_local_app(
if is_bash_package(&package) {
let child = execute_bash_program(
&ctx,
&environment,
working_dir,
package_path,
&manifest,
Expand All @@ -212,7 +210,6 @@ async fn inner_execute_local_app(
let uv = Uv::new(opts.cache_dir, protected_mode).await?;
let env_vars = make_env_vars(
&ctx,
&environment,
&package_path,
&secrets,
&params,
Expand Down Expand Up @@ -475,7 +472,6 @@ impl App for LocalApp {

async fn execute_bash_program(
ctx: &tower_telemetry::Context,
env: &str,
cwd: PathBuf,
package_path: PathBuf,
manifest: &Manifest,
Expand All @@ -497,7 +493,6 @@ async fn execute_bash_program(
.stderr(Stdio::piped())
.envs(make_env_vars(
&ctx,
env,
&cwd,
&secrets,
&params,
Expand All @@ -524,7 +519,6 @@ fn make_env_var_key(src: &str) -> String {

fn make_env_vars(
ctx: &tower_telemetry::Context,
env: &str,
cwd: &PathBuf,
secs: &HashMap<String, String>,
params: &HashMap<String, String>,
Expand Down Expand Up @@ -566,14 +560,6 @@ fn make_env_vars(
.to_string();
res.insert("PYTHONPATH".to_string(), pythonpath);

// Inject a TOWER_ENVIRONMENT parameter so you know what environment you're running in. Empty
// environment is "default" by default.
if env.is_empty() {
res.insert("TOWER_ENVIRONMENT".to_string(), "default".to_string());
} else {
res.insert("TOWER_ENVIRONMENT".to_string(), env.to_string());
}

res.insert("PYTHONUNBUFFERED".to_string(), "x".to_string());

res
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "maturin"

[project]
name = "tower"
version = "0.3.63"
version = "0.3.64"
description = "Tower CLI and runtime environment for Tower."
authors = [{ name = "Tower Computing Inc.", email = "brad@tower.dev" }]
readme = "README.md"
Expand Down
1 change: 1 addition & 0 deletions skills/tower/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
name: tower
description: Use Tower to build, run, and deploy Python data apps, pipelines, and AI agents. Covers MCP tools, Towerfile setup, local development, cloud deployment, scheduling, and secrets management.
---

Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading