Skip to content

Commit

Permalink
chore: fix python 3.9 (#24)
Browse files Browse the repository at this point in the history
* chore: fix python 3.9

* remove update-meson precommit
  • Loading branch information
tlambert03 authored Dec 3, 2024
1 parent 335eb5d commit be7035b
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.12"]
python-version: ["3.9", "3.13"]
platform: [windows-latest, ubuntu-latest, macos-latest]

steps:
Expand Down
18 changes: 10 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,6 @@ repos:
- id: clang-format
args: ["--style={ BasedOnStyle: Google, ColumnLimit: 96, AllowShortCaseLabelsOnASingleLine: true }", -i]

- repo: local
hooks:
- id: run-version
name: update-meson-version
entry: bash -c 'meson rewrite kwargs set project / version $(python scripts/extract_version.py) 2>/dev/null'
language: system
files: .*

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.1
hooks:
Expand All @@ -42,3 +34,13 @@ repos:
files: "^src/"
additional_dependencies:
- numpy

- repo: local
hooks:
- id: run-version
name: update-meson-version
entry: bash -c 'meson rewrite kwargs set project / version $(python scripts/extract_version.py) 2>/dev/null'
language: system
files: .*
exclude: "CI=true"
stages: [manual]
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
project(
'pymmcore-nano',
'cpp',
version : '11.2.1.71.0.dev0',
version : '11.2.1.71.0.dev1',
meson_version : '>= 1.6.0',
default_options : ['cpp_std=c++17']
)
Expand Down
2 changes: 1 addition & 1 deletion src/_pymmcore_nano.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace nb = nanobind;

using namespace nb::literals;

const std::string PYMMCORE_NANO_VERSION = "0.dev0";
const std::string PYMMCORE_NANO_VERSION = "0.dev1";

///////////////// NUMPY ARRAY HELPERS ///////////////////

Expand Down
1 change: 1 addition & 0 deletions tests/test_core.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
import enum
from pathlib import Path
import time
Expand Down
2 changes: 2 additions & 0 deletions tests/test_image.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import pymmcore_nano as pmn
import numpy as np
import numpy.testing as npt
Expand Down

0 comments on commit be7035b

Please sign in to comment.