Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add new recipe selenzy_wrapper v0.0.4 #31359

Merged
merged 6 commits into from Dec 1, 2021
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
45 changes: 45 additions & 0 deletions recipes/selenzy_wrapper/meta.yaml
@@ -0,0 +1,45 @@
{% set name = "selenzy_wrapper" %}
{% set version = "0.0.6" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://github.com/brsynth/selenzy-wrapper/archive/{{ version }}.tar.gz
sha256: 6a3651672b155c3870338f532b664f291bd95adff1a7a4df539ff931cfafdc7f

build:
number: 0
noarch: python
script: {{ PYTHON }} -m pip install -vv .

requirements:
host:
- python >=3.7,<3.10
- pip
run:
- python >=3.7,<3.10
- biopython >1.70,<=1.77
- brs_utils
- emboss
- rptools
test:
source_files:
- tests/
imports:
- selenzy_wrapper
requires:
- pytest

about:
home: https://github.com/brsynth/selenzy-wrapper
summary: Python wrapper of selenzy tool
license: MIT
license_file: LICENSE

extra:
recipe-maintainers:
- breakthewall
- kenza12

5 changes: 5 additions & 0 deletions recipes/selenzy_wrapper/run_test.sh
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

echo -e "\n\n*** TEST ***\n\n"
python -m selenzy_wrapper --help
pytest -v
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't run your full tests.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, is there no executable installed for this? Typically python packages would be executed like selenzy --help or something like that.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @dpryan79 ,

Thanks for your reply.

I tried to run only one test but it always returns the same memory error. Finally, we decided not to run tests and to only check the imports and the help command line: python -m selenzy_wrapper --help .
We don't have an executable selenzy --help , we execute the package with this command python -m selenzy_wrapper --help .

Thank your for your work.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe in a future release adding a script to be invoked will make the tool more handy :)