Skip to content

Commit 4fde588

Browse files
committed
update dependencies
1 parent 8cd7404 commit 4fde588

File tree

5 files changed

+20
-22
lines changed

5 files changed

+20
-22
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: ["3.9", "3.10", "3.11"]
14+
python-version: ["3.10", "3.11", "3.12"]
1515
fail-fast: false
1616
steps:
1717
- uses: actions/checkout@v3

.readthedocs.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ version: 2
55
build:
66
os: ubuntu-22.04
77
tools:
8-
python: "3.10"
8+
python: "3.11"
99

1010
sphinx:
1111
fail_on_warning: false

external_tests/helpers.py

+11-13
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import logging
66
import os
77
import sys
8-
from typing import Any, Optional
8+
from typing import Any
99

1010
import cloudpickle
1111
import numpy as np
@@ -135,18 +135,18 @@ def pystan_noncentered_schools(data, draws, chains):
135135
schools_code = """
136136
data {
137137
int<lower=0> J;
138-
real y[J];
139-
real<lower=0> sigma[J];
138+
array[J] real y;
139+
array[J] real<lower=0> sigma;
140140
}
141141
142142
parameters {
143143
real mu;
144144
real<lower=0> tau;
145-
real eta[J];
145+
array[J] real eta;
146146
}
147147
148148
transformed parameters {
149-
real theta[J];
149+
array[J] real theta;
150150
for (j in 1:J)
151151
theta[j] = mu + tau * eta[j];
152152
}
@@ -159,8 +159,8 @@ def pystan_noncentered_schools(data, draws, chains):
159159
}
160160
161161
generated quantities {
162-
vector[J] log_lik;
163-
vector[J] y_hat;
162+
array[J] real log_lik;
163+
array[J] real y_hat;
164164
for (j in 1:J) {
165165
log_lik[j] = normal_lpdf(y[j] | theta[j], sigma[j]);
166166
y_hat[j] = normal_rng(theta[j], sigma[j]);
@@ -185,10 +185,10 @@ def load_cached_models(eight_schools_data, draws, chains, libs=None):
185185
"""Load pystan, emcee, and pyro models from pickle."""
186186
here = os.path.dirname(os.path.abspath(__file__))
187187
supported = (
188-
("pystan", pystan_noncentered_schools),
188+
# ("pystan", pystan_noncentered_schools),
189189
("emcee", emcee_schools_model),
190-
("pyro", pyro_noncentered_schools),
191-
("numpyro", numpyro_schools_model),
190+
# ("pyro", pyro_noncentered_schools),
191+
# ("numpyro", numpyro_schools_model),
192192
)
193193
data_directory = os.path.join(here, "saved_models")
194194
if not os.path.isdir(data_directory):
@@ -241,9 +241,7 @@ def running_on_ci() -> bool:
241241
return os.environ.get("ARVIZ_CI_MACHINE") is not None
242242

243243

244-
def importorskip(
245-
modname: str, minversion: Optional[str] = None, reason: Optional[str] = None
246-
) -> Any:
244+
def importorskip(modname: str, minversion: str | None = None, reason: str | None = None) -> Any:
247245
"""Import and return the requested module ``modname``.
248246
249247
Doesn't allow skips on CI machine.

pyproject.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "flit_core.buildapi"
55
[project]
66
name = "arviz-base"
77
readme = "README.md"
8-
requires-python = ">=3.9"
8+
requires-python = ">=3.10"
99
license = {file = "LICENSE"}
1010
authors = [
1111
{name = "ArviZ team", email = "[email protected]"}
@@ -19,14 +19,14 @@ classifiers = [
1919
"Operating System :: OS Independent",
2020
"Programming Language :: Python",
2121
"Programming Language :: Python :: 3",
22-
"Programming Language :: Python :: 3.9",
2322
"Programming Language :: Python :: 3.10",
2423
"Programming Language :: Python :: 3.11",
24+
"Programming Language :: Python :: 3.12",
2525
]
2626
dynamic = ["version", "description"]
2727
dependencies = [
28-
"numpy>=1.20",
29-
"xarray>=0.18.0",
28+
"numpy>=1.23",
29+
"xarray>=2022.6.0",
3030
"xarray-datatree",
3131
"typing-extensions>=3.10",
3232
]

tox.ini

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22
envlist =
33
check
44
docs
5-
{py39,py310,py311}{,-coverage}
5+
{py310,py311,py312}{,-coverage}
66
# See https://tox.readthedocs.io/en/latest/example/package.html#flit
77
isolated_build = True
88
isolated_build_env = build
99

1010
[gh-actions]
1111
python =
12-
3.9: py39
1312
3.10: py310
1413
3.11: py311
14+
3.12: py312
1515

1616
[testenv]
1717
basepython =
18-
py39: python3.9
1918
py310: python3.10
2019
py311: python3.11
20+
py312: python3.12
2121
# See https://github.com/tox-dev/tox/issues/1548
2222
{check,docs,cleandocs,viewdocs,build}: python3
2323
setenv =

0 commit comments

Comments
 (0)