Skip to content

Commit

Permalink
Merge pull request #37 from Deep-MI/pythonbump
Browse files Browse the repository at this point in the history
remove python3.8 and add 3.12
  • Loading branch information
m-reuter committed Aug 30, 2024
2 parents d813aff + 02cec70 commit 4dac4de
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 17 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu, macos, windows]
python-version: [3.8, 3.9, "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
name: ${{ matrix.os }} - py${{ matrix.python-version }}
runs-on: ${{ matrix.os }}-latest
defaults:
Expand All @@ -28,7 +28,6 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
#architecture: 'x64'
- name: Install dependencies
run: |
python -m pip install --progress-bar off --upgrade pip setuptools wheel
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/code-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python 3.9
- name: Setup Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: '3.10'
#architecture: 'x64'
- name: Install dependencies
run: |
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@ jobs:
uses: actions/checkout@v4
with:
path: ./main
- name: Setup Python 3.9
- name: Setup Python 3.10
uses: actions/setup-python@v5
with:
python-version: 3.9
#architecture: 'x64'
python-version: '3.10'
- name: Install Linux dependencies
if: runner.os == 'Linux'
run: |
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python 3.9
- name: Setup Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.9'
#architecture: 'x64'
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --progress-bar off --upgrade pip setuptools wheel
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu, macos, windows]
python-version: [3.8, 3.9, "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
name: ${{ matrix.os }} - py${{ matrix.python-version }}
runs-on: ${{ matrix.os }}-latest
defaults:
Expand All @@ -32,7 +32,6 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
#architecture: 'x64'
- name: Install package
run: |
python -m pip install --progress-bar off --upgrade pip setuptools wheel
Expand All @@ -42,7 +41,7 @@ jobs:
- name: Run pytest
run: pytest whippersnappy --cov=whippersnappy --cov-report=xml --cov-config=pyproject.toml
- name: Upload to codecov
if: ${{ matrix.os == 'ubuntu' && matrix.python-version == 3.9 }}
if: ${{ matrix.os == 'ubuntu' && matrix.python-version == '3.10' }}
uses: codecov/codecov-action@v4
with:
files: ./coverage.xml
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ version = '1.2.0-dev'
description = 'A package to plot and capture FastSurfer and FreeSurfer-style surface overlays.'
readme = 'README.md'
license = {file = 'LICENSE'}
requires-python = '>=3.8'
requires-python = '>=3.9'
authors = [
{name = 'Martin Reuter', email = 'martin.reuter@dzne.de'},
]
Expand All @@ -26,10 +26,10 @@ classifiers = [
'Operating System :: Unix',
'Operating System :: MacOS',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Science/Research',
Expand Down Expand Up @@ -111,7 +111,7 @@ whippersnappy = ['*.ttf']

[tool.black]
line-length = 88
target-version = ['py38']
target-version = ['py310']
include = '\.pyi?$'
extend-exclude = '''
(
Expand All @@ -127,7 +127,7 @@ extend-exclude = '''
profile = 'black'
multi_line_output = 3
line_length = 88
py_version = 38
py_version = 310
extend_skip_glob = [
'setup.py',
'data/*',
Expand Down

0 comments on commit 4dac4de

Please sign in to comment.