File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 1616 - ' 3.9'
1717 - ' 3.10'
1818 - ' 3.11'
19-
19+ - ' 3.12 '
2020 env :
2121 PYTHON_VERSION : ${{ matrix.python-version }}
2222 steps :
2929 python-version : ${{ matrix.python-version }}
3030
3131 - name : Install pip
32- run : pip install --upgrade pip
32+ run : pip install --upgrade pip setuptools
3333
3434 - name : Install development dependencies
3535 run : pip install --upgrade -r dev-requirements.txt
4141 run : pytest tests --cov=./
4242
4343 - name : Run lint
44+ if : matrix.python-version != '3.12' # new lint rules in 3.12 don't pass
4445 run : prospector --profile ./prospector.yaml -t dodgy -t mccabe -t profile-validator -t pyflakes -t pylint
4546
4647 - name : Run rstcheck
6162 - ' 3.9'
6263 - ' 3.10'
6364 - ' 3.11'
64-
65+ - ' 3.12 '
6566 env :
6667 PYTHON_VERSION : ${{ matrix.python-version }}
6768 steps :
7475 python-version : ${{ matrix.python-version }}
7576
7677 - name : Install pip
77- run : pip install --upgrade pip
78+ run : pip install --upgrade pip setuptools
7879
7980 - name : Install dependencies
8081 run : |
Original file line number Diff line number Diff line change 2121# See the License for the specific language governing permissions and
2222# limitations under the License.
2323
24- import imp
2524import io
2625import os
2726from setuptools import setup , find_packages
27+ from importlib .machinery import SourceFileLoader
2828
29- version = imp .load_source (
30- 'databricks_cli.version' , os .path .join ('databricks_cli' , 'version.py' )).version
29+ path_to_module = os .path .join ('databricks_cli' , 'version.py' )
30+ loaded_module = SourceFileLoader ('databricks_cli.version' , path_to_module ).load_module ()
31+ version = loaded_module .version
3132
3233setup (
3334 name = 'databricks-cli' ,
You can’t perform that action at this time.
0 commit comments