diff --git a/.github/workflows/conda-package.yml b/.github/workflows/conda-package.yml index 30266a4ddf5f..386e6b19685e 100644 --- a/.github/workflows/conda-package.yml +++ b/.github/workflows/conda-package.yml @@ -354,6 +354,9 @@ jobs: TEST_CHANNELS: '-c ${{ env.channel-path }} ${{ env.channels-list }}' MAMBA_NO_LOW_SPEED_LIMIT: 1 + - name: Install OCL CPU RT from Intel channel + run: mamba install intel-opencl-rt=*=intel_* ${{ env.channels-list }} + - name: List installed packages run: mamba list diff --git a/.github/workflows/cron-run-tests.yaml b/.github/workflows/cron-run-tests.yaml index d13048cc28d0..ff3fe6780700 100644 --- a/.github/workflows/cron-run-tests.yaml +++ b/.github/workflows/cron-run-tests.yaml @@ -92,6 +92,9 @@ jobs: run: | mamba install ${{ env.package-name }}=${{ steps.find_latest_tag.outputs.tag }} ${{ env.test-packages }} ${{ env.channels-list }} + - name: Install OCL CPU RT from Intel channel + run: mamba install intel-opencl-rt=*=intel_* ${{ env.channels-list }} + - name: List installed packages run: mamba list diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b0aa661eea84..c9abfe95c89e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/PyCQA/bandit - rev: '1.8.6' + rev: '1.9.1' hooks: - id: bandit pass_filenames: false @@ -53,7 +53,7 @@ repos: - id: rst-inline-touching-normal - id: text-unicode-replacement-char - repo: https://github.com/asottile/pyupgrade - rev: v3.21.1 + rev: v3.21.2 hooks: - id: pyupgrade - repo: https://github.com/codespell-project/codespell @@ -94,7 +94,7 @@ repos: - id: clang-format args: ["-i"] - repo: https://github.com/gitleaks/gitleaks - rev: v8.29.0 + rev: v8.29.1 hooks: - id: gitleaks - repo: https://github.com/jumanjihouse/pre-commit-hooks @@ -124,7 +124,7 @@ repos: - id: pretty-format-toml args: [--autofix] - repo: https://github.com/rhysd/actionlint - rev: v1.7.8 + rev: v1.7.9 hooks: - id: actionlint - repo: https://github.com/BlankSpruce/gersemi diff --git a/CHANGELOG.md b/CHANGELOG.md index d2b283086e33..34a0610bd185 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,7 @@ Also, that release drops support for Python 3.9, making Python 3.10 the minimum * Refactored `dpnp.fft` and `dpnp.random` submodules by removing wildcard imports and defining explicit public exports [#2649](https://github.com/IntelPython/dpnp/pull/2649) * Added support for the `out` keyword to accept a tuple, bringing ufunc signatures into alignment with those in NumPy [#2664](https://github.com/IntelPython/dpnp/pull/2664) * Unified public API definitions in `dpnp.linalg` and `dpnp.scipy` submodules [#2663](https://github.com/IntelPython/dpnp/pull/2663) +* Aligned the signature of `dpnp.reshape` function with Python array API by making `shape` a required argument [#2673](https://github.com/IntelPython/dpnp/pull/2673) ### Deprecated diff --git a/dpnp/dpnp_iface_manipulation.py b/dpnp/dpnp_iface_manipulation.py index cfd0bdca637a..7d4eddab6e44 100644 --- a/dpnp/dpnp_iface_manipulation.py +++ b/dpnp/dpnp_iface_manipulation.py @@ -3013,7 +3013,7 @@ def require(a, dtype=None, requirements=None, *, like=None): return arr -def reshape(a, /, shape=None, order="C", *, copy=None): +def reshape(a, /, shape, order="C", *, copy=None): """ Gives a new shape to an array without changing its data. @@ -3028,8 +3028,6 @@ def reshape(a, /, shape=None, order="C", *, copy=None): an integer, then the result will be a 1-D array of that length. One shape dimension can be -1. In this case, the value is inferred from the length of the array and remaining dimensions. - - Default: ``None``. order : {None, "C", "F", "A"}, optional Read the elements of `a` using this index order, and place the elements into the reshaped array using this index order. ``"C"`` @@ -3113,11 +3111,6 @@ def reshape(a, /, shape=None, order="C", *, copy=None): """ - if shape is None: - raise TypeError( - "reshape() missing 1 required positional argument: 'shape'" - ) - if order is None: order = "C" elif order in "aA": diff --git a/environments/build_conda_pkg.yml b/environments/build_conda_pkg.yml index face05ec635c..5ca7bb02474d 100644 --- a/environments/build_conda_pkg.yml +++ b/environments/build_conda_pkg.yml @@ -3,4 +3,4 @@ channels: - conda-forge dependencies: - python=3.13 # no python 3.14 support by conda-build - - conda-build=25.9.0 + - conda-build=25.11.0 diff --git a/environments/oneapi_pkgs.yml b/environments/oneapi_pkgs.yml index d6fb694986c1..c0f5c024afde 100644 --- a/environments/oneapi_pkgs.yml +++ b/environments/oneapi_pkgs.yml @@ -4,5 +4,6 @@ channels: dependencies: - dpcpp_linux-64>=2025.3 # force to install the latest release - mkl-devel-dpcpp>=2025.3 # force to install the latest release + - mkl-devel>=2025.3 # w/a to intel_repack-feedstock#121 - onedpl-devel - tbb-devel * intel_* # MKL hardly dependces on TBB from Intel channel