From b4c6911577d1e63e5571bfde418d22a895174355 Mon Sep 17 00:00:00 2001 From: ndana Date: Wed, 1 Apr 2020 16:06:27 -0400 Subject: [PATCH 01/11] init sklearn-crfsuite --- recipes/sklearn-crfsuite/meta.yaml | 48 ++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 recipes/sklearn-crfsuite/meta.yaml diff --git a/recipes/sklearn-crfsuite/meta.yaml b/recipes/sklearn-crfsuite/meta.yaml new file mode 100644 index 0000000000000..cfc3af8879fc9 --- /dev/null +++ b/recipes/sklearn-crfsuite/meta.yaml @@ -0,0 +1,48 @@ +{% set name = "sklearn-crfsuite" %} +{% set version = "0.3.6" %} + +package: + name: "{{ name|lower }}" + version: "{{ version }}" + +source: + url: "https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz" + sha256: 2f59aad3055e01a778a79a6352891cac04788e8b52688aa5bc8b11be7717861e + +build: + number: 0 + script: "{{ PYTHON }} -m pip install . -vv" + +requirements: + host: + - pip + - python + # - python-crfsuite >=0.8.3 + # - six + # - tabulate + # - tqdm >=2.0 + run: + - python + - python-crfsuite >=0.8.3 + - six + - tabulate + - tqdm >=2.0 + +test: + imports: + - sklearn_crfsuite + +about: + home: "https://github.com/TeamHG-Memex/sklearn-crfsuite" + license: MIT + license_family: MIT + license_file: + summary: "CRFsuite (python-crfsuite) wrapper which provides interface simlar to scikit-learn" + doc_url: + dev_url: + +extra: + recipe-maintainers: + - ndmaxar + - oblute + - rluria From 7fd85654ae118670d5783a595f060a6135fe64cd Mon Sep 17 00:00:00 2001 From: ndana Date: Wed, 1 Apr 2020 16:19:28 -0400 Subject: [PATCH 02/11] comment out run packages --- recipes/sklearn-crfsuite/meta.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/recipes/sklearn-crfsuite/meta.yaml b/recipes/sklearn-crfsuite/meta.yaml index cfc3af8879fc9..1b2a20dd54f9c 100644 --- a/recipes/sklearn-crfsuite/meta.yaml +++ b/recipes/sklearn-crfsuite/meta.yaml @@ -24,9 +24,9 @@ requirements: run: - python - python-crfsuite >=0.8.3 - - six - - tabulate - - tqdm >=2.0 + # - six + # - tabulate + # - tqdm >=2.0 test: imports: From 9ff2e433c6217e503f85865e62e892cfa6eec2e0 Mon Sep 17 00:00:00 2001 From: ndana Date: Wed, 1 Apr 2020 16:28:44 -0400 Subject: [PATCH 03/11] keep run packages, but no versions --- recipes/sklearn-crfsuite/meta.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/recipes/sklearn-crfsuite/meta.yaml b/recipes/sklearn-crfsuite/meta.yaml index 1b2a20dd54f9c..dbe90b6e60317 100644 --- a/recipes/sklearn-crfsuite/meta.yaml +++ b/recipes/sklearn-crfsuite/meta.yaml @@ -23,10 +23,10 @@ requirements: # - tqdm >=2.0 run: - python - - python-crfsuite >=0.8.3 - # - six - # - tabulate - # - tqdm >=2.0 + - python-crfsuite + - six + - tabulate + - tqdm test: imports: From 3dceec1881323f55c0c14eabc54fdf71f7305a1e Mon Sep 17 00:00:00 2001 From: ndana Date: Wed, 1 Apr 2020 16:28:51 -0400 Subject: [PATCH 04/11] missed a bit --- recipes/sklearn-crfsuite/meta.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes/sklearn-crfsuite/meta.yaml b/recipes/sklearn-crfsuite/meta.yaml index dbe90b6e60317..1a12bb2c29152 100644 --- a/recipes/sklearn-crfsuite/meta.yaml +++ b/recipes/sklearn-crfsuite/meta.yaml @@ -23,6 +23,7 @@ requirements: # - tqdm >=2.0 run: - python + # - python-crfsuite >=0.8.3 - python-crfsuite - six - tabulate From 5db61b63a6f8d7aa0d42780d1426f3aa85521ed9 Mon Sep 17 00:00:00 2001 From: ndana Date: Wed, 1 Apr 2020 16:48:27 -0400 Subject: [PATCH 05/11] try no tabulate --- recipes/sklearn-crfsuite/meta.yaml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/recipes/sklearn-crfsuite/meta.yaml b/recipes/sklearn-crfsuite/meta.yaml index 1a12bb2c29152..f10590f8d003f 100644 --- a/recipes/sklearn-crfsuite/meta.yaml +++ b/recipes/sklearn-crfsuite/meta.yaml @@ -17,16 +17,11 @@ requirements: host: - pip - python - # - python-crfsuite >=0.8.3 - # - six - # - tabulate - # - tqdm >=2.0 run: - python - # - python-crfsuite >=0.8.3 - python-crfsuite - six - - tabulate + # - tabulate - tqdm test: From 7190980f79340ce4fec32c301c1af631cc9a2980 Mon Sep 17 00:00:00 2001 From: ndana Date: Wed, 1 Apr 2020 16:52:23 -0400 Subject: [PATCH 06/11] try no tqdm --- recipes/sklearn-crfsuite/meta.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/sklearn-crfsuite/meta.yaml b/recipes/sklearn-crfsuite/meta.yaml index f10590f8d003f..22c5c5fad8b76 100644 --- a/recipes/sklearn-crfsuite/meta.yaml +++ b/recipes/sklearn-crfsuite/meta.yaml @@ -21,8 +21,8 @@ requirements: - python - python-crfsuite - six - # - tabulate - - tqdm + - tabulate + # - tqdm test: imports: From 39e4d3db86146f509201e9a1caaf0b5254daa294 Mon Sep 17 00:00:00 2001 From: ndana Date: Wed, 1 Apr 2020 16:57:09 -0400 Subject: [PATCH 07/11] try noarch python --- recipes/sklearn-crfsuite/meta.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recipes/sklearn-crfsuite/meta.yaml b/recipes/sklearn-crfsuite/meta.yaml index 22c5c5fad8b76..354ae0a6f6d07 100644 --- a/recipes/sklearn-crfsuite/meta.yaml +++ b/recipes/sklearn-crfsuite/meta.yaml @@ -10,6 +10,7 @@ source: sha256: 2f59aad3055e01a778a79a6352891cac04788e8b52688aa5bc8b11be7717861e build: + noarch: python number: 0 script: "{{ PYTHON }} -m pip install . -vv" @@ -22,7 +23,7 @@ requirements: - python-crfsuite - six - tabulate - # - tqdm + - tqdm test: imports: From b56c5fd90bd66103ef42fe2adfaa92c5e7ebd2fe Mon Sep 17 00:00:00 2001 From: ndana Date: Wed, 1 Apr 2020 17:30:39 -0400 Subject: [PATCH 08/11] add license information --- recipes/sklearn-crfsuite/LICENSE | 21 +++++++++++++++++++++ recipes/sklearn-crfsuite/meta.yaml | 10 +++++++--- 2 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 recipes/sklearn-crfsuite/LICENSE diff --git a/recipes/sklearn-crfsuite/LICENSE b/recipes/sklearn-crfsuite/LICENSE new file mode 100644 index 0000000000000..4cb2ee959e547 --- /dev/null +++ b/recipes/sklearn-crfsuite/LICENSE @@ -0,0 +1,21 @@ +The MIT License + +Copyright (c) 2010-2020 Google, Inc. http://angularjs.org + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/recipes/sklearn-crfsuite/meta.yaml b/recipes/sklearn-crfsuite/meta.yaml index 354ae0a6f6d07..2a22cd6d29826 100644 --- a/recipes/sklearn-crfsuite/meta.yaml +++ b/recipes/sklearn-crfsuite/meta.yaml @@ -33,10 +33,14 @@ about: home: "https://github.com/TeamHG-Memex/sklearn-crfsuite" license: MIT license_family: MIT - license_file: + license_file: LICENSE summary: "CRFsuite (python-crfsuite) wrapper which provides interface simlar to scikit-learn" - doc_url: - dev_url: + doc_url: https://sklearn-crfsuite.readthedocs.io/en/latest/ + dev_url: https://github.com/TeamHG-Memex/sklearn-crfsuite + description: | + sklearn-crfsuite is thin a CRFsuite (python-crfsuite) wrapper which provides scikit-learn-compatible + sklearn_crfsuite.CRF estimator: you can use e.g. scikit-learn model selection utilities (cross-validation, + hyperparameter optimization) with it, or save/load CRF models using joblib. extra: recipe-maintainers: From 771b559df60ddee899ac6fd8433e513924fc29a6 Mon Sep 17 00:00:00 2001 From: ndana Date: Wed, 1 Apr 2020 17:39:20 -0400 Subject: [PATCH 09/11] fix typo in maintainer name --- recipes/sklearn-crfsuite/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/sklearn-crfsuite/meta.yaml b/recipes/sklearn-crfsuite/meta.yaml index 2a22cd6d29826..ac9af583d289d 100644 --- a/recipes/sklearn-crfsuite/meta.yaml +++ b/recipes/sklearn-crfsuite/meta.yaml @@ -46,4 +46,4 @@ extra: recipe-maintainers: - ndmaxar - oblute - - rluria + - rluria14 From 25f7787b0cb533b85d60b8256fb8684c57913551 Mon Sep 17 00:00:00 2001 From: ndana Date: Thu, 2 Apr 2020 10:13:13 -0400 Subject: [PATCH 10/11] fix LICENSE, add pins --- recipes/sklearn-crfsuite/LICENSE | 6 +++--- recipes/sklearn-crfsuite/meta.yaml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/recipes/sklearn-crfsuite/LICENSE b/recipes/sklearn-crfsuite/LICENSE index 4cb2ee959e547..1029fb2765630 100644 --- a/recipes/sklearn-crfsuite/LICENSE +++ b/recipes/sklearn-crfsuite/LICENSE @@ -1,6 +1,6 @@ -The MIT License +The MIT License (MIT) -Copyright (c) 2010-2020 Google, Inc. http://angularjs.org +Copyright (c) 2015 Hyperion Gray, LLC Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +THE SOFTWARE. \ No newline at end of file diff --git a/recipes/sklearn-crfsuite/meta.yaml b/recipes/sklearn-crfsuite/meta.yaml index ac9af583d289d..c593918e8b282 100644 --- a/recipes/sklearn-crfsuite/meta.yaml +++ b/recipes/sklearn-crfsuite/meta.yaml @@ -20,10 +20,10 @@ requirements: - python run: - python - - python-crfsuite + - python-crfsuite >=0.8.3 - six - tabulate - - tqdm + - tqdm >=2.0 test: imports: From 846c1d70374173b7cfaf50a60a4b888283d9e620 Mon Sep 17 00:00:00 2001 From: ndana Date: Thu, 2 Apr 2020 10:21:32 -0400 Subject: [PATCH 11/11] handle license file --- recipes/sklearn-crfsuite/LICENSE | 21 --------------------- recipes/sklearn-crfsuite/meta.yaml | 2 +- 2 files changed, 1 insertion(+), 22 deletions(-) delete mode 100644 recipes/sklearn-crfsuite/LICENSE diff --git a/recipes/sklearn-crfsuite/LICENSE b/recipes/sklearn-crfsuite/LICENSE deleted file mode 100644 index 1029fb2765630..0000000000000 --- a/recipes/sklearn-crfsuite/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2015 Hyperion Gray, LLC - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. \ No newline at end of file diff --git a/recipes/sklearn-crfsuite/meta.yaml b/recipes/sklearn-crfsuite/meta.yaml index c593918e8b282..edbf817404e3d 100644 --- a/recipes/sklearn-crfsuite/meta.yaml +++ b/recipes/sklearn-crfsuite/meta.yaml @@ -33,7 +33,7 @@ about: home: "https://github.com/TeamHG-Memex/sklearn-crfsuite" license: MIT license_family: MIT - license_file: LICENSE + license_file: # No packaged license file, issue here: https://github.com/TeamHG-Memex/sklearn-crfsuite/issues/48 summary: "CRFsuite (python-crfsuite) wrapper which provides interface simlar to scikit-learn" doc_url: https://sklearn-crfsuite.readthedocs.io/en/latest/ dev_url: https://github.com/TeamHG-Memex/sklearn-crfsuite