Skip to content
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

Generate pyproject.toml dependencies using dfg #1219

Merged
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repos:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/rapidsai/dependency-file-generator
rev: v1.4.0
rev: v1.5.1
hooks:
- id: rapids-dependency-file-generator
args: ["--clean"]
Expand Down
34 changes: 29 additions & 5 deletions dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,48 @@ files:
- cudatoolkit
- docs
- py_version
py_build:
output: pyproject
extras:
table: build-system
includes:
- build
py_run:
output: pyproject
extras:
table: project
includes:
- run
py_optional_test:
output: pyproject
extras:
table: project.optional-dependencies
key: test
includes:
- test_python
channels:
- rapidsai
- conda-forge
dependencies:
build:
common:
- output_types: [conda, requirements]
- output_types: [conda, requirements, pyproject]
packages:
- &cmake_ver cmake>=3.23.1,!=3.25.0
- cuda-python>=11.7.1,<12.0
- &cuda_python cuda-python>=11.7.1,<12.0
- cython>=0.29,<0.30
- ninja
- python>=3.8,<3.11
- scikit-build>=0.13.1
- tomli
- output_types: conda
packages:
- fmt>=9.1.0,<10
- spdlog>=1.11.0,<1.12
- python>=3.8,<3.11
- output_types: pyproject
packages:
jakirkham marked this conversation as resolved.
Show resolved Hide resolved
- wheel
- setuptools>=61.0.0
checks:
common:
- output_types: [conda, requirements]
Expand Down Expand Up @@ -118,18 +141,19 @@ dependencies:
- python=3.10
run:
common:
- output_types: [conda, requirements]
- output_types: [conda, requirements, pyproject]
packages:
- numba>=0.49
- numpy>=1.19
- *cuda_python
test_cpp:
common:
- output_types: conda
packages:
- *cmake_ver
test_python:
common:
- output_types: [conda, requirements]
- output_types: [conda, requirements, pyproject]
packages:
- pytest
vyasr marked this conversation as resolved.
Show resolved Hide resolved
- pytest-cov
22 changes: 11 additions & 11 deletions python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"wheel",
"setuptools>=61.0.0",
"cython>=0.29,<0.30",
"scikit-build>=0.13.1",
"cmake>=3.23.1,!=3.25.0",
"ninja",
"cuda-python>=11.7.1,<12.0",
vyasr marked this conversation as resolved.
Show resolved Hide resolved
"tomli; python_version < '3.11'",
]
"cython>=0.29,<0.30",
"ninja",
"scikit-build>=0.13.1",
"setuptools>=61.0.0",
"tomli",
vyasr marked this conversation as resolved.
Show resolved Hide resolved
"wheel",
] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit ../dependencies.yaml and run `rapids-dependency-file-generator`.

[project]
name = "rmm"
Expand All @@ -37,9 +37,9 @@ license = { text = "Apache 2.0" }
requires-python = ">=3.8"
dependencies = [
"cuda-python>=11.7.1,<12.0",
"numpy>=1.19",
"numba>=0.49",
]
"numpy>=1.19",
] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit ../dependencies.yaml and run `rapids-dependency-file-generator`.
classifiers = [
"Intended Audience :: Developers",
"Topic :: Database",
Expand All @@ -53,8 +53,8 @@ classifiers = [
[project.optional-dependencies]
test = [
"pytest",
"pytest-xdist",
jakirkham marked this conversation as resolved.
Show resolved Hide resolved
]
"pytest-cov",
] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit ../dependencies.yaml and run `rapids-dependency-file-generator`.

[project.urls]
Homepage = "https://github.com/rapidsai/rmm"
Expand Down