Skip to content

Commit

Permalink
Merge pull request #9 from nv-rliu/branch-24.12-dependencies-file
Browse files Browse the repository at this point in the history
Adding a `dependencies.yaml` file
  • Loading branch information
rlratzel authored Oct 28, 2024
2 parents ed6cbb0 + 94b47c0 commit 556eed0
Show file tree
Hide file tree
Showing 9 changed files with 326 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


# doc code owners
#
#


# python code owners
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/add-to-project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ jobs:
- uses: actions/[email protected]
with:
project-url: https://github.com/orgs/rapidsai/projects/47
github-token: ${{ secrets.ADD_TO_PROJECT_GITHUB_TOKEN }}
github-token: ${{ secrets.ADD_TO_PROJECT_GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/labeler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ jobs:
steps:
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
repo-token: "${{ secrets.GITHUB_TOKEN }}"
2 changes: 1 addition & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ jobs:
uses: rapidsai/shared-workflows/.github/workflows/[email protected]
with:
build_type: pull-request
script: ci/test_wheel_nx-cugraph.sh
script: ci/test_wheel_nx-cugraph.sh
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ repos:
meta[.]yaml$|
setup[.]cfg$
- id: verify-alpha-spec
args: ["--fix", "--mode=release"]
args: ["--fix"]
- repo: https://github.com/rapidsai/dependency-file-generator
rev: v1.13.11
hooks:
Expand Down
36 changes: 36 additions & 0 deletions conda/environments/all_cuda-118_arch-x86_64.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This file is generated by `rapids-dependency-file-generator`.
# To make changes, edit ../../dependencies.yaml and run `rapids-dependency-file-generator`.
channels:
- rapidsai
- rapidsai-nightly
- conda-forge
- nvidia
dependencies:
- cuda-version=11.8
- cudf==24.12.*,>=0.0.0a0
- cupy>=12.0.0
- graphviz
- ipython
- nbsphinx
- networkx>=3.0
- numpy>=1.23,<3.0a0
- numpydoc
- pandas
- pre-commit
- pydata-sphinx-theme
- pylibcugraph==24.12.*,>=0.0.0a0
- pytest
- pytest-benchmark
- pytest-cov
- pytest-mpl
- pytest-xdist
- rapids-build-backend>=0.3.1,<0.4.0.dev0
- recommonmark
- scipy
- setuptools>=61.0.0
- sphinx-copybutton
- sphinx-markdown-tables
- sphinx<6
- sphinxcontrib-websupport
- wheel
name: all_cuda-118_arch-x86_64
36 changes: 36 additions & 0 deletions conda/environments/all_cuda-125_arch-x86_64.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This file is generated by `rapids-dependency-file-generator`.
# To make changes, edit ../../dependencies.yaml and run `rapids-dependency-file-generator`.
channels:
- rapidsai
- rapidsai-nightly
- conda-forge
- nvidia
dependencies:
- cuda-version=12.5
- cudf==24.12.*,>=0.0.0a0
- cupy>=12.0.0
- graphviz
- ipython
- nbsphinx
- networkx>=3.0
- numpy>=1.23,<3.0a0
- numpydoc
- pandas
- pre-commit
- pydata-sphinx-theme
- pylibcugraph==24.12.*,>=0.0.0a0
- pytest
- pytest-benchmark
- pytest-cov
- pytest-mpl
- pytest-xdist
- rapids-build-backend>=0.3.1,<0.4.0.dev0
- recommonmark
- scipy
- setuptools>=61.0.0
- sphinx-copybutton
- sphinx-markdown-tables
- sphinx<6
- sphinxcontrib-websupport
- wheel
name: all_cuda-125_arch-x86_64
248 changes: 248 additions & 0 deletions dependencies.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,248 @@
# Dependency list for https://github.com/rapidsai/dependency-file-generator
files:
all:
output: [conda]
matrix:
cuda: ["11.8", "12.5"]
arch: [x86_64]
includes:
- checks
- cuda_version
- docs
- python_build_rapids
- python_build_wheel
- test_python_common
- python_run_nx_cugraph
- depends_on_pylibcugraph
- test_python_nx_cugraph
- depends_on_cupy
- depends_on_cudf
checks:
output: none
includes:
- checks
- py_version
docs:
output: none
includes:
- cuda_version
- docs
- py_version
test_notebooks:
output: none
includes:
- cuda_version
- py_version
- test_notebook
py_build_nx_cugraph:
output: pyproject
pyproject_dir: python/nx-cugraph
extras:
table: build-system
includes:
- python_build_rapids
- python_build_wheel
py_run_nx_cugraph:
output: pyproject
pyproject_dir: python/nx-cugraph
extras:
table: project
includes:
- depends_on_pylibcugraph
- depends_on_cupy
- python_run_nx_cugraph
py_test_nx_cugraph:
output: pyproject
pyproject_dir: python/nx-cugraph
extras:
table: project.optional-dependencies
key: test
includes:
- depends_on_cudf
- test_python_common
- test_python_nx_cugraph

channels:
- rapidsai
- rapidsai-nightly
- conda-forge
- nvidia
dependencies:
checks:
common:
- output_types: [conda, requirements]
packages:
- pre-commit
cuda_version:
specific:
- output_types: conda
matrices:
- matrix:
cuda: "11.2"
packages:
- cuda-version=11.2
- matrix:
cuda: "11.4"
packages:
- cuda-version=11.4
- matrix:
cuda: "11.5"
packages:
- cuda-version=11.5
- matrix:
cuda: "11.8"
packages:
- cuda-version=11.8
- matrix:
cuda: "12.0"
packages:
- cuda-version=12.0
- matrix:
cuda: "12.2"
packages:
- cuda-version=12.2
- matrix:
cuda: "12.5"
packages:
- cuda-version=12.5
docs:
common:
- output_types: [conda]
packages:
- graphviz
- ipython
- nbsphinx
- numpydoc
- pydata-sphinx-theme
- recommonmark
- sphinx-copybutton
- sphinx-markdown-tables
- sphinx<6
- sphinxcontrib-websupport
py_version:
specific:
- output_types: [conda]
matrices:
- matrix:
py: "3.10"
packages:
- python=3.10
- matrix:
py: "3.11"
packages:
- python=3.11
- matrix:
py: "3.12"
packages:
- python=3.12
- matrix:
packages:
- python>=3.10,<3.13
python_build_rapids:
common:
- output_types: [conda, pyproject, requirements]
packages:
- rapids-build-backend>=0.3.1,<0.4.0.dev0
python_build_wheel:
common:
- output_types: [conda, pyproject, requirements]
packages:
- setuptools>=61.0.0
- wheel
test_notebook:
common:
- output_types: [conda, requirements]
packages:
- ipython
- notebook>=0.5.0
- output_types: [conda]
packages:
- wget
test_python_common:
common:
- output_types: [conda, pyproject]
packages:
- pandas
- pytest
- pytest-benchmark
- pytest-cov
- pytest-xdist
- scipy
python_run_nx_cugraph:
common:
- output_types: [conda, pyproject]
packages:
- networkx>=3.0
- &numpy numpy>=1.23,<3.0a0
test_python_nx_cugraph:
common:
- output_types: [conda, pyproject]
packages:
# not needed by nx-cugraph tests, but is required for running networkx tests
- pytest-mpl
depends_on_cupy:
common:
- output_types: conda
packages:
- cupy>=12.0.0
# NOTE: This is intentionally not broken into groups by a 'cuda_suffixed' selector like
# other packages with -cu{nn}x suffixes in this file.
# All RAPIDS wheel builds (including in devcontainers) expect cupy to be suffixed.
specific:
- output_types: [requirements, pyproject]
matrices:
- matrix: {cuda: "12.*"}
packages:
- cupy-cuda12x>=12.0.0
- matrix: {cuda: "11.*"}
packages: &cupy_packages_cu11
- cupy-cuda11x>=12.0.0
- {matrix: null, packages: *cupy_packages_cu11}
depends_on_cudf:
common:
- output_types: conda
packages:
- &cudf_unsuffixed cudf==24.12.*,>=0.0.0a0
- output_types: requirements
packages:
# pip recognizes the index as a global option for the requirements.txt file
- --extra-index-url=https://pypi.nvidia.com
- --extra-index-url=https://pypi.anaconda.org/rapidsai-wheels-nightly/simple
specific:
- output_types: [requirements, pyproject]
matrices:
- matrix:
cuda: "12.*"
cuda_suffixed: "true"
packages:
- cudf-cu12==24.12.*,>=0.0.0a0
- matrix:
cuda: "11.*"
cuda_suffixed: "true"
packages:
- cudf-cu11==24.12.*,>=0.0.0a0
- {matrix: null, packages: [*cudf_unsuffixed]}
depends_on_pylibcugraph:
common:
- output_types: conda
packages:
- &pylibcugraph_unsuffixed pylibcugraph==24.12.*,>=0.0.0a0
- output_types: requirements
packages:
# pip recognizes the index as a global option for the requirements.txt file
- --extra-index-url=https://pypi.nvidia.com
- --extra-index-url=https://pypi.anaconda.org/rapidsai-wheels-nightly/simple
specific:
- output_types: [requirements, pyproject]
matrices:
- matrix:
cuda: "12.*"
cuda_suffixed: "true"
packages:
- pylibcugraph-cu12==24.12.*,>=0.0.0a0
- matrix:
cuda: "11.*"
cuda_suffixed: "true"
packages:
- pylibcugraph-cu11==24.12.*,>=0.0.0a0
- {matrix: null, packages: [*pylibcugraph_unsuffixed]}
1 change: 1 addition & 0 deletions python/nx-cugraph/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ dependencies = [

[project.optional-dependencies]
test = [
"cudf==24.12.*,>=0.0.0a0",
"pandas",
"pytest",
"pytest-benchmark",
Expand Down

0 comments on commit 556eed0

Please sign in to comment.