Skip to content

Commit

Permalink
[python] Python 3.12 support
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkerl committed Sep 17, 2024
1 parent 6d0e676 commit db17d38
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-ci-full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
# os: [ubuntu-22.04, macos-12, windows-2019]
# TODO: add 3.12
# https://github.com/single-cell-data/TileDB-SOMA/issues/1849
python-version: ['3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
include:
- runs-on: ubuntu-22.04
cc: gcc-11
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/python-ci-minimal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ jobs:

matrix:
os: [ubuntu-22.04, macos-12]
python-version: ['3.8', '3.11']
# To be committed:
# python-version: ['3.8', '3.12']
# Temp debug:
python-version: ['3.8', '3.11', '3.12']
include:
- os: ubuntu-22.04
cc: gcc-11
Expand All @@ -43,6 +46,6 @@ jobs:
python_version: ${{ matrix.python-version }}
cc: ${{ matrix.cc }}
cxx: ${{ matrix.cxx }}
report_codecov: ${{ matrix.python-version == '3.11' }}
run_lint: ${{ matrix.python-version == '3.11' }}
report_codecov: ${{ matrix.python-version == '3.12' }}
run_lint: ${{ matrix.python-version == '3.12' }}
secrets: inherit
13 changes: 13 additions & 0 deletions .github/workflows/python-ci-single.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,19 @@ jobs:
CC: ${{ inputs.cc }}
CXX: ${{ inputs.cxx }}

# Temporary for
# https://github.com/single-cell-data/SOMA/pull/222
# https://github.com/single-cell-data/TileDB-SOMA/pull/3001
- name: Install somacore branch
if: ${{contains(github.event.head_commit.message, 'overwrite classes to make queries use C++ re-indexer') }}
run: |
pip uninstall somacore
git clone [email protected]:single-cell-data/SOMA.git soma
cd ./SOMA
git checkout kerl/python-3.12
pip install ./
python -c 'import somacore; print(somacore.__version__)'
- name: Show package versions
run: python scripts/show-versions.py

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/python-packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ jobs:
dotted-version: '3.10'
- undotted-version: '311'
dotted-version: '3.11'
- undotted-version: '312'
dotted-version: '3.12'
wheel-name:
- manylinux2014
- macos-x86_64
Expand Down
2 changes: 1 addition & 1 deletion apis/python/requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ ruff
pytest
pytest-cov
sparse
typeguard==4.2.1
typeguard==4.3.0
types-setuptools

0 comments on commit db17d38

Please sign in to comment.