pub struct PythonShape {
pub pyproject_toml: Option<String>,
pub uv_toml: Option<String>,
pub uv_lock: bool,
}Expand description
The structural facts of the target’s uv project that the python release relies on: a static version, a lock to write it into, and the uv the project requires.
Fields§
§pyproject_toml: Option<String>The text of the target’s pyproject.toml, or None where none
reads.
uv_toml: Option<String>The text of the target’s uv.toml, or None where none reads.
uv_lock: boolWhether uv.lock is a file at the target.
Implementations§
Source§impl PythonShape
impl PythonShape
Sourcepub fn uv_required(&self) -> Option<String>
pub fn uv_required(&self) -> Option<String>
The exact uv version the project requires through
required-version, as uv itself reads it: a bare
<major>.<minor>.<patch> or one behind ==. A range is no exact
requirement.
Where uv.toml exists, uv reads it alone and ignores [tool.uv] of
pyproject.toml beside it, so uv.toml alone answers here too. Only
a target without uv.toml answers from pyproject.toml.
Trait Implementations§
Source§impl Clone for PythonShape
impl Clone for PythonShape
Source§impl Debug for PythonShape
impl Debug for PythonShape
Source§impl Default for PythonShape
impl Default for PythonShape
impl Eq for PythonShape
Source§impl PartialEq for PythonShape
impl PartialEq for PythonShape
impl StructuralPartialEq for PythonShape
Auto Trait Implementations§
impl Forget for PythonShape
impl Freeze for PythonShape
impl Move for PythonShape
impl RefUnwindSafe for PythonShape
impl Send for PythonShape
impl Sync for PythonShape
impl Unpin for PythonShape
impl UnsafeUnpin for PythonShape
impl UnwindSafe for PythonShape
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.