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(
167
167
args .append ("--pre" )
168
168
if finder .prefer_binary :
169
169
args .append ("--prefer-binary" )
170
+ if finder .exclude_newer_than :
171
+ args .extend (["--exclude-newer-than" , finder .exclude_newer_than .isoformat ()])
170
172
args .append ("--" )
171
173
args .extend (requirements )
172
174
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:
734
734
def set_prefer_binary (self ) -> None :
735
735
self ._candidate_prefs .prefer_binary = True
736
736
737
+ @property
738
+ def exclude_newer_than (self ) -> datetime .datetime | None :
739
+ return self ._exclude_newer_than
740
+
737
741
def requires_python_skipped_reasons (self ) -> list [str ]:
738
742
reasons = {
739
743
detail
You can’t perform that action at this time.
0 commit comments