Skip to content

Commit 8bc118f

Browse files
authored
Merge branch 'master' into numpy_pad_dict
2 parents 0b1fd1c + 8133c3c commit 8bc118f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+1981
-645
lines changed

.github/workflows/build-sphinx.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
sudo apt-get install -y nvidia-cuda-toolkit clinfo
103103
104104
- name: Checkout repo
105-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
105+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
106106
with:
107107
fetch-depth: 0
108108

@@ -248,7 +248,7 @@ jobs:
248248
timeout-minutes: 10
249249

250250
steps:
251-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
251+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
252252
with:
253253
fetch-depth: 0
254254

.github/workflows/check-onemath.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
access_token: ${{ github.token }}
3939

4040
- name: Checkout DPNP repo
41-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
41+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
4242
with:
4343
fetch-depth: 0
4444

@@ -78,12 +78,12 @@ jobs:
7878

7979
steps:
8080
- name: Checkout DPNP repo
81-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
81+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
8282
with:
8383
fetch-depth: 0
8484

8585
- name: Download artifact
86-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
86+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
8787
with:
8888
name: ${{ env.environment-file-name }}
8989
path: ${{ env.environment-file-loc }}
@@ -170,18 +170,18 @@ jobs:
170170

171171
steps:
172172
- name: Checkout DPNP repo
173-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
173+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
174174
with:
175175
fetch-depth: 0
176176

177177
- name: Download artifact
178-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
178+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
179179
with:
180180
name: ${{ env.environment-file-name }}
181181
path: ${{ env.environment-file-loc }}
182182

183183
- name: Checkout oneMKL repo
184-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
184+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
185185
with:
186186
repository: 'oneapi-src/oneMKL'
187187
ref: 'develop'

.github/workflows/conda-package.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
access_token: ${{ github.token }}
5555

5656
- name: Checkout DPNP repo
57-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
57+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
5858
with:
5959
fetch-depth: 0
6060

@@ -140,13 +140,13 @@ jobs:
140140

141141
steps:
142142
- name: Checkout DPNP repo
143-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
143+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
144144
with:
145145
fetch-depth: ${{ env.fetch-depth }}
146146
path: ${{ env.dpnp-repo-path }}
147147

148148
- name: Download artifact
149-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
149+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
150150
with:
151151
name: ${{ env.package-name }} ${{ runner.os }} Python ${{ matrix.python }}
152152
path: ${{ env.pkg-path-in-channel }}
@@ -268,13 +268,13 @@ jobs:
268268

269269
steps:
270270
- name: Checkout DPNP repo
271-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
271+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
272272
with:
273273
fetch-depth: ${{ env.fetch-depth }}
274274
path: ${{ env.dpnp-repo-path }}
275275

276276
- name: Download artifact
277-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
277+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
278278
with:
279279
name: ${{ env.package-name }} ${{ runner.os }} Python ${{ matrix.python }}
280280
path: ${{ env.pkg-path-in-channel }}
@@ -425,17 +425,17 @@ jobs:
425425
426426
steps:
427427
- name: Checkout DPNP repo
428-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
428+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
429429
with:
430430
fetch-depth: ${{ env.fetch-depth }}
431431

432432
- name: Download artifact
433-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
433+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
434434
with:
435435
name: ${{ env.package-name }} ${{ runner.os }} Python ${{ matrix.python }}
436436

437437
- name: Download wheels artifact
438-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
438+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
439439
with:
440440
name: ${{ env.package-name }} ${{ runner.os }} Wheels Python ${{ matrix.python }}
441441

@@ -513,13 +513,13 @@ jobs:
513513

514514
steps:
515515
- name: Checkout DPNP repo
516-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
516+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
517517
with:
518518
fetch-depth: ${{ env.fetch-depth }}
519519
path: ${{ env.dpnp-repo-path }}
520520

521521
- name: Download artifact
522-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
522+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
523523
with:
524524
name: ${{ env.package-name }} ${{ runner.os }} Python ${{ env.python-ver }}
525525
path: ${{ env.pkg-path-in-channel }}
@@ -585,7 +585,7 @@ jobs:
585585
python -c "import dpnp; print(dpnp.__version__)"
586586
587587
- name: Clone array API tests repo
588-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
588+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
589589
with:
590590
repository: 'data-apis/array-api-tests'
591591
path: ${{ env.array-api-tests-path }}
@@ -666,7 +666,7 @@ jobs:
666666

667667
steps:
668668
- name: Checkout DPNP repo
669-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
669+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
670670
with:
671671
fetch-depth: ${{ env.fetch-depth }}
672672

