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

Chado tools #9991

Merged
merged 8 commits into from
Aug 1, 2018
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions recipes/chado-tools/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python3 setup.py install --single-version-externally-managed --record=record.txt
43 changes: 43 additions & 0 deletions recipes/chado-tools/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{% set name = "chado-tools" %}
{% set version = "0.0.3" %}
{% set file_ext = "tar.gz" %}
{% set hash_type = "sha256" %}
{% set hash_value = "e8b7407013eee815288589f07314655d1e6ffc7c688f7daf58080fc4369a3668" %}

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

source:
url: https://github.com/sanger-pathogens/{{ name }}/archive/v{{ version }}.{{ file_ext }}
{{ hash_type }}: {{ hash_value }}

build:
number: 0
noarch: generic
Copy link
Member

Choose a reason for hiding this comment

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

I guess this can be noarch: python?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure. It's a command line tool, and according to the documentation, it should then be "generic" - if I understood correctly.

Copy link
Contributor Author

@puethe puethe Jul 20, 2018

Choose a reason for hiding this comment

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

Tests on my machine pass flawlessly with either setting (python/generic), but fail if completely omitting "noarch". Let me know what you think is better.

Copy link
Member

Choose a reason for hiding this comment

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

python is preferred I guess.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, thanks. Changed it.

entry_points:
- chado = scripts.chado_tools:main

requirements:
host:
- python >=3.6
- setuptools
- psycopg2
- pyyaml
run:
- python >=3.6
- psycopg2
- pyyaml

test:
imports:
- scripts
commands:
- chado --help

about:
home: https://github.com/sanger-pathogens/chado-tools/
license: GNU General Public v3 (GPLv3)
license_family: GPL3
license_file: LICENSE
summary: Tools to access CHADO databases