Skip to content

Commit

Permalink
bump minimum Python to 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasdiener committed Dec 22, 2024
1 parent 82b0f30 commit 90b1c50
Show file tree
Hide file tree
Showing 9 changed files with 128 additions and 148 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
strategy:
fail-fast: true
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.x']
python-version: ['3.10', '3.11', '3.12', '3.x']
os: [ubuntu-latest, macos-13]

steps:
Expand Down Expand Up @@ -175,6 +175,8 @@ jobs:
python-version: '3.x'
- name: "Main Script"
run: |
set -x
sudo apt-get update && sudo apt-get install -y libopenmpi-dev
curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/main/prepare-and-run-mypy.sh
export EXTRA_INSTALL="pytools numpy types-psutil pymbolic mpi4py matplotlib pylab"
. ./prepare-and-run-mypy.sh python3
Expand Down
3 changes: 2 additions & 1 deletion examples/log-mpi.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#!/usr/bin/env python3

import logging
from collections.abc import Callable
from random import uniform
from time import sleep
from typing import Any, Callable
from typing import Any
from warnings import warn

from mpi4py import MPI
Expand Down
3 changes: 1 addition & 2 deletions examples/optional-log.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from contextlib import nullcontext
from random import uniform
from time import sleep
from typing import Union

from logpyle import (
IntervalTimer,
Expand Down Expand Up @@ -32,7 +31,7 @@ def main(use_logpyle: bool) -> None: # noqa: C901
if logmgr:
vis_timer = IntervalTimer("t_vis", "Time spent visualizing")
logmgr.add_quantity(vis_timer)
time_vis: Union[_SubTimer, nullcontext[None]] = vis_timer.get_sub_timer()
time_vis: _SubTimer | nullcontext[None] = vis_timer.get_sub_timer()
else:
time_vis = nullcontext()

Expand Down
2 changes: 1 addition & 1 deletion logpyle/HTMLalyzer/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ async def store_file(event: Any) -> None:
cursor = run_db.db.execute("select * from runs")
columns = [col[0] for col in cursor.description]
vals = list(next(iter(cursor)))
for (col, val) in zip(columns, vals):
for (col, val) in zip(columns, vals, strict=False):
file_dict[id].constants[col] = val

# extract quantities from sqlite file
Expand Down
Loading

0 comments on commit 90b1c50

Please sign in to comment.