Skip to content

Commit 86056f6

Browse files
committed
Organize package meta
1 parent 4501644 commit 86056f6

File tree

2 files changed

+36
-41
lines changed

2 files changed

+36
-41
lines changed

conda-recipe/meta.yaml

Lines changed: 15 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

5+
{% set pyproject = load_file_data('pyproject.toml') %}
6+
{% set py_deps = pyproject.get('project', {}).get('dependencies', []) %}
7+
{% set py_build_deps = pyproject.get('build-system', {}).get('requires', []) %}
8+
59
package:
610
name: dpbench
711
version: {{ GIT_DESCRIBE_TAG }}
@@ -18,36 +22,21 @@ requirements:
1822
build:
1923
- {{ compiler('cxx') }}
2024
- {{ compiler('dpcpp') }}
25+
# This is required to get compatible headers with the system installed glibc
2126
- sysroot_linux-64 >=2.28 # [linux]
2227
host:
2328
- python
24-
- setuptools
25-
- cmake==3.26* # [win]
26-
- cmake # [not win]
27-
- ninja # [not win]
28-
- scikit-build
29-
- cython
30-
- pybind11
31-
- versioneer
32-
- intel::numpy
33-
- numba
34-
- dpctl
35-
- dpnp
36-
- numba-dpex
29+
{% for dep in py_build_deps %}
30+
{% if dep.startswith('ninja') %}
31+
- {{ dep.split(';')[0] }} # [not win]
32+
{% else %}
33+
- {{ dep|replace('_','-') }}
34+
{% endif %}
35+
{% endfor %}
3736
run:
38-
- python
39-
- tomli
40-
- alembic
41-
- sqlalchemy
42-
- py-cpuinfo
43-
- scipy
44-
- scikit-learn
45-
- pandas
46-
- intel::numpy
47-
- numba
48-
- dpctl
49-
- dpnp
50-
- numba-dpex
37+
{% for dep in py_deps %}
38+
- {{ dep|replace('_','-') }}
39+
{% endfor %}
5140

5241
test:
5342
requires:

pyproject.toml

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,26 +28,25 @@ classifiers = [
2828
license = { text = "Apache-2.0" }
2929
requires-python = ">=3.9"
3030
dependencies = [
31-
"tomli",
31+
"tomli>=2.0.0",
3232
"alembic>=1.10.0",
3333
"sqlalchemy>=2.0.0",
34-
"py-cpuinfo",
35-
"scipy",
36-
"scikit_learn",
37-
"pandas",
38-
"numpy",
39-
"dpctl",
40-
"dpnp",
41-
"numba",
42-
"numba_dpex",
34+
"py-cpuinfo>=9.0.0",
35+
"scipy>=1.13.0",
36+
"scikit_learn>=1.4.0",
37+
"pandas>=2.2.0",
38+
"numpy>=1.24.0",
39+
"dpctl>=0.16.1",
40+
"dpnp>=0.14.0",
41+
"numba>=0.59.0",
42+
"numba_dpex>=0.23.0a0",
4343
]
44-
dynamic =["version"]
44+
dynamic = ["version"]
4545

4646
[project.optional-dependencies]
4747
numba-mlir = ["numba_mlir"]
4848
color-config = ["pygments"]
49-
sycl-build = ["scikit-build>=0.13", "cmake>=3.18", "ninja"]
50-
npbench = ["dace","dask","legate"]
49+
npbench = ["dace", "dask", "legate"]
5150
json-to-toml = ["tomli_w"]
5251
expected-failure = ["tomlkit"]
5352

@@ -62,8 +61,15 @@ dpbench = "dpbench.console.entry:main"
6261
# TODO: make it optional for no sycl build. Workaround: `--no-deps`.
6362
# https://github.com/scikit-build/scikit-build/issues/981
6463
requires = [
65-
"setuptools>=42,<64",
66-
"versioneer[toml]",
64+
"setuptools>=63.0.0",
65+
"scikit-build>=0.17.0", # sycl build dep
66+
"ninja>=1.11.1; platform_system!='Windows'", # sycl build dep
67+
"cmake>=3.29.0", # sycl build dep
68+
# We need dpctl for UsmNdArray integration for dpcpp code
69+
"dpctl>=0.16.1",
70+
"pybind11>=2.12.0",
71+
# WARNING: check with doc how to upgrade
72+
"versioneer[toml]==0.29",
6773
]
6874
build-backend = "setuptools.build_meta"
6975

0 commit comments

Comments
 (0)