From dcacfdc6e4b977897c9caddffe3e635b1025c3aa Mon Sep 17 00:00:00 2001 From: Maksim Rakitin Date: Tue, 19 Feb 2019 18:53:12 -0500 Subject: [PATCH 1/2] Add doi2bib package --- recipes-tag/doi2bib/meta.yaml | 45 +++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 recipes-tag/doi2bib/meta.yaml diff --git a/recipes-tag/doi2bib/meta.yaml b/recipes-tag/doi2bib/meta.yaml new file mode 100644 index 00000000..fec1da9d --- /dev/null +++ b/recipes-tag/doi2bib/meta.yaml @@ -0,0 +1,45 @@ +{% set name = "doi2bib" %} +{% set version = "0.3.0" %} +{% set file_ext = "tar.gz" %} +{% set hash_type = "sha256" %} +{% set hash_value = "5b8c8b4b03461ecda926addfef39e4214ad87e6b94e1df82281ae8e3212e60c7" %} + +package: + name: '{{ name|lower }}' + version: '{{ version }}' + +source: + fn: '{{ name }}-{{ version }}.{{ file_ext }}' + url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.{{ file_ext }} + '{{ hash_type }}': '{{ hash_value }}' + +build: + number: 0 + script: python setup.py install --single-version-externally-managed --record=record.txt + +requirements: + build: + - python + - setuptools + - requests + - future + - bibtexparser + run: + - python + - requests + - future + - bibtexparser + +test: + imports: + - doi2bib + +about: + home: https://github.com/bibcure/doi2bib + license: GNU Affero General Public License v3 or later (AGPLv3+) + license_family: AGPL + summary: Generate a bibtex given a doi + +extra: + recipe-maintainers: + - mrakitin From c72883ad74acad07a309ef9da4b38464c4d085cd Mon Sep 17 00:00:00 2001 From: Maksim Rakitin Date: Tue, 19 Feb 2019 19:04:16 -0500 Subject: [PATCH 2/2] TST: add CLI test --- recipes-tag/doi2bib/meta.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes-tag/doi2bib/meta.yaml b/recipes-tag/doi2bib/meta.yaml index fec1da9d..f2e5d91c 100644 --- a/recipes-tag/doi2bib/meta.yaml +++ b/recipes-tag/doi2bib/meta.yaml @@ -33,6 +33,8 @@ requirements: test: imports: - doi2bib + commands: + - doi2bib 10.1107/S1600577518010986 about: home: https://github.com/bibcure/doi2bib