File tree Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 5050 env :
5151 - EXTERNAL_INSTALLATION="TRUE"
5252 before_script :
53- - pip install pre-commit --user
53+ - pip install pre-commit==v1.21.0 --user
5454 - R -q -e 'tic::before_script()'
5555 - R -q -e 'remove.packages("reticulate")' # only used for installation and uninstallation.
5656 - name : macOS_brew # install pre-commit outside
6767 env :
6868 - EXTERNAL_INSTALLATION="TRUE"
6969 before_script :
70- - pip install pre-commit --user
70+ - pip install pre-commit==v1.21.0 --user
7171 - R -q -e 'tic::before_script()'
7272 - R -q -e 'remove.packages("reticulate")' # only used for installation and uninstallation.
7373
Original file line number Diff line number Diff line change 11test_that(" documentation regarding desc is still accurate" , {
22 skip_on_cran()
3- versions <- versions :: available.versions(" desc" )
4- if (max(as.package_version(versions $ desc $ version )) > " 1.2" ) {
5- rlang :: abort(" newer version of desc on CRAN. Adapt the warning and maybe add minimal version requirement?" )
6- }
3+ versions <- versions :: available.versions(" desc" )
4+ if (max(as.package_version(versions $ desc $ version )) > " 1.2" ) {
5+ rlang :: abort(" newer version of desc on CRAN. Adapt the warning and maybe add minimal version requirement?" )
6+ }
7+ })
8+
9+ test_that(" use python3 with pip installations" , {
10+ if (Sys.Date() > as.Date(" 2020-09-30" )) {
11+ rlang :: abort(paste0(
12+ " Please unpin version requirement for pre-commit in .travis.yml " ,
13+ " for pip installations and make things work with Python3. Currently " ,
14+ " pinned version 1.21 is the last with python2 support, which is the " ,
15+ " system python in the travis R image as of May 2020."
16+ ))
17+ }
718})
You can’t perform that action at this time.
0 commit comments