From 2d999d567631b2cb6cbafecbf6d1582386e9386f Mon Sep 17 00:00:00 2001 From: Joren Hammudoglu Date: Wed, 13 Aug 2025 19:51:29 +0200 Subject: [PATCH 1/3] optype 0.13.1 --- recipe/recipe.yaml | 80 ++++++++++++++++++++++++++++++++-------------- 1 file changed, 56 insertions(+), 24 deletions(-) diff --git a/recipe/recipe.yaml b/recipe/recipe.yaml index f21431f..e1fe36e 100644 --- a/recipe/recipe.yaml +++ b/recipe/recipe.yaml @@ -2,38 +2,70 @@ schema_version: 1 context: name: optype - version: "0.12.2" + version: "0.13.1" python_min: "3.11" + numpy_min: "1.25" -package: - name: ${{ name|lower }} +recipe: + name: ${{ name }}-split version: ${{ version }} source: - url: https://pypi.org/packages/source/${{ name[0] }}/${{ name }}/optype-${{ version }}.tar.gz - sha256: 3f53a89f56f0ea23be4d212611dce0f3a2a8946543a9a72783e349c49b232934 + url: https://pypi.org/packages/source/${{ name[0] }}/${{ name }}//${{ name }}-${{ version }}.tar.gz + sha256: 9b1d590597b0c093faf5253e38238c5a5e1a1f9afb04530836c38ac94fdd5cf6 build: number: 0 - script: ${{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation - noarch: python - -requirements: - host: - - python ${{ python_min }}.* - - uv-build - - pip - run: - - python >=${{ python_min }} - # needed for python <3.13, not using a selector to enable noarch - - typing-extensions >=4.10 - -tests: - - python: - imports: - - optype - pip_check: true - python_version: ${{ python_min }}.* + +outputs: + - package: + name: ${{ name }} + build: + script: ${{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation + noarch: python + requirements: + host: + - python ${{ python_min }}.* + - uv-build + - pip + run: + - python >=${{ python_min }} + # needed for python <3.13, not using a selector to enable noarch + - typing-extensions >=4.10 + + tests: + - python: + imports: + - optype + pip_check: true + python_version: ${{ python_min }}.* + + # analogue of PyPI's `optype[numpy]` + - package: + name: ${{ name }}-numpy + build: + noarch: python + requirements: + host: + - python ${{ python_min }}.* + run: + - python >=${{ python_min }} + - numpy >=${{ numpy_min }} + - numpy-typing-compat >=${{ numpy_min }} + - ${{ pin_subpackage('optype', exact=True) }} + tests: + - python: + imports: + - optype + - files: + source: + - pyproject.toml + requirements: + run: + - python ${{ python_min }}.* + script: + # raises if numpy-typing-compat is not installed or the wrong version + - python -c "import optype.numpy" about: license: BSD-3-Clause From 83772fed20ccc69d1dfc22d3025a03a26ea83b9f Mon Sep 17 00:00:00 2001 From: "conda-forge-webservices[bot]" <91080706+conda-forge-webservices[bot]@users.noreply.github.com> Date: Wed, 13 Aug 2025 17:54:42 +0000 Subject: [PATCH 2/3] MNT: Re-rendered with conda-build 25.7.0, conda-smithy 3.51.1, and conda-forge-pinning 2025.08.13.14.30.17 --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e9510f7..9456b96 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,7 @@ Current release info | Name | Downloads | Version | Platforms | | --- | --- | --- | --- | | [![Conda Recipe](https://img.shields.io/badge/recipe-optype-green.svg)](https://anaconda.org/conda-forge/optype) | [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/optype.svg)](https://anaconda.org/conda-forge/optype) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/optype.svg)](https://anaconda.org/conda-forge/optype) | [![Conda Platforms](https://img.shields.io/conda/pn/conda-forge/optype.svg)](https://anaconda.org/conda-forge/optype) | +| [![Conda Recipe](https://img.shields.io/badge/recipe-optype--numpy-green.svg)](https://anaconda.org/conda-forge/optype-numpy) | [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/optype-numpy.svg)](https://anaconda.org/conda-forge/optype-numpy) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/optype-numpy.svg)](https://anaconda.org/conda-forge/optype-numpy) | [![Conda Platforms](https://img.shields.io/conda/pn/conda-forge/optype-numpy.svg)](https://anaconda.org/conda-forge/optype-numpy) | Installing optype ================= @@ -45,16 +46,16 @@ conda config --add channels conda-forge conda config --set channel_priority strict ``` -Once the `conda-forge` channel has been enabled, `optype` can be installed with `conda`: +Once the `conda-forge` channel has been enabled, `optype, optype-numpy` can be installed with `conda`: ``` -conda install optype +conda install optype optype-numpy ``` or with `mamba`: ``` -mamba install optype +mamba install optype optype-numpy ``` It is possible to list all of the versions of `optype` available on your platform with `conda`: From 6b5f2031416a842b2c70d8037186b09bb31edd6b Mon Sep 17 00:00:00 2001 From: Joren Hammudoglu Date: Wed, 13 Aug 2025 20:02:33 +0200 Subject: [PATCH 3/3] fix url typo --- recipe/recipe.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipe/recipe.yaml b/recipe/recipe.yaml index e1fe36e..85b903e 100644 --- a/recipe/recipe.yaml +++ b/recipe/recipe.yaml @@ -11,7 +11,7 @@ recipe: version: ${{ version }} source: - url: https://pypi.org/packages/source/${{ name[0] }}/${{ name }}//${{ name }}-${{ version }}.tar.gz + url: https://pypi.org/packages/source/${{ name[0] }}/${{ name }}/${{ name }}-${{ version }}.tar.gz sha256: 9b1d590597b0c093faf5253e38238c5a5e1a1f9afb04530836c38ac94fdd5cf6 build: