Skip to content

Commit

Permalink
Organize package meta
Browse files Browse the repository at this point in the history
  • Loading branch information
ZzEeKkAa committed Apr 30, 2024
1 parent 4501644 commit 86056f6
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 41 deletions.
41 changes: 15 additions & 26 deletions conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
#
# SPDX-License-Identifier: Apache-2.0

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

package:
name: dpbench
version: {{ GIT_DESCRIBE_TAG }}
Expand All @@ -18,36 +22,21 @@ requirements:
build:
- {{ compiler('cxx') }}
- {{ compiler('dpcpp') }}
# This is required to get compatible headers with the system installed glibc
- sysroot_linux-64 >=2.28 # [linux]
host:
- python
- setuptools
- cmake==3.26* # [win]
- cmake # [not win]
- ninja # [not win]
- scikit-build
- cython
- pybind11
- versioneer
- intel::numpy
- numba
- dpctl
- dpnp
- numba-dpex
{% for dep in py_build_deps %}
{% if dep.startswith('ninja') %}
- {{ dep.split(';')[0] }} # [not win]
{% else %}
- {{ dep|replace('_','-') }}
{% endif %}
{% endfor %}
run:
- python
- tomli
- alembic
- sqlalchemy
- py-cpuinfo
- scipy
- scikit-learn
- pandas
- intel::numpy
- numba
- dpctl
- dpnp
- numba-dpex
{% for dep in py_deps %}
- {{ dep|replace('_','-') }}
{% endfor %}

test:
requires:
Expand Down
36 changes: 21 additions & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,25 @@ classifiers = [
license = { text = "Apache-2.0" }
requires-python = ">=3.9"
dependencies = [
"tomli",
"tomli>=2.0.0",
"alembic>=1.10.0",
"sqlalchemy>=2.0.0",
"py-cpuinfo",
"scipy",
"scikit_learn",
"pandas",
"numpy",
"dpctl",
"dpnp",
"numba",
"numba_dpex",
"py-cpuinfo>=9.0.0",
"scipy>=1.13.0",
"scikit_learn>=1.4.0",
"pandas>=2.2.0",
"numpy>=1.24.0",
"dpctl>=0.16.1",
"dpnp>=0.14.0",
"numba>=0.59.0",
"numba_dpex>=0.23.0a0",
]
dynamic =["version"]
dynamic = ["version"]

[project.optional-dependencies]
numba-mlir = ["numba_mlir"]
color-config = ["pygments"]
sycl-build = ["scikit-build>=0.13", "cmake>=3.18", "ninja"]
npbench = ["dace","dask","legate"]
npbench = ["dace", "dask", "legate"]
json-to-toml = ["tomli_w"]
expected-failure = ["tomlkit"]

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

Expand Down

0 comments on commit 86056f6

Please sign in to comment.