Skip to content

Commit 6d35ff3

Browse files
committed
Remove file.publisher_url which is no longer used.
1 parent 9914be2 commit 6d35ff3

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

warehouse/packaging/models.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -842,23 +842,6 @@ def __table_args__(cls): # noqa
842842
passive_deletes=True,
843843
)
844844

845-
@property
846-
def publisher_url(self) -> str | None:
847-
event_tag = self.Event.tag # type: ignore[attr-defined]
848-
event_additional = self.Event.additional # type: ignore[attr-defined]
849-
850-
try:
851-
release_event = self.events.where(
852-
sql.and_(
853-
event_tag == EventTag.File.FileAdd,
854-
event_additional["publisher_url"].as_string().is_not(None),
855-
)
856-
).one()
857-
except (NoResultFound, MultipleResultsFound):
858-
return None
859-
860-
return release_event.additional["publisher_url"]
861-
862845
@property
863846
def uploaded_via_trusted_publisher(self) -> bool:
864847
"""Return True if the file was uploaded via a trusted publisher."""

0 commit comments

Comments
 (0)