Skip to content

Declaring required dependencies for wheel package #2283

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

Merged
merged 2 commits into from
Jan 28, 2025

Conversation

antonwolfy
Copy link
Contributor

@antonwolfy antonwolfy commented Jan 27, 2025

The wheel package misses requires_dist entry in package info, but dpnp package has a decency on numpy and dpctl packages.
The PR proposes to declare required dependencies in setup.py.

Thus the package info of dpnp wheel package built in public CI will include:

requires_python: >=3.9,<3.14
requires_dist: ['dpctl>=0.19.0dev0', 'numpy']

and for internal CI:

requires_python: >=3.9,<3.14
requires_dist: ['dpctl>=0.19.0dev0', 'numpy', 'dpcpp-cpp-rt', 'onemkl-sycl-blas', 'onemkl-sycl-dft', 'onemkl-sycl-lapack', 'onemkl-sycl-rng', 'onemkl-sycl-stats', 'onemkl-sycl-vm']

Note that this PR also specifies a requirement on supported range of python versions.

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • Have you checked performance impact of proposed changes?
  • If this PR is a work in progress, are you filing the PR as a draft?

@antonwolfy antonwolfy self-assigned this Jan 27, 2025
@coveralls
Copy link
Collaborator

coveralls commented Jan 27, 2025

Coverage Status

coverage: 71.302%. remained the same
when pulling 9d57d43 on add-metadata-required-dependencies
into 83fef36 on master.

Copy link
Contributor

Array API standard conformance tests for dpnp=0.17.0dev5=py312he4f9c94_5 ran successfully.
Passed: 957
Failed: 0
Skipped: 43

@antonwolfy antonwolfy marked this pull request as ready for review January 27, 2025 16:49
Copy link
Collaborator

@vlad-perevezentsev vlad-perevezentsev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!
Thank you @antonwolfy

Copy link
Contributor

View rendered docs @ https://intelpython.github.io/dpnp/pull/2283/index.html

Copy link
Contributor

Array API standard conformance tests for dpnp=0.17.0dev5=py312he4f9c94_9 ran successfully.
Passed: 966
Failed: 1
Skipped: 33

@antonwolfy antonwolfy merged commit df307dd into master Jan 28, 2025
64 of 70 checks passed
@antonwolfy antonwolfy deleted the add-metadata-required-dependencies branch January 28, 2025 13:17
github-actions bot added a commit that referenced this pull request Jan 28, 2025
The wheel package misses `requires_dist` entry in package info, but dpnp
package has a decency on numpy and dpctl packages.
The PR proposes to declare required dependencies in `setup.py`.

Thus the package info of dpnp wheel package built in public CI will
include:
```bash
requires_python: >=3.9,<3.14
requires_dist: ['dpctl>=0.19.0dev0', 'numpy']
```
and for internal CI:
```bash
requires_python: >=3.9,<3.14
requires_dist: ['dpctl>=0.19.0dev0', 'numpy', 'dpcpp-cpp-rt', 'onemkl-sycl-blas', 'onemkl-sycl-dft', 'onemkl-sycl-lapack', 'onemkl-sycl-rng', 'onemkl-sycl-stats', 'onemkl-sycl-vm']
```

Note that this PR also specifies a requirement on supported range of
python versions. df307dd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants