From 7a090df902cd030a02a4d22d73bc278920e23574 Mon Sep 17 00:00:00 2001 From: Tim Williams Date: Sat, 18 Apr 2026 10:54:45 -0400 Subject: [PATCH 1/3] convert to v1 recipe --- conda-forge.yml | 1 + recipe/{bld.bat => build.bat} | 0 recipe/meta.yaml | 89 --------------------------- recipe/recipe.yaml | 111 ++++++++++++++++++++++++++++++++++ 4 files changed, 112 insertions(+), 89 deletions(-) rename recipe/{bld.bat => build.bat} (100%) delete mode 100644 recipe/meta.yaml create mode 100644 recipe/recipe.yaml diff --git a/conda-forge.yml b/conda-forge.yml index 53d52a8..b38d52c 100644 --- a/conda-forge.yml +++ b/conda-forge.yml @@ -1,3 +1,4 @@ +conda_build_tool: rattler-build bot: version_updates: even_odd_versions: true diff --git a/recipe/bld.bat b/recipe/build.bat similarity index 100% rename from recipe/bld.bat rename to recipe/build.bat diff --git a/recipe/meta.yaml b/recipe/meta.yaml deleted file mode 100644 index 8ed444f..0000000 --- a/recipe/meta.yaml +++ /dev/null @@ -1,89 +0,0 @@ -{% set version = "1.26.11" %} - -# handle GST versions -{% set version_arr = version.split(".") %} -{% set gst_version = ".".join((version_arr[0], version_arr[1])) %} - -package: - name: gst-python - version: {{ version }} - -source: - url: https://gstreamer.freedesktop.org/src/gst-python/gst-python-{{ version }}.tar.xz - sha256: 11316ba769b56d26d8b1464c7198a9924caeae48134f7db59171faf1a73dc436 - -build: - ignore_run_exports_from: - - {{ compiler('cxx') }} - ignore_run_exports: - # required by meson, but not actually used - - gst-plugins-base - number: 0 - skip: true # [python_impl != 'cpython'] - -requirements: - build: - - python # [build_platform != target_platform] - - cross-python_{{ target_platform }} # [build_platform != target_platform] - - {{ compiler('c') }} - - {{ stdlib('c') }} - - {{ compiler('cxx') }} - - {{ cdt('libxau-devel') }} # [linux] - - {{ cdt('libxext-devel') }} # [linux] - - {{ cdt('libx11-devel') }} # [linux] - - {{ cdt('libxrender-devel') }} # [linux] - - {{ cdt('xorg-x11-proto-devel') }} # [linux] - - libgl-devel # [linux] - - {{ cdt('libdrm-devel') }} # [linux] - - {{ cdt('libxdamage-devel') }} # [linux] - - {{ cdt('libxfixes-devel') }} # [linux] - - {{ cdt('libxxf86vm-devel') }} # [linux] - - {{ cdt('mesa-dri-drivers') }} # [linux] - # These dependencies are only for cos7 platforms - - {{ cdt('libglvnd-glx') }} # [linux and (ppc64le or aarch64)] - - {{ cdt('libglvnd') }} # [linux and (ppc64le or aarch64)] - - {{ cdt('libxshmfence-devel') }} # [linux and (ppc64le or aarch64)] - - {{ cdt('mesa-khr-devel') }} # [linux and (ppc64le or aarch64)] - # expat here is _only_ required for mesa-dri-drivers - - {{ cdt('expat') }} # [linux] - - {{ cdt('libselinux-devel') }} # [linux] - - pkg-config - - meson - - ninja - host: - - gstreamer {{ version }} - - gst-plugins-base {{ version }} - - gst-plugins-bad {{ version }} - - glib - - python - - pygobject >=3.8 - - setuptools - - zlib - run: - - {{ pin_compatible('gstreamer') }} - - {{ pin_compatible('gst-plugins-base') }} - - {{ pin_compatible('gst-plugins-bad') }} - - python - - pygobject - - typing_extensions - -test: - commands: - - test -f $PREFIX/lib/gstreamer-1.0/libgstpython${SHLIB_EXT} # [unix] - - if not exist %LIBRARY_LIB%\\gstreamer-1.0\\gstpython.dll exit 1 # [win] - - gst-inspect-1.0 --plugin python - -about: - home: http://gstreamer.freedesktop.org/modules/gst-python.html - dev_url: https://gitlab.freedesktop.org/gstreamer/gstreamer - license: LGPL-2.1-or-later - license_family: LGPL - license_file: COPYING - summary: GStreamer Python binding overrides - description: GStreamer Python binding overrides - -extra: - recipe-maintainers: - - tjwilli58 - - duncanmmacleod - - tschoonj diff --git a/recipe/recipe.yaml b/recipe/recipe.yaml new file mode 100644 index 0000000..651435c --- /dev/null +++ b/recipe/recipe.yaml @@ -0,0 +1,111 @@ +# handle GST versions +schema_version: 1 + +context: + version: "1.26.11" + version_arr: ${{ version | split(".") }} + gst_version: ${{ "." | join((version_arr[0], version_arr[1])) }} + +package: + name: gst-python + version: ${{ version }} + +source: + url: https://gstreamer.freedesktop.org/src/gst-python/gst-python-${{ version }}.tar.xz + sha256: 11316ba769b56d26d8b1464c7198a9924caeae48134f7db59171faf1a73dc436 + +build: + number: 1 + skip: python_impl != 'cpython' + +requirements: + build: + - if: build_platform != target_platform + then: python + - if: build_platform != target_platform + then: cross-python_${{ target_platform }} + - ${{ compiler('c') }} + - ${{ stdlib('c') }} + - ${{ compiler('cxx') }} + - if: linux + then: ${{ cdt('libxau-devel') }} + - if: linux + then: ${{ cdt('libxext-devel') }} + - if: linux + then: ${{ cdt('libx11-devel') }} + - if: linux + then: ${{ cdt('libxrender-devel') }} + - if: linux + then: ${{ cdt('xorg-x11-proto-devel') }} + - if: linux + then: libgl-devel + - if: linux + then: ${{ cdt('libdrm-devel') }} + - if: linux + then: ${{ cdt('libxdamage-devel') }} + - if: linux + then: ${{ cdt('libxfixes-devel') }} + - if: linux + then: ${{ cdt('libxxf86vm-devel') }} + - if: linux + then: ${{ cdt('mesa-dri-drivers') }} + # These dependencies are only for cos7 platforms + - if: linux and (ppc64le or aarch64) + then: ${{ cdt('libglvnd-glx') }} + - if: linux and (ppc64le or aarch64) + then: ${{ cdt('libglvnd') }} + - if: linux and (ppc64le or aarch64) + then: ${{ cdt('libxshmfence-devel') }} + - if: linux and (ppc64le or aarch64) + then: ${{ cdt('mesa-khr-devel') }} + # expat here is _only_ required for mesa-dri-drivers + - if: linux + then: ${{ cdt('expat') }} + - if: linux + then: ${{ cdt('libselinux-devel') }} + - pkg-config + - meson + - ninja + host: + - gstreamer 1.26.11.* + - gst-plugins-base 1.26.11.* + - gst-plugins-bad 1.26.11.* + - glib + - python + - pygobject >=3.8 + - setuptools + - zlib + run: + - ${{ pin_compatible('gstreamer') }} + - ${{ pin_compatible('gst-plugins-base') }} + - ${{ pin_compatible('gst-plugins-bad') }} + - python + - pygobject + - typing_extensions + ignore_run_exports: + by_name: + - gst-plugins-base + from_package: + - ${{ compiler('cxx') }} + +tests: + - script: + - if: unix + then: test -f $PREFIX/lib/gstreamer-1.0/libgstpython${SHLIB_EXT} + - if: win + then: if not exist %LIBRARY_LIB%\\gstreamer-1.0\\gstpython.dll exit 1 + - gst-inspect-1.0 --plugin python + +about: + license: LGPL-2.1-or-later + license_file: COPYING + summary: GStreamer Python binding overrides + description: GStreamer Python binding overrides + homepage: http://gstreamer.freedesktop.org/modules/gst-python.html + repository: https://gitlab.freedesktop.org/gstreamer/gstreamer + +extra: + recipe-maintainers: + - tjwilli58 + - duncanmmacleod + - tschoonj From 7d38ee58c13ace5803e0b1f44c1bc7db9edc0253 Mon Sep 17 00:00:00 2001 From: Tim Williams Date: Sat, 18 Apr 2026 10:55:21 -0400 Subject: [PATCH 2/3] MNT: Re-rendered with conda-smithy 3.60.0 and conda-forge-pinning 2026.04.17.03.21.26 --- .../linux_64_python3.10.____cpython.yaml | 4 --- .../linux_64_python3.11.____cpython.yaml | 4 --- .../linux_64_python3.12.____cpython.yaml | 4 --- .../linux_64_python3.13.____cp313.yaml | 4 --- .../linux_64_python3.14.____cp314.yaml | 4 --- .../linux_aarch64_python3.10.____cpython.yaml | 4 --- .../linux_aarch64_python3.11.____cpython.yaml | 4 --- .../linux_aarch64_python3.12.____cpython.yaml | 4 --- .../linux_aarch64_python3.13.____cp313.yaml | 4 --- .../linux_aarch64_python3.14.____cp314.yaml | 4 --- .../linux_ppc64le_python3.10.____cpython.yaml | 4 --- .../linux_ppc64le_python3.11.____cpython.yaml | 4 --- .../linux_ppc64le_python3.12.____cpython.yaml | 4 --- .../linux_ppc64le_python3.13.____cp313.yaml | 4 --- .../linux_ppc64le_python3.14.____cp314.yaml | 4 --- .../osx_64_python3.10.____cpython.yaml | 4 --- .../osx_64_python3.11.____cpython.yaml | 4 --- .../osx_64_python3.12.____cpython.yaml | 4 --- .ci_support/osx_64_python3.13.____cp313.yaml | 4 --- .ci_support/osx_64_python3.14.____cp314.yaml | 4 --- .../osx_arm64_python3.10.____cpython.yaml | 4 --- .../osx_arm64_python3.11.____cpython.yaml | 4 --- .../osx_arm64_python3.12.____cpython.yaml | 4 --- .../osx_arm64_python3.13.____cp313.yaml | 4 --- .../osx_arm64_python3.14.____cp314.yaml | 4 --- .../win_64_python3.10.____cpython.yaml | 4 --- .../win_64_python3.11.____cpython.yaml | 4 --- .../win_64_python3.12.____cpython.yaml | 4 --- .ci_support/win_64_python3.13.____cp313.yaml | 4 --- .ci_support/win_64_python3.14.____cp314.yaml | 4 --- .scripts/build_steps.sh | 26 ++++++++--------- .scripts/run_osx_build.sh | 28 +++++++------------ .scripts/run_win_build.bat | 8 +++--- 33 files changed, 25 insertions(+), 157 deletions(-) diff --git a/.ci_support/linux_64_python3.10.____cpython.yaml b/.ci_support/linux_64_python3.10.____cpython.yaml index 8d24048..703363f 100644 --- a/.ci_support/linux_64_python3.10.____cpython.yaml +++ b/.ci_support/linux_64_python3.10.____cpython.yaml @@ -20,10 +20,6 @@ docker_image: - quay.io/condaforge/linux-anvil-x86_64:alma9 glib: - '2' -gst_plugins_base: -- '1.26' -gstreamer: -- '1.26' pin_run_as_build: python: min_pin: x.x diff --git a/.ci_support/linux_64_python3.11.____cpython.yaml b/.ci_support/linux_64_python3.11.____cpython.yaml index 322896c..f57edf3 100644 --- a/.ci_support/linux_64_python3.11.____cpython.yaml +++ b/.ci_support/linux_64_python3.11.____cpython.yaml @@ -20,10 +20,6 @@ docker_image: - quay.io/condaforge/linux-anvil-x86_64:alma9 glib: - '2' -gst_plugins_base: -- '1.26' -gstreamer: -- '1.26' pin_run_as_build: python: min_pin: x.x diff --git a/.ci_support/linux_64_python3.12.____cpython.yaml b/.ci_support/linux_64_python3.12.____cpython.yaml index 4583e14..ef904af 100644 --- a/.ci_support/linux_64_python3.12.____cpython.yaml +++ b/.ci_support/linux_64_python3.12.____cpython.yaml @@ -20,10 +20,6 @@ docker_image: - quay.io/condaforge/linux-anvil-x86_64:alma9 glib: - '2' -gst_plugins_base: -- '1.26' -gstreamer: -- '1.26' pin_run_as_build: python: min_pin: x.x diff --git a/.ci_support/linux_64_python3.13.____cp313.yaml b/.ci_support/linux_64_python3.13.____cp313.yaml index 60b166d..ca50ba1 100644 --- a/.ci_support/linux_64_python3.13.____cp313.yaml +++ b/.ci_support/linux_64_python3.13.____cp313.yaml @@ -20,10 +20,6 @@ docker_image: - quay.io/condaforge/linux-anvil-x86_64:alma9 glib: - '2' -gst_plugins_base: -- '1.26' -gstreamer: -- '1.26' pin_run_as_build: python: min_pin: x.x diff --git a/.ci_support/linux_64_python3.14.____cp314.yaml b/.ci_support/linux_64_python3.14.____cp314.yaml index eddfd40..4dd8c17 100644 --- a/.ci_support/linux_64_python3.14.____cp314.yaml +++ b/.ci_support/linux_64_python3.14.____cp314.yaml @@ -20,10 +20,6 @@ docker_image: - quay.io/condaforge/linux-anvil-x86_64:alma9 glib: - '2' -gst_plugins_base: -- '1.26' -gstreamer: -- '1.26' pin_run_as_build: python: min_pin: x.x diff --git a/.ci_support/linux_aarch64_python3.10.____cpython.yaml b/.ci_support/linux_aarch64_python3.10.____cpython.yaml index 4ce3d3b..0d46867 100644 --- a/.ci_support/linux_aarch64_python3.10.____cpython.yaml +++ b/.ci_support/linux_aarch64_python3.10.____cpython.yaml @@ -20,10 +20,6 @@ docker_image: - quay.io/condaforge/linux-anvil-aarch64:alma9 glib: - '2' -gst_plugins_base: -- '1.26' -gstreamer: -- '1.26' pin_run_as_build: python: min_pin: x.x diff --git a/.ci_support/linux_aarch64_python3.11.____cpython.yaml b/.ci_support/linux_aarch64_python3.11.____cpython.yaml index 16bf266..bc3608c 100644 --- a/.ci_support/linux_aarch64_python3.11.____cpython.yaml +++ b/.ci_support/linux_aarch64_python3.11.____cpython.yaml @@ -20,10 +20,6 @@ docker_image: - quay.io/condaforge/linux-anvil-aarch64:alma9 glib: - '2' -gst_plugins_base: -- '1.26' -gstreamer: -- '1.26' pin_run_as_build: python: min_pin: x.x diff --git a/.ci_support/linux_aarch64_python3.12.____cpython.yaml b/.ci_support/linux_aarch64_python3.12.____cpython.yaml index 74b80ad..44a6a89 100644 --- a/.ci_support/linux_aarch64_python3.12.____cpython.yaml +++ b/.ci_support/linux_aarch64_python3.12.____cpython.yaml @@ -20,10 +20,6 @@ docker_image: - quay.io/condaforge/linux-anvil-aarch64:alma9 glib: - '2' -gst_plugins_base: -- '1.26' -gstreamer: -- '1.26' pin_run_as_build: python: min_pin: x.x diff --git a/.ci_support/linux_aarch64_python3.13.____cp313.yaml b/.ci_support/linux_aarch64_python3.13.____cp313.yaml index 1da0ddb..c5f35c3 100644 --- a/.ci_support/linux_aarch64_python3.13.____cp313.yaml +++ b/.ci_support/linux_aarch64_python3.13.____cp313.yaml @@ -20,10 +20,6 @@ docker_image: - quay.io/condaforge/linux-anvil-aarch64:alma9 glib: - '2' -gst_plugins_base: -- '1.26' -gstreamer: -- '1.26' pin_run_as_build: python: min_pin: x.x diff --git a/.ci_support/linux_aarch64_python3.14.____cp314.yaml b/.ci_support/linux_aarch64_python3.14.____cp314.yaml index b7b74e0..0b2353c 100644 --- a/.ci_support/linux_aarch64_python3.14.____cp314.yaml +++ b/.ci_support/linux_aarch64_python3.14.____cp314.yaml @@ -20,10 +20,6 @@ docker_image: - quay.io/condaforge/linux-anvil-aarch64:alma9 glib: - '2' -gst_plugins_base: -- '1.26' -gstreamer: -- '1.26' pin_run_as_build: python: min_pin: x.x diff --git a/.ci_support/linux_ppc64le_python3.10.____cpython.yaml b/.ci_support/linux_ppc64le_python3.10.____cpython.yaml index ca41c82..a8ded2e 100644 --- a/.ci_support/linux_ppc64le_python3.10.____cpython.yaml +++ b/.ci_support/linux_ppc64le_python3.10.____cpython.yaml @@ -20,10 +20,6 @@ docker_image: - quay.io/condaforge/linux-anvil-ppc64le:alma9 glib: - '2' -gst_plugins_base: -- '1.26' -gstreamer: -- '1.26' pin_run_as_build: python: min_pin: x.x diff --git a/.ci_support/linux_ppc64le_python3.11.____cpython.yaml b/.ci_support/linux_ppc64le_python3.11.____cpython.yaml index 05e1005..15d47c1 100644 --- a/.ci_support/linux_ppc64le_python3.11.____cpython.yaml +++ b/.ci_support/linux_ppc64le_python3.11.____cpython.yaml @@ -20,10 +20,6 @@ docker_image: - quay.io/condaforge/linux-anvil-ppc64le:alma9 glib: - '2' -gst_plugins_base: -- '1.26' -gstreamer: -- '1.26' pin_run_as_build: python: min_pin: x.x diff --git a/.ci_support/linux_ppc64le_python3.12.____cpython.yaml b/.ci_support/linux_ppc64le_python3.12.____cpython.yaml index dfc0176..060e0c1 100644 --- a/.ci_support/linux_ppc64le_python3.12.____cpython.yaml +++ b/.ci_support/linux_ppc64le_python3.12.____cpython.yaml @@ -20,10 +20,6 @@ docker_image: - quay.io/condaforge/linux-anvil-ppc64le:alma9 glib: - '2' -gst_plugins_base: -- '1.26' -gstreamer: -- '1.26' pin_run_as_build: python: min_pin: x.x diff --git a/.ci_support/linux_ppc64le_python3.13.____cp313.yaml b/.ci_support/linux_ppc64le_python3.13.____cp313.yaml index b247640..3b120f2 100644 --- a/.ci_support/linux_ppc64le_python3.13.____cp313.yaml +++ b/.ci_support/linux_ppc64le_python3.13.____cp313.yaml @@ -20,10 +20,6 @@ docker_image: - quay.io/condaforge/linux-anvil-ppc64le:alma9 glib: - '2' -gst_plugins_base: -- '1.26' -gstreamer: -- '1.26' pin_run_as_build: python: min_pin: x.x diff --git a/.ci_support/linux_ppc64le_python3.14.____cp314.yaml b/.ci_support/linux_ppc64le_python3.14.____cp314.yaml index 688975a..fb6d24f 100644 --- a/.ci_support/linux_ppc64le_python3.14.____cp314.yaml +++ b/.ci_support/linux_ppc64le_python3.14.____cp314.yaml @@ -20,10 +20,6 @@ docker_image: - quay.io/condaforge/linux-anvil-ppc64le:alma9 glib: - '2' -gst_plugins_base: -- '1.26' -gstreamer: -- '1.26' pin_run_as_build: python: min_pin: x.x diff --git a/.ci_support/osx_64_python3.10.____cpython.yaml b/.ci_support/osx_64_python3.10.____cpython.yaml index d4232b6..b99cf87 100644 --- a/.ci_support/osx_64_python3.10.____cpython.yaml +++ b/.ci_support/osx_64_python3.10.____cpython.yaml @@ -20,10 +20,6 @@ cxx_compiler_version: - '19' glib: - '2' -gst_plugins_base: -- '1.26' -gstreamer: -- '1.26' macos_machine: - x86_64-apple-darwin13.4.0 pin_run_as_build: diff --git a/.ci_support/osx_64_python3.11.____cpython.yaml b/.ci_support/osx_64_python3.11.____cpython.yaml index a871c61..3d555bf 100644 --- a/.ci_support/osx_64_python3.11.____cpython.yaml +++ b/.ci_support/osx_64_python3.11.____cpython.yaml @@ -20,10 +20,6 @@ cxx_compiler_version: - '19' glib: - '2' -gst_plugins_base: -- '1.26' -gstreamer: -- '1.26' macos_machine: - x86_64-apple-darwin13.4.0 pin_run_as_build: diff --git a/.ci_support/osx_64_python3.12.____cpython.yaml b/.ci_support/osx_64_python3.12.____cpython.yaml index 4b6323e..95f0b8b 100644 --- a/.ci_support/osx_64_python3.12.____cpython.yaml +++ b/.ci_support/osx_64_python3.12.____cpython.yaml @@ -20,10 +20,6 @@ cxx_compiler_version: - '19' glib: - '2' -gst_plugins_base: -- '1.26' -gstreamer: -- '1.26' macos_machine: - x86_64-apple-darwin13.4.0 pin_run_as_build: diff --git a/.ci_support/osx_64_python3.13.____cp313.yaml b/.ci_support/osx_64_python3.13.____cp313.yaml index 5b620a9..e97cb81 100644 --- a/.ci_support/osx_64_python3.13.____cp313.yaml +++ b/.ci_support/osx_64_python3.13.____cp313.yaml @@ -20,10 +20,6 @@ cxx_compiler_version: - '19' glib: - '2' -gst_plugins_base: -- '1.26' -gstreamer: -- '1.26' macos_machine: - x86_64-apple-darwin13.4.0 pin_run_as_build: diff --git a/.ci_support/osx_64_python3.14.____cp314.yaml b/.ci_support/osx_64_python3.14.____cp314.yaml index be8f07d..6a461bb 100644 --- a/.ci_support/osx_64_python3.14.____cp314.yaml +++ b/.ci_support/osx_64_python3.14.____cp314.yaml @@ -20,10 +20,6 @@ cxx_compiler_version: - '19' glib: - '2' -gst_plugins_base: -- '1.26' -gstreamer: -- '1.26' macos_machine: - x86_64-apple-darwin13.4.0 pin_run_as_build: diff --git a/.ci_support/osx_arm64_python3.10.____cpython.yaml b/.ci_support/osx_arm64_python3.10.____cpython.yaml index d5212c4..12e645a 100644 --- a/.ci_support/osx_arm64_python3.10.____cpython.yaml +++ b/.ci_support/osx_arm64_python3.10.____cpython.yaml @@ -20,10 +20,6 @@ cxx_compiler_version: - '19' glib: - '2' -gst_plugins_base: -- '1.26' -gstreamer: -- '1.26' macos_machine: - arm64-apple-darwin20.0.0 pin_run_as_build: diff --git a/.ci_support/osx_arm64_python3.11.____cpython.yaml b/.ci_support/osx_arm64_python3.11.____cpython.yaml index ec5f657..0d5c4dc 100644 --- a/.ci_support/osx_arm64_python3.11.____cpython.yaml +++ b/.ci_support/osx_arm64_python3.11.____cpython.yaml @@ -20,10 +20,6 @@ cxx_compiler_version: - '19' glib: - '2' -gst_plugins_base: -- '1.26' -gstreamer: -- '1.26' macos_machine: - arm64-apple-darwin20.0.0 pin_run_as_build: diff --git a/.ci_support/osx_arm64_python3.12.____cpython.yaml b/.ci_support/osx_arm64_python3.12.____cpython.yaml index bd78b9b..68a11bd 100644 --- a/.ci_support/osx_arm64_python3.12.____cpython.yaml +++ b/.ci_support/osx_arm64_python3.12.____cpython.yaml @@ -20,10 +20,6 @@ cxx_compiler_version: - '19' glib: - '2' -gst_plugins_base: -- '1.26' -gstreamer: -- '1.26' macos_machine: - arm64-apple-darwin20.0.0 pin_run_as_build: diff --git a/.ci_support/osx_arm64_python3.13.____cp313.yaml b/.ci_support/osx_arm64_python3.13.____cp313.yaml index da5c7ce..0cc008c 100644 --- a/.ci_support/osx_arm64_python3.13.____cp313.yaml +++ b/.ci_support/osx_arm64_python3.13.____cp313.yaml @@ -20,10 +20,6 @@ cxx_compiler_version: - '19' glib: - '2' -gst_plugins_base: -- '1.26' -gstreamer: -- '1.26' macos_machine: - arm64-apple-darwin20.0.0 pin_run_as_build: diff --git a/.ci_support/osx_arm64_python3.14.____cp314.yaml b/.ci_support/osx_arm64_python3.14.____cp314.yaml index 62e7fca..f896ffa 100644 --- a/.ci_support/osx_arm64_python3.14.____cp314.yaml +++ b/.ci_support/osx_arm64_python3.14.____cp314.yaml @@ -20,10 +20,6 @@ cxx_compiler_version: - '19' glib: - '2' -gst_plugins_base: -- '1.26' -gstreamer: -- '1.26' macos_machine: - arm64-apple-darwin20.0.0 pin_run_as_build: diff --git a/.ci_support/win_64_python3.10.____cpython.yaml b/.ci_support/win_64_python3.10.____cpython.yaml index 7cd495a..a54f009 100644 --- a/.ci_support/win_64_python3.10.____cpython.yaml +++ b/.ci_support/win_64_python3.10.____cpython.yaml @@ -10,10 +10,6 @@ cxx_compiler: - vs2022 glib: - '2' -gst_plugins_base: -- '1.26' -gstreamer: -- '1.26' pin_run_as_build: python: min_pin: x.x diff --git a/.ci_support/win_64_python3.11.____cpython.yaml b/.ci_support/win_64_python3.11.____cpython.yaml index 8921912..5d32322 100644 --- a/.ci_support/win_64_python3.11.____cpython.yaml +++ b/.ci_support/win_64_python3.11.____cpython.yaml @@ -10,10 +10,6 @@ cxx_compiler: - vs2022 glib: - '2' -gst_plugins_base: -- '1.26' -gstreamer: -- '1.26' pin_run_as_build: python: min_pin: x.x diff --git a/.ci_support/win_64_python3.12.____cpython.yaml b/.ci_support/win_64_python3.12.____cpython.yaml index f124b32..823ac91 100644 --- a/.ci_support/win_64_python3.12.____cpython.yaml +++ b/.ci_support/win_64_python3.12.____cpython.yaml @@ -10,10 +10,6 @@ cxx_compiler: - vs2022 glib: - '2' -gst_plugins_base: -- '1.26' -gstreamer: -- '1.26' pin_run_as_build: python: min_pin: x.x diff --git a/.ci_support/win_64_python3.13.____cp313.yaml b/.ci_support/win_64_python3.13.____cp313.yaml index 9847fe6..f95567b 100644 --- a/.ci_support/win_64_python3.13.____cp313.yaml +++ b/.ci_support/win_64_python3.13.____cp313.yaml @@ -10,10 +10,6 @@ cxx_compiler: - vs2022 glib: - '2' -gst_plugins_base: -- '1.26' -gstreamer: -- '1.26' pin_run_as_build: python: min_pin: x.x diff --git a/.ci_support/win_64_python3.14.____cp314.yaml b/.ci_support/win_64_python3.14.____cp314.yaml index b396c14..d264d96 100644 --- a/.ci_support/win_64_python3.14.____cp314.yaml +++ b/.ci_support/win_64_python3.14.____cp314.yaml @@ -10,10 +10,6 @@ cxx_compiler: - vs2022 glib: - '2' -gst_plugins_base: -- '1.26' -gstreamer: -- '1.26' pin_run_as_build: python: min_pin: x.x diff --git a/.scripts/build_steps.sh b/.scripts/build_steps.sh index 2d6a2b1..f2d7598 100755 --- a/.scripts/build_steps.sh +++ b/.scripts/build_steps.sh @@ -36,7 +36,7 @@ mv /opt/conda/conda-meta/history /opt/conda/conda-meta/history.$(date +%Y-%m-%d- echo > /opt/conda/conda-meta/history micromamba install --root-prefix ~/.conda --prefix /opt/conda \ --yes --override-channels --channel conda-forge --strict-channel-priority \ - pip python=3.12 conda-build conda-forge-ci-setup=4 "conda-build>=24.1" + pip rattler-build conda-forge-ci-setup=4 "conda-build>=24.1" export CONDA_LIBMAMBA_SOLVER_NO_CHANNELS_FROM_INSTALLED=1 # set up the condarc @@ -62,7 +62,7 @@ ulimit -n 1024 make_build_number "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}" if [[ "${HOST_PLATFORM}" != "${BUILD_PLATFORM}" ]] && [[ "${BUILD_WITH_CONDA_DEBUG:-0}" != 1 ]]; then - EXTRA_CB_OPTIONS="${EXTRA_CB_OPTIONS:-} --no-test" + EXTRA_CB_OPTIONS="${EXTRA_CB_OPTIONS:-} --test skip" fi ( endgroup "Configuring conda" ) 2> /dev/null @@ -72,20 +72,16 @@ if [[ -f "${FEEDSTOCK_ROOT}/LICENSE.txt" ]]; then fi if [[ "${BUILD_WITH_CONDA_DEBUG:-0}" == 1 ]]; then - if [[ "x${BUILD_OUTPUT_ID:-}" != "x" ]]; then - EXTRA_CB_OPTIONS="${EXTRA_CB_OPTIONS:-} --output-id ${BUILD_OUTPUT_ID}" - fi - conda debug "${RECIPE_ROOT}" -m "${CI_SUPPORT}/${CONFIG}.yaml" \ - ${EXTRA_CB_OPTIONS:-} \ - --clobber-file "${CI_SUPPORT}/clobber_${CONFIG}.yaml" - - # Drop into an interactive shell - /bin/bash + echo "rattler-build currently doesn't support debug mode" else - conda-build "${RECIPE_ROOT}" -m "${CI_SUPPORT}/${CONFIG}.yaml" \ - --suppress-variables ${EXTRA_CB_OPTIONS:-} \ - --clobber-file "${CI_SUPPORT}/clobber_${CONFIG}.yaml" \ - --extra-meta flow_run_id="${flow_run_id:-}" remote_url="${remote_url:-}" sha="${sha:-}" + + rattler-build build --recipe "${RECIPE_ROOT}" \ + -m "${CI_SUPPORT}/${CONFIG}.yaml" \ + ${EXTRA_CB_OPTIONS:-} \ + --target-platform "${HOST_PLATFORM}" \ + --extra-meta flow_run_id="${flow_run_id:-}" \ + --extra-meta remote_url="${remote_url:-}" \ + --extra-meta sha="${sha:-}" ( startgroup "Inspecting artifacts" ) 2> /dev/null # inspect_artifacts was only added in conda-forge-ci-setup 4.9.4 diff --git a/.scripts/run_osx_build.sh b/.scripts/run_osx_build.sh index bac7141..6a9653c 100755 --- a/.scripts/run_osx_build.sh +++ b/.scripts/run_osx_build.sh @@ -26,7 +26,7 @@ chmod +x "${micromamba_exe}" echo "Creating environment" "${micromamba_exe}" create --yes --root-prefix "${MAMBA_ROOT_PREFIX}" --prefix "${MINIFORGE_HOME}" \ --channel conda-forge \ - pip python=3.12 conda-build conda-forge-ci-setup=4 "conda-build>=24.1" + pip rattler-build conda-forge-ci-setup=4 "conda-build>=24.1" echo "Moving pkgs cache from ${MAMBA_ROOT_PREFIX} to ${MINIFORGE_HOME}" mv "${MAMBA_ROOT_PREFIX}/pkgs" "${MINIFORGE_HOME}" echo "Cleaning up micromamba" @@ -89,33 +89,25 @@ source run_conda_forge_build_setup ( endgroup "Configuring conda" ) 2> /dev/null -echo -e "\n\nMaking the build clobber file" -make_build_number ./ ./recipe ./.ci_support/${CONFIG}.yaml - if [[ -f LICENSE.txt ]]; then cp LICENSE.txt "recipe/recipe-scripts-license.txt" fi if [[ "${BUILD_WITH_CONDA_DEBUG:-0}" == 1 ]]; then - if [[ "x${BUILD_OUTPUT_ID:-}" != "x" ]]; then - EXTRA_CB_OPTIONS="${EXTRA_CB_OPTIONS:-} --output-id ${BUILD_OUTPUT_ID}" - fi - conda debug ./recipe -m ./.ci_support/${CONFIG}.yaml \ - ${EXTRA_CB_OPTIONS:-} \ - --clobber-file ./.ci_support/clobber_${CONFIG}.yaml - - # Drop into an interactive shell - /bin/bash + echo "rattler-build does not currently support debug mode" else if [[ "${HOST_PLATFORM}" != "${BUILD_PLATFORM}" ]]; then - EXTRA_CB_OPTIONS="${EXTRA_CB_OPTIONS:-} --no-test" + EXTRA_CB_OPTIONS="${EXTRA_CB_OPTIONS:-} --test skip" fi - conda-build ./recipe -m ./.ci_support/${CONFIG}.yaml \ - --suppress-variables ${EXTRA_CB_OPTIONS:-} \ - --clobber-file ./.ci_support/clobber_${CONFIG}.yaml \ - --extra-meta flow_run_id="$flow_run_id" remote_url="$remote_url" sha="$sha" + rattler-build build --recipe ./recipe \ + -m ./.ci_support/${CONFIG}.yaml \ + ${EXTRA_CB_OPTIONS:-} \ + --target-platform "${HOST_PLATFORM}" \ + --extra-meta flow_run_id="$flow_run_id" \ + --extra-meta remote_url="$remote_url" \ + --extra-meta sha="$sha" ( startgroup "Inspecting artifacts" ) 2> /dev/null diff --git a/.scripts/run_win_build.bat b/.scripts/run_win_build.bat index 3c7b325..7281f3f 100755 --- a/.scripts/run_win_build.bat +++ b/.scripts/run_win_build.bat @@ -31,7 +31,7 @@ if !errorlevel! neq 0 exit /b !errorlevel! echo Creating environment call "%MICROMAMBA_EXE%" create --yes --root-prefix "%MAMBA_ROOT_PREFIX%" --prefix "%MINIFORGE_HOME%" ^ --channel conda-forge ^ - pip python=3.12 conda-build conda-forge-ci-setup=4 "conda-build>=24.1" + pip rattler-build conda-forge-ci-setup=4 "conda-build>=24.1" if !errorlevel! neq 0 exit /b !errorlevel! echo Removing %MAMBA_ROOT_PREFIX% del /S /Q "%MAMBA_ROOT_PREFIX%" >nul @@ -63,18 +63,18 @@ if EXIST LICENSE.txt ( copy LICENSE.txt "recipe\\recipe-scripts-license.txt" ) if NOT [%HOST_PLATFORM%] == [%BUILD_PLATFORM%] ( - set "EXTRA_CB_OPTIONS=%EXTRA_CB_OPTIONS% --no-test" + set "EXTRA_CB_OPTIONS=%EXTRA_CB_OPTIONS% --test skip" ) if NOT [%flow_run_id%] == [] ( - set "EXTRA_CB_OPTIONS=%EXTRA_CB_OPTIONS% --extra-meta flow_run_id=%flow_run_id% remote_url=%remote_url% sha=%sha%" + set "EXTRA_CB_OPTIONS=%EXTRA_CB_OPTIONS% --extra-meta flow_run_id=%flow_run_id% --extra-meta remote_url=%remote_url% --extra-meta sha=%sha%" ) call :end_group :: Build the recipe echo Building recipe -conda-build.exe "recipe" -m .ci_support\%CONFIG%.yaml --suppress-variables %EXTRA_CB_OPTIONS% +rattler-build.exe build --recipe "recipe" -m .ci_support\%CONFIG%.yaml %EXTRA_CB_OPTIONS% --target-platform %HOST_PLATFORM% if !errorlevel! neq 0 exit /b !errorlevel! call :start_group "Inspecting artifacts" From c404bc9f05bc8fa6f1847931f5242d5d1d189a77 Mon Sep 17 00:00:00 2001 From: Tim Williams Date: Sat, 18 Apr 2026 11:05:35 -0400 Subject: [PATCH 3/3] recipe.yaml: consolidate IF statements --- recipe/recipe.yaml | 55 ++++++++++++++++++---------------------------- 1 file changed, 21 insertions(+), 34 deletions(-) diff --git a/recipe/recipe.yaml b/recipe/recipe.yaml index 651435c..57d2f91 100644 --- a/recipe/recipe.yaml +++ b/recipe/recipe.yaml @@ -28,41 +28,28 @@ requirements: - ${{ stdlib('c') }} - ${{ compiler('cxx') }} - if: linux - then: ${{ cdt('libxau-devel') }} - - if: linux - then: ${{ cdt('libxext-devel') }} - - if: linux - then: ${{ cdt('libx11-devel') }} - - if: linux - then: ${{ cdt('libxrender-devel') }} - - if: linux - then: ${{ cdt('xorg-x11-proto-devel') }} - - if: linux - then: libgl-devel - - if: linux - then: ${{ cdt('libdrm-devel') }} - - if: linux - then: ${{ cdt('libxdamage-devel') }} - - if: linux - then: ${{ cdt('libxfixes-devel') }} - - if: linux - then: ${{ cdt('libxxf86vm-devel') }} - - if: linux - then: ${{ cdt('mesa-dri-drivers') }} + then: + - ${{ cdt('libxau-devel') }} + - ${{ cdt('libxext-devel') }} + - ${{ cdt('libx11-devel') }} + - ${{ cdt('libxrender-devel') }} + - ${{ cdt('xorg-x11-proto-devel') }} + - libgl-devel + - ${{ cdt('libdrm-devel') }} + - ${{ cdt('libxdamage-devel') }} + - ${{ cdt('libxfixes-devel') }} + - ${{ cdt('libxxf86vm-devel') }} + - ${{ cdt('mesa-dri-drivers') }} + # expat here is _only_ required for mesa-dri-drivers + - ${{ cdt('expat') }} + - ${{ cdt('libselinux-devel') }} # These dependencies are only for cos7 platforms - - if: linux and (ppc64le or aarch64) - then: ${{ cdt('libglvnd-glx') }} - - if: linux and (ppc64le or aarch64) - then: ${{ cdt('libglvnd') }} - - if: linux and (ppc64le or aarch64) - then: ${{ cdt('libxshmfence-devel') }} - - if: linux and (ppc64le or aarch64) - then: ${{ cdt('mesa-khr-devel') }} - # expat here is _only_ required for mesa-dri-drivers - - if: linux - then: ${{ cdt('expat') }} - - if: linux - then: ${{ cdt('libselinux-devel') }} + - if: ppc64le or aarch64 + then: + - ${{ cdt('libglvnd-glx') }} + - ${{ cdt('libglvnd') }} + - ${{ cdt('libxshmfence-devel') }} + - ${{ cdt('mesa-khr-devel') }} - pkg-config - meson - ninja