Skip to content

Commit

Permalink
restore unsuffixed dependencies in pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed May 10, 2024
1 parent eba110f commit fb022ee
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ build:
os: "ubuntu-22.04"
tools:
python: "mambaforge-22.9"
jobs:
pre_install:
- bash ci/build_docs_pre_install.sh

conda:
environment: conda/environments/builddocs.yml
Expand Down
17 changes: 17 additions & 0 deletions ci/build_docs_pre_install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash
# Copyright (c) 2024 NVIDIA CORPORATION.
#
# [description]
#
# ucx-py's docs builds require installing the library.
#
# It does that by running 'pip install .' from the root of the repo. This script
# is used to modify readthedocs' local checkout of this project's source code prior
# to that 'pip install' being run.
#
# For more, see https://docs.readthedocs.io/en/stable/build-customization.html
#

set -euo pipefail

sed -r -i "s/libucx==(.*)\"/libucx-cu12==\1\"/g" ./pyproject.toml
4 changes: 2 additions & 2 deletions dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ dependencies:
# so 'pip install .' (e.g. as used in docs builds) will work
- matrix: null
packages:
- libucx-cu11==1.15.0
- libucx==1.15.0
depends_on_ucx_run:
common:
- output_types: conda
Expand All @@ -164,7 +164,7 @@ dependencies:
# so "pip install ." (e.g. as used in docs builds) will work
- matrix: null
packages:
- libucx-cu11>=1.15.0,<1.16
- libucx>=1.15.0,<1.16
test_python:
common:
- output_types: [conda, requirements, pyproject]
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
build-backend = "setuptools.build_meta"
requires = [
"cython>=3.0.0",
"libucx-cu11==1.15.0",
"libucx==1.15.0",
"setuptools>=64.0.0",
] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit dependencies.yaml and run `rapids-dependency-file-generator`.

Expand All @@ -31,7 +31,7 @@ authors = [
license = { text = "BSD-3-Clause" }
requires-python = ">=3.9"
dependencies = [
"libucx-cu11>=1.15.0,<1.16",
"libucx>=1.15.0,<1.16",
"numpy>=1.23,<2.0a0",
"pynvml>=11.4.1",
] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit dependencies.yaml and run `rapids-dependency-file-generator`.
Expand Down

0 comments on commit fb022ee

Please sign in to comment.