From 1aee4fa3f5d047eb64b5fe6ffb0d22ff3c856326 Mon Sep 17 00:00:00 2001 From: ZhijianZhou01 Date: Sat, 6 Jan 2024 16:36:40 +0800 Subject: [PATCH 1/4] add virusrecom recipes --- recipes/virusrecom/meta.yaml | 49 ++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 recipes/virusrecom/meta.yaml diff --git a/recipes/virusrecom/meta.yaml b/recipes/virusrecom/meta.yaml new file mode 100644 index 0000000000000..97b2b580d098c --- /dev/null +++ b/recipes/virusrecom/meta.yaml @@ -0,0 +1,49 @@ +{% set name = "virusrecom" %} +{% set version = "1.1.2" %} + +package: + name: "{{ name }}" + version: "{{ version }}" + +source: + url: https://github.com/ZhijianZhou01/{{ name }}/archive/{{ version }}.tar.gz + sha256: F54B86CAE2D0744A4255D24A9C81903C2DC7AA0053B4F58CCCC4A7DF46995A00 + +build: + number: 0 + noarch: python + script: {{ PYTHON }} -m pip install setup.py + entry_points: + - virusrecom = virusrecom.main:starts + +requirements: + host: + - python >=3.5 + - pip + run: + - mafft >= 7.511 + - muscle >= 3.8.31 + - clustalo >= 1.2.2 + - matplobtlib-base >=2.2.5 + - pandas >=1.1.5 + - numpy >=1.19.3 + - psutil>=5.9.1 + - openpyxl>=3.0.5 + - scipy >=1.5.4 + +test: + commands: + - virusrecom -h + + +about: + home: https://github.com/ZhijianZhou01/virusrecom + license: LGPL v2.1 + license_family: GNU + license_file: LICENSE + summary: An information-theory-based method for recombination detection of viral lineages. + +extra: + identifiers: + - doi:10.1093/bib/bbac513 + \ No newline at end of file From 3759b41a2f9801febbfe1e3a8478de096bca605c Mon Sep 17 00:00:00 2001 From: ZhijianZhou01 Date: Sun, 7 Jan 2024 22:15:42 +0800 Subject: [PATCH 2/4] add virusrecom recipes xx --- recipes/virusrecom/build.sh | 4 +++ recipes/virusrecom/meta.yaml | 47 +++++++++++++++++------------------- 2 files changed, 26 insertions(+), 25 deletions(-) create mode 100644 recipes/virusrecom/build.sh diff --git a/recipes/virusrecom/build.sh b/recipes/virusrecom/build.sh new file mode 100644 index 0000000000000..c65b9bb44d4b1 --- /dev/null +++ b/recipes/virusrecom/build.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +# build +$PYTHON setup.py install --single-version-externally-managed --record=record.txt \ No newline at end of file diff --git a/recipes/virusrecom/meta.yaml b/recipes/virusrecom/meta.yaml index 97b2b580d098c..849d801725226 100644 --- a/recipes/virusrecom/meta.yaml +++ b/recipes/virusrecom/meta.yaml @@ -1,49 +1,46 @@ {% set name = "virusrecom" %} -{% set version = "1.1.2" %} +{% set version = "1.1.2.1" %} package: name: "{{ name }}" version: "{{ version }}" source: - url: https://github.com/ZhijianZhou01/{{ name }}/archive/{{ version }}.tar.gz - sha256: F54B86CAE2D0744A4255D24A9C81903C2DC7AA0053B4F58CCCC4A7DF46995A00 + url: "https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz" + sha256: eaeee6e16e86d296a34fec4adc4a7d0fb58134d6c67de9874410e8c2bb97946b build: number: 0 noarch: python - script: {{ PYTHON }} -m pip install setup.py - entry_points: - - virusrecom = virusrecom.main:starts - + run_exports: + - {{ pin_subpackage('virusrecom', max_pin="x") }} + + requirements: host: - - python >=3.5 - - pip + - python >=3.5,<3.8 + - pip + - setuptools + run: - - mafft >= 7.511 - - muscle >= 3.8.31 - - clustalo >= 1.2.2 - - matplobtlib-base >=2.2.5 - - pandas >=1.1.5 + - matplotlib-base - numpy >=1.19.3 - - psutil>=5.9.1 - - openpyxl>=3.0.5 + - pandas >=1.1.5 - scipy >=1.5.4 + - psutil >=5.9.1 + - openpyxl >=3.0.5 test: commands: - - virusrecom -h - + - virusrecom --help about: - home: https://github.com/ZhijianZhou01/virusrecom - license: LGPL v2.1 - license_family: GNU + home: "https://github.com/ZhijianZhou01/virusrecom" + license: "LGPL v2.1" + license_family: "GPL" license_file: LICENSE - summary: An information-theory-based method for recombination detection of viral lineages. - + summary: "An information-theory-based method for recombination detection of viral lineages." + extra: identifiers: - - doi:10.1093/bib/bbac513 - \ No newline at end of file + - doi:10.1093/bib/bbac513 \ No newline at end of file From 4e84b93c22a38e3c0a2737a0a0316bc62a90bf0a Mon Sep 17 00:00:00 2001 From: Zhou ZJ <43747306+ZhijianZhou01@users.noreply.github.com> Date: Mon, 8 Jan 2024 21:29:13 +0800 Subject: [PATCH 3/4] Update meta.yaml --- recipes/virusrecom/meta.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/recipes/virusrecom/meta.yaml b/recipes/virusrecom/meta.yaml index 849d801725226..270120087f3bf 100644 --- a/recipes/virusrecom/meta.yaml +++ b/recipes/virusrecom/meta.yaml @@ -1,5 +1,5 @@ {% set name = "virusrecom" %} -{% set version = "1.1.2.1" %} +{% set version = "1.1.2.2" %} package: name: "{{ name }}" @@ -7,7 +7,7 @@ package: source: url: "https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz" - sha256: eaeee6e16e86d296a34fec4adc4a7d0fb58134d6c67de9874410e8c2bb97946b + sha256: d06eb57299eb38b3fbf2341af3ede2265a400962c2d147d84d19993ed496d024 build: number: 0 @@ -43,4 +43,4 @@ about: extra: identifiers: - - doi:10.1093/bib/bbac513 \ No newline at end of file + - doi:10.1093/bib/bbac513 From 09033426a2602dccbdbe529b4976cb573e95b74e Mon Sep 17 00:00:00 2001 From: Joshua Zhuang <71105179+mencian@users.noreply.github.com> Date: Mon, 8 Jan 2024 15:30:14 -0600 Subject: [PATCH 4/4] add python to run section and use SPDX identifier --- recipes/virusrecom/meta.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/recipes/virusrecom/meta.yaml b/recipes/virusrecom/meta.yaml index 270120087f3bf..7c76abee9b068 100644 --- a/recipes/virusrecom/meta.yaml +++ b/recipes/virusrecom/meta.yaml @@ -28,6 +28,7 @@ requirements: - pandas >=1.1.5 - scipy >=1.5.4 - psutil >=5.9.1 + - python >=3.5,<3.8 - openpyxl >=3.0.5 test: @@ -36,8 +37,8 @@ test: about: home: "https://github.com/ZhijianZhou01/virusrecom" - license: "LGPL v2.1" - license_family: "GPL" + license: "LGPL-2.1-or-later" + license_family: "LGPL" license_file: LICENSE summary: "An information-theory-based method for recombination detection of viral lineages."