fix: add import for setuptools in newer versions of python

This commit is contained in:
Cameron Yick
2024-02-04 20:10:29 -05:00
parent 2fe6ef8ab4
commit 1ef303b504

View File

@@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12',]
python-version: ['3.10', '3.11', '3.12']
WITH_PANDAS: [false, true]
steps:
@@ -27,8 +27,13 @@ jobs:
- name: Install dependencies
env:
WITH_PANDAS: ${{ matrix.WITH_PANDAS }}
# Install setuptools for the newer versions
# https://docs.python.org/3/whatsnew/3.12.html
run: |
python -m pip install --upgrade pip
if [ "$(python --version | cut -d ' ' -f 2 | cut -d '.' -f 1,2)" = "3.12" ]; then
pip install setuptools
fi
python setup.py develop
python -m pip install flake8 pytest-cov coverage vcrpy black
tools/install_pandas.sh