Skip to content
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

Only build oldest and newest Python variants for nightly builds #132

Merged
merged 1 commit into from
Aug 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions scripts/tiledb-py/update-recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# Reads values for version, date, and commit from plain-text files

recipe = "tiledb-py-feedstock/recipe/meta.yaml"
conda_build_config = "tiledb-py-feedstock/recipe/conda_build_config.yaml"

from ruamel.yaml import YAML
from yaml.constructor import ConstructorError
Expand Down Expand Up @@ -81,3 +82,21 @@
f"-Cskbuild.cmake.define.TILEDB_REMOVE_DEPRECATIONS={remove_deprecations_value} "
"--no-build-isolation --no-deps --ignore-installed -v ."
)

# Update conda build config ---------------------------------------------------

with open(conda_build_config) as f:
config = yaml.load(f)

# Limit CI and storage requirements by only building the oldest and newest
# Python versions supported by conda-forge. Will need to be occasionally updated
# as old Python versions are dropped and new ones are added
#
# https://github.com/conda-forge/conda-forge-pinning-feedstock/blob/main/recipe/conda_build_config.yaml

config["python"] = ["3.8.* *_cpython", "3.12.* *_cpython"]
config["python_impl"] = ["cpython", "cpython"]
config["numpy"] = [1.22, 1.26]

with open(conda_build_config, "w") as f:
yaml.dump(config, f)