File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -167,6 +167,8 @@ def install(
167167 args .append ("--pre" )
168168 if finder .prefer_binary :
169169 args .append ("--prefer-binary" )
170+ if finder .exclude_newer_than :
171+ args .extend (["--exclude-newer-than" , finder .exclude_newer_than .isoformat ()])
170172 args .append ("--" )
171173 args .extend (requirements )
172174 with open_spinner (f"Installing { kind } " ) as spinner :
Original file line number Diff line number Diff line change @@ -734,6 +734,10 @@ def prefer_binary(self) -> bool:
734734 def set_prefer_binary (self ) -> None :
735735 self ._candidate_prefs .prefer_binary = True
736736
737+ @property
738+ def exclude_newer_than (self ) -> datetime .datetime | None :
739+ return self ._exclude_newer_than
740+
737741 def requires_python_skipped_reasons (self ) -> list [str ]:
738742 reasons = {
739743 detail
You can’t perform that action at this time.
0 commit comments