-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add conda recipe and corresponding CI build job
- Loading branch information
Showing
4 changed files
with
101 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
# Copyright (c) 2024, NVIDIA CORPORATION. | ||
|
||
set -euo pipefail | ||
|
||
rapids-configure-conda-channels | ||
|
||
source rapids-date-string | ||
|
||
rapids-print-env | ||
|
||
rapids-logger "Begin py build" | ||
|
||
rapids-conda-retry mambabuild conda/recipes/rapids_build_backend | ||
|
||
rapids-upload-conda-to-s3 python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Copyright (c) 2024, NVIDIA CORPORATION. | ||
|
||
{% set pyproject_data = load_file_data("pyproject.toml") %} | ||
{% set version = pyproject_data.get('project', {}).get('version') %} | ||
{% set summary = pyproject_data.get('project', {}).get('description') %} | ||
|
||
package: | ||
name: rapids-build-backend | ||
version: {{ version }} | ||
|
||
source: | ||
path: ../../.. | ||
|
||
build: | ||
number: 0 | ||
noarch: python | ||
script: python -m pip install . -vv --no-deps | ||
|
||
test: | ||
requires: | ||
- pip | ||
- python >=3.9 | ||
{% for r in pyproject_data.get("project", {}).get("optional-dependencies", {}).get("test", []) %} | ||
- {{ r }} | ||
{% endfor %} | ||
source_files: | ||
- tests/ | ||
# Need the source for running tests, for whatever that's worth in a conda | ||
# environment. | ||
- rapids_build_backend/ | ||
- pyproject.toml | ||
|
||
requirements: | ||
host: | ||
- pip | ||
- python >=3.9 | ||
- conda-verify | ||
{% for r in pyproject_data.get("build-system", {}).get("requires", []) %} | ||
- {{ r }} | ||
{% endfor %} | ||
run: | ||
{% for r in pyproject_data.get("project", {}).get("dependencies", []) %} | ||
- {{ r }} | ||
{% endfor %} | ||
|
||
# Automatically include all extras since we have no way to request optional | ||
# subsets in conda. | ||
{% for extra, extra_deps in pyproject_data.get("project", {}).get("optional-dependencies", {}).items() %} | ||
{% if extra != "test" %} | ||
{% for r in extra_deps %} | ||
- {{ r }} | ||
{% endfor %} | ||
{% endif %} | ||
{% endfor %} | ||
|
||
about: | ||
home: https://rapids.ai/ | ||
license: Apache-2.0 | ||
license_file: LICENSE | ||
summary: {{ summary }} | ||
description: | | ||
This package contains the PEP 517 build backend adapter used by all of | ||
RAPIDS. It does not directly perform builds, but rather performs various | ||
RAPIDS-specific metadata manipulations before calling down to another build | ||
backend like setuptools to finish the job. | ||
doc_url: https://docs.rapids.ai/ | ||
dev_url: https://github.com/rapidsai/rapids-build-backend |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
# Copyright (c) 2024, NVIDIA CORPORATION. | ||
|
||
# TODO: In a conda environment we should probably be testing without | ||
# isolation for any tests to be meaningfully conda-specific. If we | ||
# think that's worthwhile it will require adding an environment | ||
# variable to conftest.py that controls whether the default `env` | ||
# used for installation is a virtual environment or simply the | ||
# current Python environment. | ||
python -m pytest -v tests/ |