Skip to content

Commit

Permalink
Generate pyproject.toml dependencies using dfg (#1219)
Browse files Browse the repository at this point in the history
This PR updates dependencies.yaml to also generates the relevant dependency sections of pyproject.toml.

Authors:
  - Vyas Ramasubramani (https://github.com/vyasr)

Approvers:
  - Bradley Dice (https://github.com/bdice)

URL: #1219
  • Loading branch information
vyasr authored Mar 21, 2023
1 parent d93f011 commit e8fbd06
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 17 deletions.
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:
- 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
- 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",
"tomli; python_version < '3.11'",
]
"cython>=0.29,<0.30",
"ninja",
"scikit-build>=0.13.1",
"setuptools>=61.0.0",
"tomli",
"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",
]
"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

0 comments on commit e8fbd06

Please sign in to comment.