Skip to content

Commit 78e65d1

Browse files
committed
chore: update nox and test deps
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 8ef10a0 commit 78e65d1

File tree

3 files changed

+29
-17
lines changed

3 files changed

+29
-17
lines changed

noxfile.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1+
#!/usr/bin/env -S uv run
2+
3+
# /// script
4+
# dependencies = ["nox>=2025.2.9"]
5+
# ///
6+
17
from __future__ import annotations
28

39
import argparse
410

511
import nox
612

7-
nox.needs_version = ">=2024.3.2"
8-
nox.options.sessions = ["lint", "tests", "tests_packaging"]
13+
nox.needs_version = ">=2025.2.9"
914
nox.options.default_venv_backend = "uv|virtualenv"
1015

1116

@@ -49,7 +54,7 @@ def tests_packaging(session: nox.Session) -> None:
4954
session.run("pytest", "tests/extra_python_package", *session.posargs)
5055

5156

52-
@nox.session(reuse_venv=True)
57+
@nox.session(reuse_venv=True, default=False)
5358
def docs(session: nox.Session) -> None:
5459
"""
5560
Build the docs. Pass --non-interactive to avoid serving.
@@ -83,16 +88,15 @@ def docs(session: nox.Session) -> None:
8388
session.run("sphinx-build", "--keep-going", *shared_args)
8489

8590

86-
@nox.session(reuse_venv=True)
91+
@nox.session(reuse_venv=True, default=False)
8792
def make_changelog(session: nox.Session) -> None:
8893
"""
8994
Inspect the closed issues and make entries for a changelog.
9095
"""
91-
session.install("ghapi", "rich")
92-
session.run("python", "tools/make_changelog.py")
96+
session.install_and_run_script("tools/make_changelog.py")
9397

9498

95-
@nox.session(reuse_venv=True)
99+
@nox.session(reuse_venv=True, default=False)
96100
def build(session: nox.Session) -> None:
97101
"""
98102
Build SDists and wheels.

tests/requirements.txt

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
--only-binary=:all:
2-
build~=1.0; python_version>="3.8"
2+
build>=1
33
numpy~=1.23.0; python_version=="3.8" and platform_python_implementation=="PyPy"
4-
numpy~=1.25.0; python_version=="3.9" and platform_python_implementation=='PyPy'
4+
numpy~=1.25.0; python_version=="3.9" and platform_python_implementation=="PyPy"
5+
numpy~=2.2.0; python_version=="3.10" and platform_python_implementation=="PyPy"
56
numpy~=1.26.0; platform_python_implementation=="GraalVM" and sys_platform=="linux"
6-
numpy~=1.21.5; platform_python_implementation!="PyPy" and platform_python_implementation!="GraalVM" and python_version>="3.8" and python_version<"3.10"
7-
numpy~=1.22.2; platform_python_implementation!="PyPy" and platform_python_implementation!="GraalVM" and python_version=="3.10"
8-
numpy~=1.26.0; platform_python_implementation!="PyPy" and platform_python_implementation!="GraalVM" and python_version>="3.11" and python_version<"3.13"
9-
pytest~=7.0
7+
numpy~=1.21.5; platform_python_implementation=="CPython" and python_version>="3.8" and python_version<"3.10"
8+
numpy~=1.22.2; platform_python_implementation=="CPython" and python_version=="3.10"
9+
numpy~=1.26.0; platform_python_implementation=="CPython" and python_version>="3.11" and python_version<"3.13"
10+
numpy~=2.2.0; platform_python_implementation=="CPython" and python_version=="3.13"
11+
pytest>=7
1012
pytest-timeout
11-
scipy~=1.5.4; platform_python_implementation!="PyPy" and platform_python_implementation!="GraalVM" and python_version<"3.10"
12-
scipy~=1.8.0; platform_python_implementation!="PyPy" and platform_python_implementation!="GraalVM" and python_version=="3.10" and sys_platform!='win32'
13-
scipy~=1.11.1; platform_python_implementation!="PyPy" and platform_python_implementation!="GraalVM" and python_version>="3.11" and python_version<"3.13" and sys_platform!='win32'
13+
scipy~=1.5.4; platform_python_implementation=="CPython" and python_version<"3.10"
14+
scipy~=1.8.0; platform_python_implementation=="CPython" and python_version=="3.10" and sys_platform!="win32"
15+
scipy~=1.11.1; platform_python_implementation=="CPython" and python_version>="3.11" and python_version<"3.13" and sys_platform!="win32"
16+
scipy~=1.15.2; platform_python_implementation=="CPython" and python_version=="3.13" and sys_platform!="win32"

tools/make_changelog.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
#!/usr/bin/env python3
1+
#!/usr/bin/env -S uv run
2+
3+
# /// script
4+
# dependencies = ["ghapi", "rich"]
5+
# ///
6+
27
from __future__ import annotations
38

49
import re

0 commit comments

Comments
 (0)