Struct python_packaging::wheel::WheelArchive [−][src]
pub struct WheelArchive { /* fields omitted */ }
Represents a Python wheel archive.
Implementations
impl WheelArchive
[src]
impl WheelArchive
[src]pub fn from_reader<R>(reader: R, basename: &str) -> Result<Self> where
R: Read + Seek,
[src]
pub fn from_reader<R>(reader: R, basename: &str) -> Result<Self> where
R: Read + Seek,
[src]Construct an instance from a generic reader.
basename
is the filename of the wheel. It is used to try to
locate the info directory.
pub fn archive_metadata(&self) -> Result<PythonPackageMetadata>
[src]
pub fn archive_metadata(&self) -> Result<PythonPackageMetadata>
[src]Obtain metadata about the wheel archive itself.
pub fn metadata(&self) -> Result<PythonPackageMetadata>
[src]
pub fn metadata(&self) -> Result<PythonPackageMetadata>
[src]Obtain the .dist-info/METADATA
content as a parsed object.
pub fn archive_metadata_header(&self, header: &str) -> Result<Cow<'_, str>>
[src]
pub fn archive_metadata_header(&self, header: &str) -> Result<Cow<'_, str>>
[src]Obtain the first header value from the archive metadata file.
pub fn archive_metadata_headers(
&self,
header: &str
) -> Result<Vec<Cow<'_, str>>>
[src]
pub fn archive_metadata_headers(
&self,
header: &str
) -> Result<Vec<Cow<'_, str>>>
[src]Obtain values of all headers from the archive metadata file.
pub fn wheel_version(&self) -> Result<Cow<'_, str>>
[src]
pub fn wheel_version(&self) -> Result<Cow<'_, str>>
[src]Obtain the version number of the wheel specification used to build this wheel.
pub fn wheel_generator(&self) -> Result<Cow<'_, str>>
[src]
pub fn wheel_generator(&self) -> Result<Cow<'_, str>>
[src]Obtain the generator of the wheel archive.
pub fn root_is_purelib(&self) -> Result<bool>
[src]
pub fn root_is_purelib(&self) -> Result<bool>
[src]Whether Root-Is-Purelib
is set.
pub fn dist_info_files(&self) -> Vec<File>
[src]
pub fn dist_info_files(&self) -> Vec<File>
[src]Obtain files in the .dist-info/ directory.
The returned PathBuf
are prefixed with the appropriate *.dist-info
directory.
pub fn purelib_files(&self) -> Vec<File>
[src]
pub fn purelib_files(&self) -> Vec<File>
[src]Obtain files that should be installed to purelib
.
*.data/purelib/
prefix is stripped from returned PathBuf
.
pub fn platlib_files(&self) -> Vec<File>
[src]
pub fn platlib_files(&self) -> Vec<File>
[src]Obtain files that should be installed to platlib
.
*.data/platlib/
prefix is stripped from returned PathBuf
.
pub fn headers_files(&self) -> Vec<File>
[src]
pub fn headers_files(&self) -> Vec<File>
[src]Obtain files that should be installed to headers
.
*.data/headers/
prefix is stripped from returned PathBuf
.
pub fn scripts_files(&self) -> Vec<File>
[src]
pub fn scripts_files(&self) -> Vec<File>
[src]Obtain files that should be installed to scripts
.
*.data/scripts/
prefix is stripped from returned PathBuf
.
TODO support optional argument to rewrite #!python
shebangs.
pub fn data_files(&self) -> Vec<File>
[src]
pub fn data_files(&self) -> Vec<File>
[src]Obtain files that should be installed to data
.
*.data/data/
prefix is stripped from returned PathBuf
.
pub fn regular_files(&self) -> Vec<File>
[src]
pub fn regular_files(&self) -> Vec<File>
[src]Obtain normal files not part of metadata or special files.
These are likely installed as-is.
The returned PathBuf
has the same path as the file in the
wheel archive.
pub fn python_resources<'a>(
&self,
cache_tag: &str,
suffixes: &PythonModuleSuffixes,
emit_files: bool,
classify_files: bool
) -> Result<Vec<PythonResource<'a>>>
[src]
pub fn python_resources<'a>(
&self,
cache_tag: &str,
suffixes: &PythonModuleSuffixes,
emit_files: bool,
classify_files: bool
) -> Result<Vec<PythonResource<'a>>>
[src]Obtain PythonResource
for files within the wheel.
Auto Trait Implementations
impl RefUnwindSafe for WheelArchive
impl Send for WheelArchive
impl Sync for WheelArchive
impl Unpin for WheelArchive
impl UnwindSafe for WheelArchive
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self