From 5c3f44e07f879dc5d80b4096d0494ea75830f616 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Fri, 11 Apr 2025 09:38:01 +0200 Subject: [PATCH 1/3] Add recipe for pure python package pytorch-pfn-extras --- recipes/pytorch-pfn-extras/recipe.yaml | 45 ++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 recipes/pytorch-pfn-extras/recipe.yaml diff --git a/recipes/pytorch-pfn-extras/recipe.yaml b/recipes/pytorch-pfn-extras/recipe.yaml new file mode 100644 index 0000000000000..88f7450aba122 --- /dev/null +++ b/recipes/pytorch-pfn-extras/recipe.yaml @@ -0,0 +1,45 @@ +context: + version: 0.8.2 + +package: + name: pytorch-pfn-extras + version: ${{ version }} + +source: +- url: https://pypi.org/packages/source/p/pytorch-pfn-extras/pytorch_pfn_extras-${{ version }}.tar.gz + sha256: 263029baada5e9d220b7500802bb5c5ea25b115fd03766af5df03484341ee6e9 + +build: + script: ${{ PYTHON }} -m pip install . --no-deps --no-build-isolation + noarch: python + +requirements: + host: + - python ${{ python_min }}.* + - setuptools + - wheel + - pip + run: + - python >=${{ python_min }} + - numpy + - packaging + - pytorch + - typing-extensions >=3.10 + +tests: +- python: + imports: + - pytorch-pfn-extras + pip_check: true + python_version: ${{ python_min }}.* + +about: + summary: Supplementary components to accelerate research and development in PyTorch. + license: MIT + license_file: LICENSE + homepage: https://github.com/pfnet/pytorch-pfn-extras + repository: https://github.com/pfnet/pytorch-pfn-extras + +extra: + recipe-maintainers: + - traversaro From 27a26ae91fce95c659b3e814b0d30877b8452d0f Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Fri, 11 Apr 2025 09:41:03 +0200 Subject: [PATCH 2/3] Add build number --- recipes/pytorch-pfn-extras/recipe.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes/pytorch-pfn-extras/recipe.yaml b/recipes/pytorch-pfn-extras/recipe.yaml index 88f7450aba122..4095410e4a7e7 100644 --- a/recipes/pytorch-pfn-extras/recipe.yaml +++ b/recipes/pytorch-pfn-extras/recipe.yaml @@ -12,6 +12,7 @@ source: build: script: ${{ PYTHON }} -m pip install . --no-deps --no-build-isolation noarch: python + number: 0 requirements: host: From 4e6be9d60b0798afe08f0d0ecc6aed5749a26edc Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Fri, 11 Apr 2025 09:44:21 +0200 Subject: [PATCH 3/3] Fix python module name --- recipes/pytorch-pfn-extras/recipe.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/pytorch-pfn-extras/recipe.yaml b/recipes/pytorch-pfn-extras/recipe.yaml index 4095410e4a7e7..6ac3c34593c42 100644 --- a/recipes/pytorch-pfn-extras/recipe.yaml +++ b/recipes/pytorch-pfn-extras/recipe.yaml @@ -30,7 +30,7 @@ requirements: tests: - python: imports: - - pytorch-pfn-extras + - pytorch_pfn_extras pip_check: true python_version: ${{ python_min }}.*