From baff7f3e426808b9e46a93d2934a2603094be156 Mon Sep 17 00:00:00 2001 From: Stefanie Molin <24376333+stefmolin@users.noreply.github.com> Date: Tue, 20 May 2025 11:42:22 -0400 Subject: [PATCH 1/2] Update PyPI URL source to avoid confusion when distribution name has hyphens --- tutorials/publish-conda-forge.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/publish-conda-forge.md b/tutorials/publish-conda-forge.md index bda10f9ac..97292c08f 100644 --- a/tutorials/publish-conda-forge.md +++ b/tutorials/publish-conda-forge.md @@ -244,7 +244,7 @@ package: version: {{ version }} source: - url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/pyospackage-{{ version }}.tar.gz + url: https://pypi.io/packages/source/{{ name[0] }}/{{ name.replace('-', '_') }}/pyospackage-{{ version }}.tar.gz sha256: 43ec82da3a10752a5dbf2f0ef742e357803a3ddb400005f87e86534685bfb8a7 build: From 20300a14d3f3e13b81d6a06f4370842e1aee05ab Mon Sep 17 00:00:00 2001 From: Stefanie Molin <24376333+stefmolin@users.noreply.github.com> Date: Tue, 20 May 2025 11:48:12 -0400 Subject: [PATCH 2/2] Update publish-conda-forge.md --- tutorials/publish-conda-forge.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tutorials/publish-conda-forge.md b/tutorials/publish-conda-forge.md index 97292c08f..26d307276 100644 --- a/tutorials/publish-conda-forge.md +++ b/tutorials/publish-conda-forge.md @@ -244,7 +244,7 @@ package: version: {{ version }} source: - url: https://pypi.io/packages/source/{{ name[0] }}/{{ name.replace('-', '_') }}/pyospackage-{{ version }}.tar.gz + url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/{{ name.replace('-', '_') }}-{{ version }}.tar.gz sha256: 43ec82da3a10752a5dbf2f0ef742e357803a3ddb400005f87e86534685bfb8a7 build: @@ -397,7 +397,7 @@ If you want to learn more about static libraries, then [this overview](https://p ```bash source: - url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/pyospackage-{{ version }}.tar.gz + url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/{{ name.replace('-', '_') }}-{{ version }}.tar.gz sha256: 01e31f5521973710d0d91b15a94491d4f8f8f54566322110098c0f2381dd09ab build: @@ -411,7 +411,7 @@ build: **Translation:** Here conda wants you to provide a link to the source distribution on PyPI rather than a link to your GitHub repository distribution. Notice above in the Source section of your recipe there is a `url:` section that provides a PyPI url that ends in tar.gz. That is a link to your source distribution that conda-forge will use. ```yaml -url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/pyospackage-{{ version }}.tar.gz +url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/{{ name.replace('-', '_') }}-{{ version }}.tar.gz ``` > - [x] GitHub users listed in the maintainer section have posted a comment confirming they are willing to be listed there.