mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 02:48:17 +00:00
Add --no-editable
support to uv sync
and uv export
(#7371)
## Summary Closes https://github.com/astral-sh/uv/issues/5792.
This commit is contained in:
parent
bb0ffa32e4
commit
778da3350a
17 changed files with 362 additions and 22 deletions
17
crates/uv-configuration/src/editable.rs
Normal file
17
crates/uv-configuration/src/editable.rs
Normal file
|
@ -0,0 +1,17 @@
|
|||
#[derive(Debug, Default, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum EditableMode {
|
||||
#[default]
|
||||
Editable,
|
||||
NonEditable,
|
||||
}
|
||||
|
||||
impl EditableMode {
|
||||
/// Determine the editable mode based on the command-line arguments.
|
||||
pub fn from_args(no_editable: bool) -> Self {
|
||||
if no_editable {
|
||||
Self::NonEditable
|
||||
} else {
|
||||
Self::Editable
|
||||
}
|
||||
}
|
||||
}
|
|
@ -4,6 +4,7 @@ pub use concurrency::*;
|
|||
pub use config_settings::*;
|
||||
pub use constraints::*;
|
||||
pub use dev::*;
|
||||
pub use editable::*;
|
||||
pub use export_format::*;
|
||||
pub use extras::*;
|
||||
pub use hash::*;
|
||||
|
@ -22,6 +23,7 @@ mod concurrency;
|
|||
mod config_settings;
|
||||
mod constraints;
|
||||
mod dev;
|
||||
mod editable;
|
||||
mod export_format;
|
||||
mod extras;
|
||||
mod hash;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue