Skip to content

Get ASV Benchmarks running again #10556

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

Draft
wants to merge 28 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
a63aa6c
Update asv.conf.json
Illviljan Jul 21, 2025
4e5f29a
Update pyproject.toml
Illviljan Jul 21, 2025
1a1e9b2
Update pyproject.toml
Illviljan Jul 21, 2025
90639b9
Update pyproject.toml
Illviljan Jul 21, 2025
5054488
Merge branch 'main' into asv_bench_fix
Illviljan Jul 23, 2025
f9d348c
Fix typo
Illviljan Jul 23, 2025
4da7f3d
use normal env
Illviljan Jul 23, 2025
9cc4174
Update asv.conf.json
Illviljan Jul 23, 2025
acd477f
Update asv.conf.json
Illviljan Jul 23, 2025
9c3614e
Update pyproject.toml
Illviljan Jul 23, 2025
cb57e9f
Update asv.conf.json
Illviljan Jul 23, 2025
6d4a8d4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 23, 2025
cb754be
Update asv.conf.json
Illviljan Jul 23, 2025
77115ea
Merge branch 'asv_bench_fix' of https://github.com/Illviljan/xarray i…
Illviljan Jul 23, 2025
30e4859
Update pyproject.toml
Illviljan Jul 23, 2025
c7f2bce
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 23, 2025
3422794
Update asv.conf.json
Illviljan Jul 23, 2025
44297b0
Merge branch 'asv_bench_fix' of https://github.com/Illviljan/xarray i…
Illviljan Jul 23, 2025
de20581
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 23, 2025
815ae48
Update asv.conf.json
Illviljan Jul 23, 2025
d59935a
Merge branch 'asv_bench_fix' of https://github.com/Illviljan/xarray i…
Illviljan Jul 23, 2025
b10e48e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 23, 2025
0fdf20c
Update asv.conf.json
Illviljan Jul 23, 2025
fe91c0b
Update asv.conf.json
Illviljan Jul 23, 2025
f221af8
Update asv.conf.json
Illviljan Jul 23, 2025
0213cc4
Merge branch 'main' into asv_bench_fix
keewis Aug 3, 2025
969074f
force `sparse>=0.15` (for benchmarks)
keewis Aug 3, 2025
5258c4c
test sparse>0.15 in the asv matrix
Illviljan Aug 4, 2025
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
2 changes: 1 addition & 1 deletion .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
env:
ASV_DIR: "./asv_bench"
CONDA_ENV_FILE: ci/requirements/environment-benchmark.yml
CONDA_ENV_FILE: ci/requirements/environment.yml

steps:
# We need the full repo to avoid this issue
Expand Down
10 changes: 5 additions & 5 deletions asv_bench/asv.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

// The Pythons you'd like to test against. If not provided, defaults
// to the current version of Python used to run `asv`.
"pythons": ["3.11"],
"pythons": ["3.13"],

// The matrix of dependencies to test. Each key is the name of a
// package (in PyPI) and the values are version numbers. An empty
Expand All @@ -59,8 +59,8 @@
// "pip+emcee": [""], // emcee is only available for install with pip.
// },
"matrix": {
"setuptools_scm": [""], // GH6609
"numpy": ["2.2"],
"setuptools": [""],
"numpy": [""],
"pandas": [""],
"netcdf4": [""],
"scipy": [""],
Expand All @@ -69,14 +69,14 @@
"distributed": [""],
"flox": [""],
"numpy_groupies": [""],
"sparse": [""],
"sparse": ["0.15"],
"cftime": [""]
},
// fix for bad builds
// https://github.com/airspeed-velocity/asv/issues/1389#issuecomment-2076131185
"build_command": [
"python -m build",
"python -mpip wheel --no-deps --no-build-isolation --no-index -w {build_cache_dir} {build_dir}"
"python -m pip wheel --no-deps --no-build-isolation --no-index -w {build_cache_dir} {build_dir}"
],
// Combinations of libraries/python versions can be excluded/included
// from the set to test. Each entry is a dictionary containing additional
Expand Down
2 changes: 1 addition & 1 deletion ci/requirements/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ dependencies:
- rasterio
- scipy
- seaborn
- sparse
- sparse>=0.15
- toolz
- types-colorama
- types-docutils
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ classifiers = [
]
description = "N-D labeled arrays and datasets in Python"
dynamic = ["version"]
license = "Apache-2.0"
# license = "Apache-2.0"
license = { file = "LICENSE.txt" }
name = "xarray"
readme = "README.md"
requires-python = ">=3.11"

dependencies = ["numpy>=1.26", "packaging>=24.1", "pandas>=2.2"]
dependencies = ["numpy>=1.26", "packaging>=24.2", "pandas>=2.2"]

# We don't encode minimum requirements here (though if we can write a script to
# generate the text from `min_deps_check.py`, that's welcome...). We do add
Expand Down
Loading