File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 13
13
# that seems to have a working IRKernel.
14
14
RSPM_CUTOFF_DATE = datetime .date (2018 , 12 , 7 )
15
15
16
+
16
17
class RBuildPack (PythonBuildPack ):
17
18
"""
18
19
Setup R for use with a repository
@@ -270,9 +271,9 @@ def get_build_scripts(self):
270
271
"""
271
272
if self .checkpoint_date < RSPM_CUTOFF_DATE :
272
273
raise RuntimeError (
273
- f'Microsoft killed MRAN, the source of R package snapshots before { RSPM_CUTOFF_DATE .strftime ("%Y-%m-%d" )} . ' \
274
- f'This repo has a snapshot date of { self .checkpoint_date .strftime ("%Y-%m-%d" )} specified in runtime.txt. ' \
275
- ' Please use a newer snapshot date'
274
+ f'Microsoft killed MRAN, the source of R package snapshots before { RSPM_CUTOFF_DATE .strftime ("%Y-%m-%d" )} . '
275
+ f'This repo has a snapshot date of { self .checkpoint_date .strftime ("%Y-%m-%d" )} specified in runtime.txt. '
276
+ " Please use a newer snapshot date"
276
277
)
277
278
278
279
cran_mirror_url = self .get_rspm_snapshot_url (self .checkpoint_date )
Original file line number Diff line number Diff line change @@ -78,8 +78,11 @@ def test_mran_dead(tmpdir, base_image):
78
78
tmpdir .chdir ()
79
79
80
80
with open ("runtime.txt" , "w" ) as f :
81
- f .write (' r-3.6-2017-06-04' )
81
+ f .write (" r-3.6-2017-06-04" )
82
82
83
83
r = buildpacks .RBuildPack (base_image )
84
- with pytest .raises (RuntimeError , match = r'^Microsoft killed MRAN, the source of R package snapshots before 2018-12-07.*' ):
85
- r .get_build_scripts ()
84
+ with pytest .raises (
85
+ RuntimeError ,
86
+ match = r"^Microsoft killed MRAN, the source of R package snapshots before 2018-12-07.*" ,
87
+ ):
88
+ r .get_build_scripts ()
You can’t perform that action at this time.
0 commit comments