From ec93af25c08ba040f2b735cf21251c9e3e7ae170 Mon Sep 17 00:00:00 2001 From: Lorenzo Pirritano Date: Fri, 1 Nov 2024 10:48:14 +0100 Subject: [PATCH 1/3] kmeans-pytorch 0.3 --- README.md | 20 ++++++++++---------- abs.yaml | 2 ++ pull_request_template.md | 15 --------------- recipe/meta.yaml | 39 ++++++++++++++++++++++++--------------- 4 files changed, 36 insertions(+), 40 deletions(-) create mode 100644 abs.yaml delete mode 100644 pull_request_template.md diff --git a/README.md b/README.md index 2fd97d8..6d317c0 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,13 @@ -About -feedstock +About kmeans-pytorch-feedstock ======================= Feedstock license: [BSD-3-Clause](LICENSE) -Home: +Home: https://subhadarship.github.io/kmeans_pytorch -Package license: +Package license: MIT -Summary: +Summary: PyTorch implementation of kmeans for utilizing GPU Current release info @@ -15,19 +15,19 @@ Current release info | Name | Downloads | Version | Platforms | | --- | --- | --- | --- | -| [![Conda Recipe](https://img.shields.io/badge/recipe--green.svg)](https://anaconda.org/anaconda/) | [![Conda Downloads](https://img.shields.io/conda/dn/anaconda/.svg)](https://anaconda.org/anaconda/) | [![Conda Version](https://img.shields.io/conda/vn/anaconda/.svg)](https://anaconda.org/anaconda/) | [![Conda Platforms](https://img.shields.io/conda/pn/anaconda/.svg)](https://anaconda.org/anaconda/) | +| [![Conda Recipe](https://img.shields.io/badge/recipe-kmeans-pytorch-green.svg)](https://anaconda.org/anaconda/kmeans-pytorch) | [![Conda Downloads](https://img.shields.io/conda/dn/anaconda/kmeans-pytorch.svg)](https://anaconda.org/anaconda/kmeans-pytorch) | [![Conda Version](https://img.shields.io/conda/vn/anaconda/kmeans-pytorch.svg)](https://anaconda.org/anaconda/kmeans-pytorch) | [![Conda Platforms](https://img.shields.io/conda/pn/anaconda/kmeans-pytorch.svg)](https://anaconda.org/anaconda/kmeans-pytorch) | -Installing +Installing kmeans-pytorch ================== -Installing `` from the main channel can be achieved by: +Installing `kmeans-pytorch` from the main channel can be achieved by: ``` -conda install +conda install kmeans-pytorch ``` -It is possible to list all of the versions of `` available on your platform with `conda`: +It is possible to list all of the versions of `kmeans-pytorch` available on your platform with `conda`: ``` -conda search +conda search kmeans-pytorch ``` \ No newline at end of file diff --git a/abs.yaml b/abs.yaml new file mode 100644 index 0000000..1ed0d29 --- /dev/null +++ b/abs.yaml @@ -0,0 +1,2 @@ +upload_channels: + - sfe1ed40 diff --git a/pull_request_template.md b/pull_request_template.md deleted file mode 100644 index 2bddf19..0000000 --- a/pull_request_template.md +++ /dev/null @@ -1,15 +0,0 @@ -{package} {version} {:snowflake:} - -**Destination channel:** {Snowflake | defaults} - -### Links - -- [{ticket_number}]() -- [Upstream repository]() -- [Upstream changelog/diff]() -- Relevant dependency PRs: - - ... - -### Explanation of changes: - -- ... diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 9018614..449d0ea 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -1,45 +1,54 @@ -{% set name = "" %} -{% set version = "" %} +{% set name = "kmeans-pytorch" %} +{% set version = "0.3" %} package: name: {{ name|lower }} version: {{ version }} source: - url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz - sha256: + url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/kmeans_pytorch-{{ version }}.tar.gz + sha256: c0e7279078f5592c0a80a836897efd1567c3275544e7d0ad844bff24053d8e78 build: number: 0 + skip: true # [py<38] script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation - skip: True # [py<38] + entry_points: + - kmeans_pytorch=kmeans_pytorch.main:main requirements: host: - python - pip + - setuptools + - wheel run: - python + - numpy + - tqdm + - numba + - pytorch test: imports: - - {{ name.replace('-', '.') }} + - kmeans_pytorch requires: - pip commands: - pip check + - kmeans_pytorch --help about: - home: - summary: + home: https://subhadarship.github.io/kmeans_pytorch + license: MIT + license_family: MIT + license_file: LICENSE + summary: PyTorch implementation of kmeans for utilizing GPU. description: | - - license: - license_family: - license_file: - dev_url: - doc_url: + PyTorch implementation of kmeans for utilizing GPU. + doc_url: https://subhadarship.github.io/kmeans_pytorch + dev_url: https://github.com/subhadarship/kmeans_pytorch extra: recipe-maintainers: - - Jrice1317 + - lorepirri From 56f65f53dd950563699180d92c46d0cce0ed0657 Mon Sep 17 00:00:00 2001 From: Lorenzo Pirritano Date: Fri, 1 Nov 2024 10:54:51 +0100 Subject: [PATCH 2/3] skip s390x --- recipe/meta.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 449d0ea..672011e 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -11,7 +11,8 @@ source: build: number: 0 - skip: true # [py<38] + # s390x: numba unavailable + skip: true # [py<38 or s390x] script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation entry_points: - kmeans_pytorch=kmeans_pytorch.main:main From 7b96899c2c6d82a1badba6d67e0960a6a7409c8a Mon Sep 17 00:00:00 2001 From: Lorenzo Pirritano Date: Mon, 4 Nov 2024 14:06:37 +0100 Subject: [PATCH 3/3] add pytorch pinning --- recipe/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 672011e..e68cfe4 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -28,7 +28,7 @@ requirements: - numpy - tqdm - numba - - pytorch + - pytorch >=1.0.0 test: imports: