-
Notifications
You must be signed in to change notification settings - Fork 952
Add conda recipe for cudf-polars #17037
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
Changes from all commits
558cd1b
4aa0326
087d6dd
0a07a83
76d8ed3
1a2be0d
b18173e
8349420
62d89ba
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Copyright (c) 2024, NVIDIA CORPORATION. | ||
|
||
# This assumes the script is executed from the root of the repo directory | ||
./build.sh cudf_polars |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Copyright (c) 2024, NVIDIA CORPORATION. | ||
|
||
{% set version = environ['RAPIDS_PACKAGE_VERSION'].lstrip('v') %} | ||
{% set minor_version = version.split('.')[0] + '.' + version.split('.')[1] %} | ||
{% set py_version = environ['CONDA_PY'] %} | ||
{% set cuda_version = '.'.join(environ['RAPIDS_CUDA_VERSION'].split('.')[:2]) %} | ||
{% set cuda_major = cuda_version.split('.')[0] %} | ||
{% set date_string = environ['RAPIDS_DATE_STRING'] %} | ||
|
||
package: | ||
name: cudf-polars | ||
version: {{ version }} | ||
|
||
source: | ||
path: ../../.. | ||
|
||
build: | ||
number: {{ GIT_DESCRIBE_NUMBER }} | ||
string: cuda{{ cuda_major }}_py{{ py_version }}_{{ date_string }}_{{ GIT_DESCRIBE_HASH }}_{{ GIT_DESCRIBE_NUMBER }} | ||
script_env: | ||
- AWS_ACCESS_KEY_ID | ||
- AWS_SECRET_ACCESS_KEY | ||
- AWS_SESSION_TOKEN | ||
- CMAKE_C_COMPILER_LAUNCHER | ||
- CMAKE_CUDA_COMPILER_LAUNCHER | ||
- CMAKE_CXX_COMPILER_LAUNCHER | ||
- CMAKE_GENERATOR | ||
- PARALLEL_LEVEL | ||
- SCCACHE_BUCKET | ||
- SCCACHE_IDLE_TIMEOUT | ||
- SCCACHE_REGION | ||
- SCCACHE_S3_KEY_PREFIX=cudf-polars-aarch64 # [aarch64] | ||
- SCCACHE_S3_KEY_PREFIX=cudf-polars-linux64 # [linux64] | ||
- SCCACHE_S3_USE_SSL | ||
- SCCACHE_S3_NO_CREDENTIALS | ||
|
||
requirements: | ||
host: | ||
- python | ||
- rapids-build-backend >=0.3.0,<0.4.0.dev0 | ||
- setuptools | ||
- cuda-version ={{ cuda_version }} | ||
run: | ||
- python | ||
- pylibcudf ={{ version }} | ||
- polars >=1.8,<1.9 | ||
- {{ pin_compatible('cuda-version', max_pin='x', min_pin='x') }} | ||
|
||
test: | ||
requires: | ||
- cuda-version ={{ cuda_version }} | ||
imports: | ||
- cudf_polars | ||
|
||
|
||
about: | ||
home: https://rapids.ai/ | ||
license: Apache-2.0 | ||
license_family: APACHE | ||
license_file: LICENSE | ||
summary: cudf-polars library |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,7 +96,7 @@ def test_bool_agg(agg, request): | |
assert_gpu_result_equal(q, check_exact=False) | ||
|
||
|
||
@pytest.mark.parametrize("cum_agg", expr.UnaryFunction._supported_cum_aggs) | ||
@pytest.mark.parametrize("cum_agg", sorted(expr.UnaryFunction._supported_cum_aggs)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks, good spot! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For reference, this was necessary to make multi-worker testing operate correctly. The |
||
def test_cum_agg_reverse_unsupported(cum_agg): | ||
df = pl.LazyFrame({"a": [1, 2, 3]}) | ||
expr = getattr(pl.col("a"), cum_agg)(reverse=True) | ||
|
Uh oh!
There was an error while loading. Please reload this page.