You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Restart shell so the path changes take effect - `exec $SHELL`
43
-
1.`pyenv install 3.7.16`
44
43
1.`pyenv install 3.8.16`
45
44
1.`pyenv install 3.9.16`
46
45
1.`pyenv install 3.10.9`
47
46
3. Make Python versions available in the project:
48
-
`pyenv local 3.7.16 3.8.16 3.9.16 3.10.9`
47
+
`pyenv local 3.8.16 3.9.16 3.10.9`
49
48
50
49
Note: also make sure the following lines were written into your `.bashrc` (or `.zshrc`, depending on which shell you are using):
51
50
```
@@ -66,7 +65,7 @@ can be found [here](https://black.readthedocs.io/en/stable/editor_integration.ht
66
65
Since black is installed in virtualenv, when you follow [this instruction](https://black.readthedocs.io/en/stable/editor_integration.html), `which black` might give you this
67
66
68
67
```bash
69
-
(sam37) $ where black
68
+
(sam38) $ where black
70
69
/Users/<username>/.pyenv/shims/black
71
70
```
72
71
@@ -77,11 +76,11 @@ and this will happen:
77
76
pyenv: black: command not found
78
77
79
78
The `black' command exists in these Python versions:
80
-
3.7.9/envs/sam37
81
-
sam37
79
+
3.8.16/envs/sam38
80
+
sam38
82
81
```
83
82
84
-
A simple workaround is to use `/Users/<username>/.pyenv/versions/sam37/bin/black`
83
+
A simple workaround is to use `/Users/<username>/.pyenv/versions/sam38/bin/black`
85
84
instead of `/Users/<username>/.pyenv/shims/black`.
86
85
87
86
#### Pre-commit
@@ -99,15 +98,15 @@ handy plugin that can create virtualenv.
99
98
Depending on the python version, the following commands would change to
100
99
be the appropriate python version.
101
100
102
-
1. Create Virtualenv `sam37` for Python3.7: `pyenv virtualenv 3.7.9 sam37`
103
-
1. Activate Virtualenv: `pyenv activate sam37`
101
+
1. Create Virtualenv `sam38` for Python3.8: `pyenv virtualenv 3.8.16 sam38`
102
+
1. Activate Virtualenv: `pyenv activate sam38`
104
103
105
104
### 4. Install dev version of SAM transform
106
105
107
106
We will install a development version of SAM transform from source into the
108
107
virtualenv.
109
108
110
-
1. Activate Virtualenv: `pyenv activate sam37`
109
+
1. Activate Virtualenv: `pyenv activate sam38`
111
110
1. Install dev version of SAM transform: `make init`
112
111
113
112
Running tests
@@ -121,8 +120,8 @@ Run `make test` or `make test-fast`. Once all tests pass make sure to run
121
120
122
121
### Unit testing with multiple Python versions
123
122
124
-
Currently, our officially supported Python versions are 3.7, 3.8, 3.9 and 3.10. For the most
125
-
part, code that works in Python3.7 will work in Pythons 3.8, 3.9 and 3.10. You only run into problems if you are
123
+
Currently, our officially supported Python versions are 3.8, 3.9 and 3.10. For the most
124
+
part, code that works in Python3.8 will work in Pythons 3.9 and 3.10. You only run into problems if you are
126
125
trying to use features released in a higher version (for example features introduced into Python3.10
127
126
will not work in Python3.9). If you want to test in many versions, you can create a virtualenv for
128
127
each version and flip between them (sourcing the activate script). Typically, we run all tests in
0 commit comments