From 48fdb59edc4b83814ff892ca9d720b361151a93a Mon Sep 17 00:00:00 2001 From: Jayaram Date: Wed, 16 Oct 2024 20:14:45 +0400 Subject: [PATCH 1/8] Initial add telosearchlr-v1.0.0 --- recipes/telosearchlr/meta.yaml | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 recipes/telosearchlr/meta.yaml diff --git a/recipes/telosearchlr/meta.yaml b/recipes/telosearchlr/meta.yaml new file mode 100644 index 0000000000000..ebb8fcc4f5f97 --- /dev/null +++ b/recipes/telosearchlr/meta.yaml @@ -0,0 +1,36 @@ +{% set name = "telosearchlr" %} +{% set version = "1.0.0" %} + +package: + name: "{{ name|lower }}" + version: "{{ version }}" + +source: + url: "https://github.com/gchchung/TeloSearchLR/archive/refs/tags/v1.0.0.tar.gz" + sha256: "37426e76cae03254a7746becd6b3174f9e0476ef13656998b93f036ec9468101" + +build: + noarch: python + number: 0 + script: "{{ PYTHON }} -m pip install . -vv" + +requirements: + host: + - pip + - python >=3.9 + run: + - python >=3.9 + - Bio + - pillow + - svgutils + - plotly + - tidehunter + +test: + commands: + - TeloSearchLR.py -h +about: + home: "https://github.com/gchchung/TeloSearchLR" + license: "Academic and Non-Commercial Research Use" + license_file: LICENSE + summary: "TeloSearchLR (telomere search using long sequencing reads) is a Python script for aiding the identificaiton of telomeric repeat motifs." From cd9979788f240ab61d03c4d0bf486c39c4a4e006 Mon Sep 17 00:00:00 2001 From: Jayaram Date: Thu, 17 Oct 2024 11:41:06 +0400 Subject: [PATCH 2/8] build custom telosearchlr-v1.0.0 --- recipes/telosearchlr/build.sh | 8 ++++++++ recipes/telosearchlr/meta.yaml | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 recipes/telosearchlr/build.sh diff --git a/recipes/telosearchlr/build.sh b/recipes/telosearchlr/build.sh new file mode 100644 index 0000000000000..9831536fbaa0d --- /dev/null +++ b/recipes/telosearchlr/build.sh @@ -0,0 +1,8 @@ +#!/bin/bash +mkdir -p ${PREFIX}/bin +for f in *.py; +do +sed -i "1i #!/usr/bin/env python3" "$f" +done +chmod +x *.py +mv *.py $PREFIX/bin diff --git a/recipes/telosearchlr/meta.yaml b/recipes/telosearchlr/meta.yaml index ebb8fcc4f5f97..b5d2c2c595f33 100644 --- a/recipes/telosearchlr/meta.yaml +++ b/recipes/telosearchlr/meta.yaml @@ -10,13 +10,13 @@ source: sha256: "37426e76cae03254a7746becd6b3174f9e0476ef13656998b93f036ec9468101" build: - noarch: python + noarch: generic number: 0 - script: "{{ PYTHON }} -m pip install . -vv" + run_exports: + - {{ pin_subpackage('telosearchlr', max_pin="x") }} requirements: host: - - pip - python >=3.9 run: - python >=3.9 From fb5d7af21f271dc3a6bb89eaa1e6f0e72fd3703f Mon Sep 17 00:00:00 2001 From: Jayaram Date: Thu, 17 Oct 2024 11:43:35 +0400 Subject: [PATCH 3/8] build custom telosearchlr-v1.0.0 --- recipes/telosearchlr/build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/recipes/telosearchlr/build.sh b/recipes/telosearchlr/build.sh index 9831536fbaa0d..c01fdff0332a9 100644 --- a/recipes/telosearchlr/build.sh +++ b/recipes/telosearchlr/build.sh @@ -2,7 +2,9 @@ mkdir -p ${PREFIX}/bin for f in *.py; do -sed -i "1i #!/usr/bin/env python3" "$f" + if ! grep -q "^#!/usr/bin/env python3" "$f"; then + sed -i "1i #!/usr/bin/env python3" "$f" + fi done chmod +x *.py mv *.py $PREFIX/bin From f0595870dc8458001c0c89f8d94880c9734127b2 Mon Sep 17 00:00:00 2001 From: Jayaram Date: Thu, 17 Oct 2024 23:07:02 +0400 Subject: [PATCH 4/8] build custom telosearchlr-v1.0.0 --- recipes/telosearchlr/meta.yaml | 2 ++ recipes/telosearchlr/python.patch | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 recipes/telosearchlr/python.patch diff --git a/recipes/telosearchlr/meta.yaml b/recipes/telosearchlr/meta.yaml index b5d2c2c595f33..422b7b18605c8 100644 --- a/recipes/telosearchlr/meta.yaml +++ b/recipes/telosearchlr/meta.yaml @@ -8,6 +8,8 @@ package: source: url: "https://github.com/gchchung/TeloSearchLR/archive/refs/tags/v1.0.0.tar.gz" sha256: "37426e76cae03254a7746becd6b3174f9e0476ef13656998b93f036ec9468101" + patches: + - python.patch build: noarch: generic diff --git a/recipes/telosearchlr/python.patch b/recipes/telosearchlr/python.patch new file mode 100644 index 0000000000000..1ca973a0a48db --- /dev/null +++ b/recipes/telosearchlr/python.patch @@ -0,0 +1,11 @@ +--- TeloSearchLR.py-old 2024-10-17 23:03:55.738331016 +0400 ++++ TeloSearchLR.py 2024-10-17 23:04:03.533242382 +0400 +@@ -818,7 +818,7 @@ + for opt, arg in opts: + if opt in ("-h", "--help"): + print(arg_help) # print the help message +- sys.exit(2) ++ sys.exit(0) + elif opt in ("-v", "--version"): + print(version_number) + sys.exit(2) From c1681531924d470829641867fa0d49262d8f9270 Mon Sep 17 00:00:00 2001 From: Jayaram Date: Thu, 17 Oct 2024 23:12:41 +0400 Subject: [PATCH 5/8] build custom telosearchlr-v1.0.0 --- recipes/telosearchlr/meta.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/telosearchlr/meta.yaml b/recipes/telosearchlr/meta.yaml index 422b7b18605c8..66e49af2b6adc 100644 --- a/recipes/telosearchlr/meta.yaml +++ b/recipes/telosearchlr/meta.yaml @@ -8,8 +8,8 @@ package: source: url: "https://github.com/gchchung/TeloSearchLR/archive/refs/tags/v1.0.0.tar.gz" sha256: "37426e76cae03254a7746becd6b3174f9e0476ef13656998b93f036ec9468101" - patches: - - python.patch + patches: + - python.patch build: noarch: generic From 6964d90e65f75674b3b13101f30b62d397cf114b Mon Sep 17 00:00:00 2001 From: Jayaram Date: Thu, 17 Oct 2024 23:35:14 +0400 Subject: [PATCH 6/8] build custom telosearchlr-v1.0.0 --- recipes/telosearchlr/python.patch | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/recipes/telosearchlr/python.patch b/recipes/telosearchlr/python.patch index 1ca973a0a48db..bf0d608a4a55b 100644 --- a/recipes/telosearchlr/python.patch +++ b/recipes/telosearchlr/python.patch @@ -1,11 +1,11 @@ --- TeloSearchLR.py-old 2024-10-17 23:03:55.738331016 +0400 +++ TeloSearchLR.py 2024-10-17 23:04:03.533242382 +0400 @@ -818,7 +818,7 @@ - for opt, arg in opts: - if opt in ("-h", "--help"): - print(arg_help) # print the help message -- sys.exit(2) -+ sys.exit(0) - elif opt in ("-v", "--version"): - print(version_number) - sys.exit(2) + for opt, arg in opts: + if opt in ("-h", "--help"): + print(arg_help) # print the help message +- sys.exit(2) ++ sys.exit(0) + elif opt in ("-v", "--version"): + print(version_number) + sys.exit(2) From 19bd23e07534684a668d6e613036e565f902c789 Mon Sep 17 00:00:00 2001 From: Jayaram Date: Fri, 18 Oct 2024 10:05:15 +0400 Subject: [PATCH 7/8] build custom telosearchlr-v1.0.1 --- recipes/telosearchlr/meta.yaml | 12 +++++------- recipes/telosearchlr/python.patch | 11 ----------- 2 files changed, 5 insertions(+), 18 deletions(-) delete mode 100644 recipes/telosearchlr/python.patch diff --git a/recipes/telosearchlr/meta.yaml b/recipes/telosearchlr/meta.yaml index 66e49af2b6adc..823ff500a6125 100644 --- a/recipes/telosearchlr/meta.yaml +++ b/recipes/telosearchlr/meta.yaml @@ -1,18 +1,16 @@ -{% set name = "telosearchlr" %} -{% set version = "1.0.0" %} +{% set name = "TeloSearchLR" %} +{% set version = "1.0.1" %} package: name: "{{ name|lower }}" version: "{{ version }}" source: - url: "https://github.com/gchchung/TeloSearchLR/archive/refs/tags/v1.0.0.tar.gz" - sha256: "37426e76cae03254a7746becd6b3174f9e0476ef13656998b93f036ec9468101" - patches: - - python.patch + url: "https://github.com/gchchung/{{ name }}/archive/refs/tags/v{{ version }}.tar.gz" + sha256: "1f3750f062af9996aba3d0bf6ec2096e8176e9a6597fb15cb91514d5264d3225" build: - noarch: generic + noarch: python number: 0 run_exports: - {{ pin_subpackage('telosearchlr', max_pin="x") }} diff --git a/recipes/telosearchlr/python.patch b/recipes/telosearchlr/python.patch deleted file mode 100644 index bf0d608a4a55b..0000000000000 --- a/recipes/telosearchlr/python.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- TeloSearchLR.py-old 2024-10-17 23:03:55.738331016 +0400 -+++ TeloSearchLR.py 2024-10-17 23:04:03.533242382 +0400 -@@ -818,7 +818,7 @@ - for opt, arg in opts: - if opt in ("-h", "--help"): - print(arg_help) # print the help message -- sys.exit(2) -+ sys.exit(0) - elif opt in ("-v", "--version"): - print(version_number) - sys.exit(2) From 69b7c155bc6079fee07016cd8b39c7118008c7c3 Mon Sep 17 00:00:00 2001 From: Jayaram Date: Fri, 18 Oct 2024 10:27:04 +0400 Subject: [PATCH 8/8] build custom telosearchlr-v1.0.1 --- recipes/telosearchlr/build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes/telosearchlr/build.sh b/recipes/telosearchlr/build.sh index c01fdff0332a9..20e19710bf486 100644 --- a/recipes/telosearchlr/build.sh +++ b/recipes/telosearchlr/build.sh @@ -1,4 +1,5 @@ #!/bin/bash + mkdir -p ${PREFIX}/bin for f in *.py; do