Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for 3.11 #353

Merged
merged 1 commit into from
Aug 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,19 +79,19 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.9", "3.10"]
python-version: ["3.9", "3.10", "3.11"]
os: [ubuntu-latest]
include:
- os: macos-11
python-version: "3.10"
python-version: "3.11"
- os: macos-latest
python-version: "3.10"
python-version: "3.11"
- os: windows-2019
python-version: "3.10"
python-version: "3.11"
- os: windows-latest
python-version: "3.10"
python-version: "3.11"
- os: ubuntu-20.04
python-version: "3.10"
python-version: "3.11"

steps:
- name: Checkout source
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,19 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.9", "3.10"]
python-version: ["3.9", "3.10", "3.11"]
os: [ubuntu-latest]
include:
- os: macos-11
python-version: "3.10"
python-version: "3.11"
- os: macos-latest
python-version: "3.10"
python-version: "3.11"
- os: windows-2019
python-version: "3.10"
python-version: "3.11"
- os: windows-latest
python-version: "3.10"
python-version: "3.11"
- os: ubuntu-20.04
python-version: "3.10"
python-version: "3.11"

steps:
- uses: actions/checkout@v3
Expand All @@ -87,7 +87,9 @@ jobs:
run: python -m pip install tox tox-gh-actions

- name: Test with tox
run: tox
run: tox run
env:
OS: ${{ matrix.os }}

- name: Coverage
uses: codecov/codecov-action@v3
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ version: 2
build:
os: ubuntu-20.04
tools:
python: "3.10"
python: "3.11"

# Optionally declare the Python requirements required to build your docs
python:
Expand Down
55 changes: 29 additions & 26 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Topic :: Scientific/Engineering :: Image Recognition",
"Topic :: Scientific/Engineering :: Visualization",
Expand Down Expand Up @@ -82,6 +83,7 @@ line-length = 79
target-version = [
"py39",
"py310",
"py311",
]

[tool.coverage]
Expand Down Expand Up @@ -188,33 +190,34 @@ overrides."tool.ruff.isort.section-order".inline_arrays = false

[tool.tox]
legacy_tox_ini = """
[gh-actions]
python =
3.9: py39
3.10: py310
[gh-actions]
python =
3.9: py39
3.10: py310
3.11: py311

[testenv]
commands = pytest --cov --cov-report=xml
deps =
napari
pyqt5
pytest-cov
pytest-qt
pytest-xvfb ; sys_platform == 'linux'
passenv =
CI
DISPLAY
GITHUB_ACTIONS
NUMPY_EXPERIMENTAL_ARRAY_FUNCTION
PYVISTA_OFF_SCREEN
XAUTHORITY
[gh-actions:env]
OS =
ubuntu-latest: linux
macos-latest: macos
windows-latest: windows

[gh-actions:env]
PLATFORM =
ubuntu-latest: linux
macos-latest: macos
windows-latest: windows
[testenv]
commands = pytest --cov --cov-report=xml
deps =
napari
pyqt5
pytest-cov
pytest-qt
pytest-xvfb ; sys_platform == 'linux'
passenv =
CI
DISPLAY
GITHUB_ACTIONS
NUMPY_EXPERIMENTAL_ARRAY_FUNCTION
PYVISTA_OFF_SCREEN
XAUTHORITY

[tox]
envlist = py{39,310}-{linux,macos,windows}
[tox]
envlist = py{39,310,311}-{linux,macos,windows}
"""
Loading