Skip to content
Merged
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
21 changes: 10 additions & 11 deletions src/upload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,18 +65,17 @@ impl PublishOpt {

/// Set to non interactive mode if we're running on CI
pub fn non_interactive_on_ci(&mut self) {
if !self.non_interactive && env::var("CI").map(|v| v == "true").unwrap_or_default() {
let msg = "⚠️ Warning: The maturin upload and publish commands are deprecated and will be removed in the future. For more information see: https://github.com/PyO3/maturin/issues/2334";
eprintln!("{msg}");

if env::var("GITHUB_ACTIONS")
.map(|v| v == "true")
.unwrap_or_default()
{
// Also emit a warning annotation on the GH action
println!("::warning::{msg}");
}
let msg = "⚠️ Warning: The maturin upload and publish commands are deprecated and will be removed in the future. For more information see: https://github.com/PyO3/maturin/issues/2334";
eprintln!("{msg}");
if env::var("GITHUB_ACTIONS")
.map(|v| v == "true")
.unwrap_or_default()
{
// Also emit a warning annotation on the GH action
println!("::warning::{msg}");
}

if !self.non_interactive && env::var("CI").map(|v| v == "true").unwrap_or_default() {
eprintln!("🎛️ Running in non-interactive mode on CI");
self.non_interactive = true;
}
Expand Down
Loading