Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions crates/peryx-ecosystem-pypi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ mod quota;
#[cfg(feature = "serving")]
mod requirement;
#[cfg(feature = "serving")]
pub mod retention;
#[cfg(feature = "serving")]
pub mod search_pypi;
mod serial;
#[cfg(feature = "serving")]
Expand All @@ -58,6 +60,8 @@ mod version;
#[cfg(feature = "serving")]
pub use quota::quota_reservation;
#[cfg(feature = "serving")]
pub use retention::evaluate_retention;
#[cfg(feature = "serving")]
pub use search_pypi::PypiIndexer;
#[cfg(feature = "serving")]
pub use serving::PypiServing;
Expand Down
2 changes: 1 addition & 1 deletion crates/peryx-ecosystem-pypi/src/policy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ fn facts_from_filename(filename: &str, size: Option<u64>) -> ArtifactFacts {
/// Parse a Simple-API `upload-time` (RFC 3339, per PEP 700) into a Unix timestamp. A value without an
/// offset, or otherwise unparseable, yields `None`, which the release-delay rule treats as a missing
/// upload time.
fn parse_upload_time(value: &str) -> Option<i64> {
pub(crate) fn parse_upload_time(value: &str) -> Option<i64> {
time::OffsetDateTime::parse(value, &time::format_description::well_known::Rfc3339)
.ok()
.map(time::OffsetDateTime::unix_timestamp)
Expand Down
Loading
Loading