Skip to content

Commit

Permalink
remove the pip backend
Browse files Browse the repository at this point in the history
remove the pip backend
  • Loading branch information
ripytide committed Sep 29, 2024
1 parent d77e010 commit 88a4bf9
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 111 deletions.
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ flatpak_systemwide = true

# Backends to disable from all pacdef behavior. See the README.md for
# the list of backend names
disabled_backends = ["pip"]
disabled_backends = ["apt"]

# Which group files apply for which hostnames
[hostname_groups]
Expand Down
1 change: 0 additions & 1 deletion groups/example_group.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ cargo = [
"feature1",
] },
]
pip = ["pacdef"]
pipx = ["pacdef"]
apt = ["pacdef"]
xbps = ["pacdef"]
Expand Down
3 changes: 1 addition & 2 deletions src/backends/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ pub mod arch;
pub mod cargo;
pub mod dnf;
pub mod flatpak;
pub mod pip;
pub mod pipx;
pub mod rustup;
pub mod xbps;
Expand All @@ -17,7 +16,7 @@ use serde::{Deserialize, Serialize};

macro_rules! apply_public_backends {
($macro:ident) => {
$macro! { Arch, Apt, Cargo, Dnf, Flatpak, Pip, Pipx, Rustup, Xbps }
$macro! { Arch, Apt, Cargo, Dnf, Flatpak, Pipx, Rustup, Xbps }
};
}
pub(crate) use apply_public_backends;
Expand Down
103 changes: 0 additions & 103 deletions src/backends/pip.rs

This file was deleted.

4 changes: 2 additions & 2 deletions src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ impl MainArguments {
.ok_or(eyre!("getting the default pacdef config directory"))?
};

let config = Config::load(&config_dir).context("loading config file")?;
let config = Config::load(&config_dir).wrap_err("loading config file")?;
let groups =
Groups::load(&config_dir, &hostname, &config).context("failed to load groups")?;
Groups::load(&config_dir, &hostname, &config).wrap_err("failed to load groups")?;

if groups.is_empty() {
log::warn!("no group files found");
Expand Down
2 changes: 1 addition & 1 deletion src/groups.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ impl Groups {
}

for group_name in config.hostname_groups.get(hostname).wrap_err(format!(
"no hostname entry in hostname_groups config for the hostname: {hostname}"
"no hostname entry in the hostname_groups config for the hostname: {hostname}"
))? {
let mut group_file = group_dir.join(group_name);
group_file.set_extension("toml");
Expand Down
1 change: 0 additions & 1 deletion src/prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ pub use crate::backends::arch::{
pub use crate::backends::cargo::Cargo;
pub use crate::backends::dnf::{Dnf, DnfInstallOptions, DnfQueryInfo};
pub use crate::backends::flatpak::{Flatpak, FlatpakQueryInfo};
pub use crate::backends::pip::{Pip, PipQueryInfo};
pub use crate::backends::pipx::Pipx;
pub use crate::backends::rustup::{
Rustup, RustupInstallOptions, RustupModificationOptions, RustupQueryInfo,
Expand Down

0 comments on commit 88a4bf9

Please sign in to comment.