File tree Expand file tree Collapse file tree 4 files changed +11
-8
lines changed Expand file tree Collapse file tree 4 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 25
25
strategy :
26
26
fail-fast : false
27
27
matrix :
28
- python : [3.8 ]
28
+ python : [3.9 ]
29
29
task :
30
30
- name : Style
31
31
run : |
48
48
- uses : actions/checkout@v3
49
49
50
50
- name : Setup Python
51
- uses : actions/setup-python@v4.5 .0
51
+ uses : actions/setup-python@v4.4 .0
52
52
with :
53
53
python-version : ${{ matrix.python }}
54
54
@@ -75,10 +75,13 @@ jobs:
75
75
76
76
- name : Setup virtual environment (no cache hit)
77
77
if : steps.virtualenv-cache.outputs.cache-hit != 'true'
78
+ # we run pip install twice because otherwise we get stuck into
79
+ # backtracking for pytorch. if we got for the first install, we
80
+ # will automatically get the latest version of pytorch.
78
81
run : |
79
82
test -d .venv || virtualenv -p $(which python) --copies --reset-app-data .venv
80
83
. .venv/bin/activate
81
- pip install -e .[all]
84
+ pip install . && rm -rf build && pip install -e .[all]
82
85
83
86
- name : Setup virtual environment (cache hit)
84
87
if : steps.virtualenv-cache.outputs.cache-hit == 'true'
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ requires-python = ">=3.9"
17
17
dependencies = [
18
18
" torch>=1.9" ,
19
19
" transformers>=4.5" ,
20
- " necessary>=0.3.1 " ,
21
- " trouting>=0.2.2 " ,
20
+ " necessary>=0.3.3 " ,
21
+ " trouting>=0.3.3 " ,
22
22
" ftfy>=6.1.1" ,
23
23
" platformdirs>=2.5.0" ,
24
24
" glom>=21.0.0" ,
Original file line number Diff line number Diff line change 2
2
3
3
from subprocess import call
4
4
5
- BASH_SCRIPT = '''
5
+ BASH_SCRIPT = """
6
6
#! /usr/bin/env bash
7
7
8
8
# path to the current directory
35
35
# cleanup
36
36
cd $CURRENT_DIR
37
37
rm -rf $TMP_DIR
38
- '''
38
+ """
39
39
40
40
41
41
def main ():
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ def __call__(
33
33
"{module_name} missing. Fix with 'pip install smashed[prompting]'"
34
34
"or, if you are on a Mac with Apple Silicon chip, "
35
35
"'python -m smashed.utils.install_blingfire_macos'."
36
- )
36
+ ),
37
37
)
38
38
class BlingFireSplitter (BaseWordSplitter ):
39
39
def tokenize (self , text : str ) -> List [str ]:
You can’t perform that action at this time.
0 commit comments