Skip to content

Commit df307dd

Browse files
authored
Declaring required dependencies for wheel package (#2283)
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.
1 parent 83fef36 commit df307dd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def _get_cmdclass():
4343
Topic :: Software Development
4444
Topic :: Scientific/Engineering
4545
Operating System :: Microsoft :: Windows
46+
Operating System :: POSIX :: Linux
4647
Operating System :: POSIX
4748
Operating System :: Unix
4849
"""
@@ -82,4 +83,6 @@ def _get_cmdclass():
8283
]
8384
},
8485
include_package_data=False,
86+
python_requires=">=3.9,<3.14",
87+
install_requires=["dpctl >= 0.19.0dev0", "numpy"],
8588
)

0 commit comments

Comments
 (0)