@@ -692,7 +692,7 @@ jobs:
692692
activate-environment: ${{ env.cleanup-env-name }}
693693

694694
- name: Checkout repo
695-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
695+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
696696
with:
697697
repository: IntelPython/devops-tools
698698
fetch-depth: ${{ env.fetch-depth }}

.github/workflows/generate_coverage.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
sudo gem install coveralls-lcov
6363
6464
- name: Checkout repo
65-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
65+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
6666
with:
6767
fetch-depth: 0
6868

.github/workflows/openssf-scorecard.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,16 @@ on:
77
# For Branch-Protection check. Only the default branch is supported. See
88
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
99
branch_protection_rule:
10+
# To be able to be triggered manually
11+
workflow_dispatch:
1012
# To guarantee Maintained check is occasionally updated. See
1113
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
1214
schedule:
1315
- cron: '28 2 * * 1'
1416
- cron: '28 2 * * 4'
1517
push:
16-
branches: [ "master" ]
18+
branches:
19+
- master
1720

1821
# Declare default permissions as read only.
1922
permissions: read-all
@@ -34,7 +37,7 @@ jobs:
3437

3538
steps:
3639
- name: "Checkout code"
37-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
40+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3841
with:
3942
persist-credentials: false
4043

@@ -69,6 +72,6 @@ jobs:
6972

7073
# Upload the results to GitHub's code scanning dashboard.
7174
- name: "Upload to code-scanning"
72-
uses: github/codeql-action/upload-sarif@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
75+
uses: github/codeql-action/upload-sarif@3c3833e0f8c1c83d449a7478aa59c036a9165498 # v3.29.11
7376
with:
7477
sarif_file: results.sarif
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Autoupdate pre-commit
2+
3+
on:
4+
# For Branch-Protection check. Only the default branch is supported. See
5+
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
6+
branch_protection_rule:
7+
# To guarantee Maintained check is occasionally updated. See
8+
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
9+
schedule:
10+
- cron: '28 2 * * 6' # Saturday at 02:28 UTC
11+
workflow_dispatch:
12+
13+
jobs:
14+
autoupdate:
15+
name: Autoupdate
16+
17+
runs-on: ubuntu-latest
18+
timeout-minutes: 10
19+
20+
steps:
21+
- name: Checkout DPNP repo
22+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
23+
24+
- name: Set up python
25+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
26+
with:
27+
python-version: '3.13'
28+
29+
- name: Install pre-commit
30+
run: pip install pre-commit
31+
32+
- name: Run pre-commit autoupdate
33+
run: pre-commit autoupdate
34+
35+
- name: Create a PR with autoupdate changes
36+
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e #v7.0.8
37+
with:
38+
commit-message: 'chore: update pre-commit hooks'
39+
add-paths: .pre-commit-config.yaml
40+
branch: 'bot/pre-commit-autoupdate'
41+
delete-branch: true
42+
title: Weekly pre-commit autoupdate
43+
body: |
44+
This PR updates the `.pre-commit-config.yaml` using `pre-commit autoupdate`.
45+
labels: autoupdate

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
pylint
3131
3232
- name: Checkout DPNP repo
33-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
33+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3434
with:
3535
# use commit hash to make "no-commit-to-branch" check passing
3636
ref: ${{ github.sha }}

.pre-commit-config.yaml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,14 @@
1-
# See https://pre-commit.ci for more details
2-
ci:
3-
autofix_commit_msg: 'style: pre-commit fixes'
4-
autoupdate_commit_msg: 'chore: update pre-commit hooks'
5-
autoupdate_schedule: weekly
6-
71
# See https://pre-commit.com for more information
82
# See https://pre-commit.com/hooks.html for more hooks
93
repos:
104
- repo: https://github.com/PyCQA/bandit
11-
rev: '1.8.3'
5+
rev: '1.8.6'
126
hooks:
137
- id: bandit
148
pass_filenames: false
159
args: ["-r", "dpnp", "-lll"]
1610
- repo: https://github.com/pre-commit/pre-commit-hooks
17-
rev: v5.0.0
11+
rev: v6.0.0
1812
hooks:
1913
# Git
2014
- id: check-added-large-files
@@ -83,7 +77,7 @@ repos:
8377
name: isort (pyi)
8478
types: [pyi]
8579
- repo: https://github.com/pycqa/flake8
86-
rev: 7.2.0
80+
rev: 7.3.0
8781
hooks:
8882
- id: flake8
8983
args: ["--config=.flake8"]
@@ -96,7 +90,7 @@ repos:
9690
- id: clang-format
9791
args: ["-i"]
9892
- repo: https://github.com/gitleaks/gitleaks
99-
rev: v8.26.0
93+
rev: v8.28.0
10094
hooks:
10195
- id: gitleaks
10296
- repo: https://github.com/jumanjihouse/pre-commit-hooks
@@ -119,9 +113,9 @@ repos:
119113
"--disable=redefined-builtin",
120114
"--disable=unused-wildcard-import"
121115
]
122-
files: '^dpnp/(dpnp_iface.*|fft|linalg)'
116+
files: '^dpnp/(dpnp_iface.*|fft|linalg|dpnp_array)'
123117
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
124-
rev: v2.14.0
118+
rev: v2.15.0
125119
hooks:
126120
- id: pretty-format-toml
127121
args: [--autofix]

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515
* Added `timeout-minutes` property to GitHub jobs [#2526](https://github.com/IntelPython/dpnp/pull/2526)
1616
* Added implementation of `dpnp.ndarray.data` and `dpnp.ndarray.data.ptr` attributes [#2521](https://github.com/IntelPython/dpnp/pull/2521)
1717
* Added `dpnp.ndarray.__contains__` method [#2534](https://github.com/IntelPython/dpnp/pull/2534)
18+
* Added implementation of `dpnp.linalg.lu_factor` (SciPy-compatible) [#2557](https://github.com/IntelPython/dpnp/pull/2557), [#2565](https://github.com/IntelPython/dpnp/pull/2565)
1819

1920
### Changed
2021

@@ -29,6 +30,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2930
* Removed the use of class template argument deduction for alias template to conform to the C++17 standard [#2517](https://github.com/IntelPython/dpnp/pull/2517)
3031
* Changed th order of individual FFTs over `axes` for `dpnp.fft.irfftn` to be in forward order [#2524](https://github.com/IntelPython/dpnp/pull/2524)
3132
* Replaced the use of `numpy.testing.suppress_warnings` with appropriate calls from the warnings module [#2529](https://github.com/IntelPython/dpnp/pull/2529)
33+
* Improved documentations of `dpnp.ndarray` class and added a page with description of supported constants [#2422](https://github.com/IntelPython/dpnp/pull/2422)
34+
* Updated `dpnp.size` to accept tuple of ints for `axes` argument [#2536](https://github.com/IntelPython/dpnp/pull/2536)
35+
* Replaced `ci` section in `.pre-commit-config.yaml` with a new GitHub workflow with scheduled run to autoupdate the `pre-commit` configuration [#2542](https://github.com/IntelPython/dpnp/pull/2542)
36+
* FFT module is updated to perform in-place FFT in intermediate steps of ND FFT [#2543](https://github.com/IntelPython/dpnp/pull/2543)
37+
* Reused dpctl tensor include to enable experimental SYCL namespace for complex types [#2546](https://github.com/IntelPython/dpnp/pull/2546)
38+
* Changed Windows-specific logic in dpnp initialization [#2553](https://github.com/IntelPython/dpnp/pull/2553)
39+
* Added missing includes to files in ufunc and VM pybind11 extensions [#2571](https://github.com/IntelPython/dpnp/pull/2571)
3240
* Extended `dpnp.pad` to support `pad_width` keyword as a dictionary [#2535](https://github.com/IntelPython/dpnp/pull/2535)
3341

3442
### Deprecated
@@ -46,6 +54,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4654
* Avoided negating unsigned integers in ceil division used in `dpnp.resize` implementation [#2508](https://github.com/IntelPython/dpnp/pull/2508)
4755
* Fixed `dpnp.unique` with 1d input array and `axis=0`, `equal_nan=True` keywords passed where the produced result doesn't collapse the NaNs [#2530](https://github.com/IntelPython/dpnp/pull/2530)
4856
* Resolved issue when `dpnp.ndarray` constructor is called with `dpnp.ndarray.data` as `buffer` keyword [#2533](https://github.com/IntelPython/dpnp/pull/2533)
57+
* Fixed `dpnp.linalg.cond` to always return a real dtype [#2547](https://github.com/IntelPython/dpnp/pull/2547)
4958

5059
### Security
5160

conda-recipe/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% set max_compiler_and_mkl_version = environ.get("MAX_BUILD_CMPL_MKL_VERSION", "2026.0a0") %}
22
{% set required_compiler_and_mkl_version = "2025.0" %}
3-
{% set required_dpctl_version = "0.20.0*" %}
3+
{% set required_dpctl_version = "0.21.0*" %}
44

55
{% set pyproject = load_file_data('pyproject.toml') %}
66
{% set py_build_deps = pyproject.get('build-system', {}).get('requires', []) %}

0 commit comments

Comments
 (0)