From db340c77f6cd6e987eb9883a1a6598c568913cfb Mon Sep 17 00:00:00 2001 From: Kevin Sheppard Date: Wed, 11 Nov 2026 19:16:00 +0000 Subject: [PATCH 1/4] DOC: List the removed extras in the deprecations and removals #1021 removed the test, doc and dev extras. pip only warns about an extra that does not exist, so pip install arch[test] silently stops installing pytest. The note was only under Documentation and maintenance. --- doc/source/changes/9.0.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/source/changes/9.0.rst b/doc/source/changes/9.0.rst index 5aa2c8cd9c..8a444fd2f2 100644 --- a/doc/source/changes/9.0.rst +++ b/doc/source/changes/9.0.rst @@ -1356,6 +1356,12 @@ Deprecations and removals - Removed the unused module-level string templates ``deprecation_doc`` from ``arch.utility.array`` and ``arch.utility.exceptions`` (:issue:`945`). +- Removed the ``test``, ``doc`` and ``dev`` extras. ``pip install arch[test]`` no + longer installs pytest and the other test dependencies, and pip only warns that the + extra does not exist. Install pytest 9 or later to run the test suite. The + development dependencies are now dependency groups in ``pyproject.toml`` (see + "Documentation and maintenance") (:issue:`1021`). + Compatibility ~~~~~~~~~~~~~ - Python 3.10 to 3.15 are supported, and wheels are available for Linux (manylinux on From f0240695795f1ae7acbc6f8477912897c1fd23da Mon Sep 17 00:00:00 2001 From: Kevin Sheppard Date: Wed, 11 Nov 2026 19:16:22 +0000 Subject: [PATCH 2/4] CI: Remove the Windows on ARM test job Removes .github/workflows/windows-arm.yml (from #1003), its 9.0 note under Documentation and maintenance and the #1003 cite in the Compatibility note. The Windows on ARM wheels are still built and tested in arch-wheels, so the notes about the wheels and the OpenBLAS thread warning stay. --- .github/workflows/windows-arm.yml | 144 ------------------------------ doc/source/changes/9.0.rst | 6 +- 2 files changed, 1 insertion(+), 149 deletions(-) delete mode 100644 .github/workflows/windows-arm.yml diff --git a/.github/workflows/windows-arm.yml b/.github/workflows/windows-arm.yml deleted file mode 100644 index 4b3a11a3e7..0000000000 --- a/.github/workflows/windows-arm.yml +++ /dev/null @@ -1,144 +0,0 @@ -name: Windows ARM - -# Builds the wheel on Windows on ARM (ARM64) and runs the whole test suite on the -# installed package. numpy, scipy, pandas, statsmodels, matplotlib and numba have -# win_arm64 wheels, so arch is the only package that is compiled. -# -# The number of BLAS threads is not limited, unlike the other CI. With -# OPENBLAS_NUM_THREADS=1, numpy.linalg.inv and solve crash (access violation) for 23x23 -# to 31x31 matrices in the OpenBLAS of every numpy win_arm64 wheel (numpy#29442; see -# #1003 to #1007), and with 2 threads they hang. - -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - workflow_dispatch: - -# A new push to a pull request cancels the run of the one before -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: ${{ github.event_name == 'pull_request' }} - -jobs: - test: - name: Windows ARM64, Python ${{ matrix.python-version }} - runs-on: windows-11-arm - timeout-minutes: 90 - defaults: - run: - shell: bash - strategy: - fail-fast: false - matrix: - # statsmodels has win_arm64 wheels from Python 3.13 - python-version: ["3.13", "3.14"] - numba: [true] - include: - # numba has no win_arm64 wheels for Python 3.15, so its code is tested - # without it - - python-version: "3.15" - numba: false - env: - # The same hash seed in every pytest-xdist worker, so that they collect the same - # tests - PYTHONHASHSEED: 12345678 - MPLBACKEND: agg - - steps: - - uses: actions/checkout@v7 - with: - # setuptools_scm reads the version from the tags - fetch-depth: 0 - - - uses: actions/setup-python@v7 - with: - python-version: ${{ matrix.python-version }} - architecture: arm64 - allow-prereleases: true - - # Fail rather than test an x64 Python that runs under emulation - - name: Check that Python is ARM64 - run: | - python -c "import platform, sys; print(sys.version, platform.machine())" - python -c "import sys, sysconfig; print(sysconfig.get_platform()); sys.exit(sysconfig.get_platform() != 'win-arm64')" - - # Only wheels, so that the job fails if a dependency would have to be compiled. The - # test requirements are the test dependency group in pyproject.toml. - - name: Install the dependencies - env: - NUMBA: ${{ matrix.numba }} - run: | - packages=(numpy scipy pandas statsmodels matplotlib seaborn) - if [[ "${NUMBA}" == "true" ]]; then - packages+=(numba) - fi - python -m pip install --upgrade pip - python -m pip install --only-binary=:all: --group test "${packages[@]}" - - - name: Build the wheel - run: | - python -m pip wheel . --no-deps --wheel-dir dist -v - ls dist - - - name: Install the wheel - id: install-arch - run: python -m pip install dist/arch-*-win_arm64.whl - - # After arch is installed so that this shows what is tested - - name: List the packages - run: python -m pip list - - - name: Show the system and the BLAS - run: | - echo "Runner image: ${ImageOS} ${ImageVersion}" - powershell -NoProfile -Command "Get-CimInstance Win32_Processor | Format-List Name, Manufacturer, NumberOfCores, NumberOfLogicalProcessors" - python -c "import numpy; numpy.show_config()" - python -c "import scipy; scipy.show_config()" - - # threadpoolctl does not find this OpenBLAS, so ask it directly - - name: Check that the BLAS threads are not limited - run: | - for var in OPENBLAS_NUM_THREADS GOTO_NUM_THREADS OMP_NUM_THREADS MKL_NUM_THREADS NUMEXPR_NUM_THREADS VML_NUM_THREADS; do - if [[ -n "${!var:-}" ]]; then - echo "${var} is set to ${!var}" - exit 1 - fi - done - python - <<'EOF' - import ctypes - import glob - import os - - import numpy - - site = os.path.dirname(os.path.dirname(numpy.__file__)) - path = glob.glob(os.path.join(site, "numpy.libs", "*openblas*.dll"))[0] - lib = ctypes.CDLL(path) - names = ["scipy_openblas_get_num_threads64_", "scipy_openblas_get_num_threads"] - name = next(n for n in names if hasattr(lib, n)) - threads = getattr(lib, name)() - print(f"{os.path.basename(path)}: {threads} threads") - raise SystemExit(threads < 2) - EOF - - # arch falls back to the pure Python code when an extension cannot be imported, so - # import them directly. Outside of the source tree, so that the installed package - # is imported. - - name: Check that the compiled extensions load - working-directory: ${{ runner.temp }} - run: | - python -c "from arch.univariate import recursions; print(recursions.__file__)" - python -c "from arch.bootstrap import _samplers; print(_samplers.__file__)" - - # The tests that the other CI runs - - name: Run the tests - working-directory: ${{ runner.temp }} - run: python -X faulthandler -c "import arch; arch.test(['-n', 'auto', '-m', 'not slow', '--durations=25'])" - - # And the rest of the suite, whether or not the tests pass - - name: Run the slow tests - if: ${{ !cancelled() && steps.install-arch.outcome == 'success' }} - working-directory: ${{ runner.temp }} - run: python -X faulthandler -c "import arch; arch.test(['-n', 'auto', '-m', 'slow', '--durations=25'])" diff --git a/doc/source/changes/9.0.rst b/doc/source/changes/9.0.rst index 8a444fd2f2..d5d2d8636a 100644 --- a/doc/source/changes/9.0.rst +++ b/doc/source/changes/9.0.rst @@ -1326,10 +1326,6 @@ Documentation and maintenance added to ``__all__`` of the compiled and pure Python recursions, and ``garch_core`` and ``harch_core`` to that of the pure Python recursions, so that both export the functions and classes that they share (:issue:`1000`). -- The continuous integration builds the wheel on Windows on ARM (ARM64) and runs the - test suite, including the slow tests, on Python 3.13 to 3.15. Unlike the other jobs, - it does not limit the number of BLAS threads, because NumPy's OpenBLAS on this - platform crashes with one thread (see "Compatibility") (:issue:`1003`). - The development requirements are dependency groups in ``pyproject.toml``, which pip 25.1 or later installs, for example with ``python -m pip install --group dev`` (see the contributing guide). They replace ``requirements.txt``, ``requirements-dev.txt`` @@ -1376,7 +1372,7 @@ Compatibility Windows on ARM wheels crashes in ``numpy.linalg.inv`` and ``numpy.linalg.solve`` for 23 by 23 to 31 by 31 matrices, such as those of the lag selection of the unit root tests and of :class:`~arch.unitroot.cointegration.DynamicOLS`, and with two or three - threads it can hang (NumPy issue 29442) (:issue:`1003`). + threads it can hang (NumPy issue 29442). - Building from source requires Cython 3.1.0 or later. - Running the test suite requires pytest 9 or later. - Improved compatibility with current and upcoming releases of NumPy and pandas: the From 24ae56c13b0b2244d403e83f2305bbeb4967666f Mon Sep 17 00:00:00 2001 From: Kevin Sheppard Date: Wed, 11 Nov 2026 19:16:31 +0000 Subject: [PATCH 3/4] DOC: Set the 9.0 release date --- doc/source/changes/9.0.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/source/changes/9.0.rst b/doc/source/changes/9.0.rst index d5d2d8636a..139c0d34bb 100644 --- a/doc/source/changes/9.0.rst +++ b/doc/source/changes/9.0.rst @@ -2,8 +2,8 @@ Version 9 ========= -Release 9.0 (Unreleased) -======================== +Release 9.0 (November 11, 2026) +=============================== Highlights ~~~~~~~~~~ From 96ab49f65c696f3f9c1401aa9b170873d43fa2e6 Mon Sep 17 00:00:00 2001 From: Kevin Sheppard Date: Wed, 11 Nov 2026 19:37:10 +0000 Subject: [PATCH 4/4] CI: Restore the Windows on ARM test job This reverts commit f024069579. The Windows on ARM test job, its 9.0 note and the #1003 cite stay as they are on main. --- .github/workflows/windows-arm.yml | 144 ++++++++++++++++++++++++++++++ doc/source/changes/9.0.rst | 6 +- 2 files changed, 149 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/windows-arm.yml diff --git a/.github/workflows/windows-arm.yml b/.github/workflows/windows-arm.yml new file mode 100644 index 0000000000..4b3a11a3e7 --- /dev/null +++ b/.github/workflows/windows-arm.yml @@ -0,0 +1,144 @@ +name: Windows ARM + +# Builds the wheel on Windows on ARM (ARM64) and runs the whole test suite on the +# installed package. numpy, scipy, pandas, statsmodels, matplotlib and numba have +# win_arm64 wheels, so arch is the only package that is compiled. +# +# The number of BLAS threads is not limited, unlike the other CI. With +# OPENBLAS_NUM_THREADS=1, numpy.linalg.inv and solve crash (access violation) for 23x23 +# to 31x31 matrices in the OpenBLAS of every numpy win_arm64 wheel (numpy#29442; see +# #1003 to #1007), and with 2 threads they hang. + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + workflow_dispatch: + +# A new push to a pull request cancels the run of the one before +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + +jobs: + test: + name: Windows ARM64, Python ${{ matrix.python-version }} + runs-on: windows-11-arm + timeout-minutes: 90 + defaults: + run: + shell: bash + strategy: + fail-fast: false + matrix: + # statsmodels has win_arm64 wheels from Python 3.13 + python-version: ["3.13", "3.14"] + numba: [true] + include: + # numba has no win_arm64 wheels for Python 3.15, so its code is tested + # without it + - python-version: "3.15" + numba: false + env: + # The same hash seed in every pytest-xdist worker, so that they collect the same + # tests + PYTHONHASHSEED: 12345678 + MPLBACKEND: agg + + steps: + - uses: actions/checkout@v7 + with: + # setuptools_scm reads the version from the tags + fetch-depth: 0 + + - uses: actions/setup-python@v7 + with: + python-version: ${{ matrix.python-version }} + architecture: arm64 + allow-prereleases: true + + # Fail rather than test an x64 Python that runs under emulation + - name: Check that Python is ARM64 + run: | + python -c "import platform, sys; print(sys.version, platform.machine())" + python -c "import sys, sysconfig; print(sysconfig.get_platform()); sys.exit(sysconfig.get_platform() != 'win-arm64')" + + # Only wheels, so that the job fails if a dependency would have to be compiled. The + # test requirements are the test dependency group in pyproject.toml. + - name: Install the dependencies + env: + NUMBA: ${{ matrix.numba }} + run: | + packages=(numpy scipy pandas statsmodels matplotlib seaborn) + if [[ "${NUMBA}" == "true" ]]; then + packages+=(numba) + fi + python -m pip install --upgrade pip + python -m pip install --only-binary=:all: --group test "${packages[@]}" + + - name: Build the wheel + run: | + python -m pip wheel . --no-deps --wheel-dir dist -v + ls dist + + - name: Install the wheel + id: install-arch + run: python -m pip install dist/arch-*-win_arm64.whl + + # After arch is installed so that this shows what is tested + - name: List the packages + run: python -m pip list + + - name: Show the system and the BLAS + run: | + echo "Runner image: ${ImageOS} ${ImageVersion}" + powershell -NoProfile -Command "Get-CimInstance Win32_Processor | Format-List Name, Manufacturer, NumberOfCores, NumberOfLogicalProcessors" + python -c "import numpy; numpy.show_config()" + python -c "import scipy; scipy.show_config()" + + # threadpoolctl does not find this OpenBLAS, so ask it directly + - name: Check that the BLAS threads are not limited + run: | + for var in OPENBLAS_NUM_THREADS GOTO_NUM_THREADS OMP_NUM_THREADS MKL_NUM_THREADS NUMEXPR_NUM_THREADS VML_NUM_THREADS; do + if [[ -n "${!var:-}" ]]; then + echo "${var} is set to ${!var}" + exit 1 + fi + done + python - <<'EOF' + import ctypes + import glob + import os + + import numpy + + site = os.path.dirname(os.path.dirname(numpy.__file__)) + path = glob.glob(os.path.join(site, "numpy.libs", "*openblas*.dll"))[0] + lib = ctypes.CDLL(path) + names = ["scipy_openblas_get_num_threads64_", "scipy_openblas_get_num_threads"] + name = next(n for n in names if hasattr(lib, n)) + threads = getattr(lib, name)() + print(f"{os.path.basename(path)}: {threads} threads") + raise SystemExit(threads < 2) + EOF + + # arch falls back to the pure Python code when an extension cannot be imported, so + # import them directly. Outside of the source tree, so that the installed package + # is imported. + - name: Check that the compiled extensions load + working-directory: ${{ runner.temp }} + run: | + python -c "from arch.univariate import recursions; print(recursions.__file__)" + python -c "from arch.bootstrap import _samplers; print(_samplers.__file__)" + + # The tests that the other CI runs + - name: Run the tests + working-directory: ${{ runner.temp }} + run: python -X faulthandler -c "import arch; arch.test(['-n', 'auto', '-m', 'not slow', '--durations=25'])" + + # And the rest of the suite, whether or not the tests pass + - name: Run the slow tests + if: ${{ !cancelled() && steps.install-arch.outcome == 'success' }} + working-directory: ${{ runner.temp }} + run: python -X faulthandler -c "import arch; arch.test(['-n', 'auto', '-m', 'slow', '--durations=25'])" diff --git a/doc/source/changes/9.0.rst b/doc/source/changes/9.0.rst index 139c0d34bb..43ee34f1db 100644 --- a/doc/source/changes/9.0.rst +++ b/doc/source/changes/9.0.rst @@ -1326,6 +1326,10 @@ Documentation and maintenance added to ``__all__`` of the compiled and pure Python recursions, and ``garch_core`` and ``harch_core`` to that of the pure Python recursions, so that both export the functions and classes that they share (:issue:`1000`). +- The continuous integration builds the wheel on Windows on ARM (ARM64) and runs the + test suite, including the slow tests, on Python 3.13 to 3.15. Unlike the other jobs, + it does not limit the number of BLAS threads, because NumPy's OpenBLAS on this + platform crashes with one thread (see "Compatibility") (:issue:`1003`). - The development requirements are dependency groups in ``pyproject.toml``, which pip 25.1 or later installs, for example with ``python -m pip install --group dev`` (see the contributing guide). They replace ``requirements.txt``, ``requirements-dev.txt`` @@ -1372,7 +1376,7 @@ Compatibility Windows on ARM wheels crashes in ``numpy.linalg.inv`` and ``numpy.linalg.solve`` for 23 by 23 to 31 by 31 matrices, such as those of the lag selection of the unit root tests and of :class:`~arch.unitroot.cointegration.DynamicOLS`, and with two or three - threads it can hang (NumPy issue 29442). + threads it can hang (NumPy issue 29442) (:issue:`1003`). - Building from source requires Cython 3.1.0 or later. - Running the test suite requires pytest 9 or later. - Improved compatibility with current and upcoming releases of NumPy and pandas: the