From 61b9d8c5cc09a6705acf86e1bf027d67eb0cd98d Mon Sep 17 00:00:00 2001 From: zschira Date: Wed, 23 Nov 2022 19:26:35 -0500 Subject: [PATCH 01/13] Add arelle recipe --- recipes/catalystcoop.arelle-mirror/meta.yaml | 49 ++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 recipes/catalystcoop.arelle-mirror/meta.yaml diff --git a/recipes/catalystcoop.arelle-mirror/meta.yaml b/recipes/catalystcoop.arelle-mirror/meta.yaml new file mode 100644 index 0000000000000..a845a5c15d5b9 --- /dev/null +++ b/recipes/catalystcoop.arelle-mirror/meta.yaml @@ -0,0 +1,49 @@ +{% set name = "catalystcoop.arelle-mirror" %} +{% set version = "1.3.0" %} + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/catalystcoop.arelle_mirror-{{ version }}.tar.gz + sha256: 161a6a829cb830683b3136cff8dac8797f2924189d07bafff57d87c775708247 + +build: + entry_points: + - arelle=arelle.CntlrCmdLine:main + noarch: python + script: {{ PYTHON }} -m pip install . -vv + number: 0 + +requirements: + host: + - python >=3.6 + - setuptools-scm + - lxml + - pip + run: + - python >=3.6 + - lxml + - isodate + +test: + imports: + - arelle + commands: + - pip check + - arelle --help + requires: + - pip + +about: + home: http://www.arelle.org + summary: An open source XBRL platform + license: MIT & Apache-2.0 + license_file: + - LICENSE.md + - arelle/pyparsing/LICENSE + +extra: + recipe-maintainers: + - zschira From d779b860bc37b88e41064ef627e893ece1d218bb Mon Sep 17 00:00:00 2001 From: zschira Date: Wed, 23 Nov 2022 19:37:03 -0500 Subject: [PATCH 02/13] Cleanup licenses --- recipes/catalystcoop.arelle-mirror/meta.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/recipes/catalystcoop.arelle-mirror/meta.yaml b/recipes/catalystcoop.arelle-mirror/meta.yaml index a845a5c15d5b9..eae3f24d973a0 100644 --- a/recipes/catalystcoop.arelle-mirror/meta.yaml +++ b/recipes/catalystcoop.arelle-mirror/meta.yaml @@ -39,10 +39,9 @@ test: about: home: http://www.arelle.org summary: An open source XBRL platform - license: MIT & Apache-2.0 + license: Apache-2.0 license_file: - LICENSE.md - - arelle/pyparsing/LICENSE extra: recipe-maintainers: From 46d341b41967d1c246bb618da902af6ef0326a9c Mon Sep 17 00:00:00 2001 From: zschira Date: Thu, 24 Nov 2022 12:03:26 -0500 Subject: [PATCH 03/13] Test new build requirements --- recipes/catalystcoop.arelle-mirror/meta.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes/catalystcoop.arelle-mirror/meta.yaml b/recipes/catalystcoop.arelle-mirror/meta.yaml index eae3f24d973a0..b38621509112b 100644 --- a/recipes/catalystcoop.arelle-mirror/meta.yaml +++ b/recipes/catalystcoop.arelle-mirror/meta.yaml @@ -17,6 +17,8 @@ build: number: 0 requirements: + build: + - cx_freeze host: - python >=3.6 - setuptools-scm From 7b98c2bf4759b8fde4f67e4d30b3e3f0642b17a3 Mon Sep 17 00:00:00 2001 From: zschira Date: Thu, 24 Nov 2022 13:19:39 -0500 Subject: [PATCH 04/13] Only include cx_freeze dependency for windows --- recipes/catalystcoop.arelle-mirror/meta.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/recipes/catalystcoop.arelle-mirror/meta.yaml b/recipes/catalystcoop.arelle-mirror/meta.yaml index b38621509112b..087a67538ab27 100644 --- a/recipes/catalystcoop.arelle-mirror/meta.yaml +++ b/recipes/catalystcoop.arelle-mirror/meta.yaml @@ -17,13 +17,12 @@ build: number: 0 requirements: - build: - - cx_freeze host: - python >=3.6 - setuptools-scm - lxml - pip + - cx_freeze # [win] run: - python >=3.6 - lxml From 6da6ec7ffa90d3427564164df50cdb1f88ac8438 Mon Sep 17 00:00:00 2001 From: zschira Date: Thu, 24 Nov 2022 13:20:08 -0500 Subject: [PATCH 05/13] Add FERC XBRL extractor to PR --- .../meta.yaml | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 recipes/catalystcoop.ferc-xbrl-extractor/meta.yaml diff --git a/recipes/catalystcoop.ferc-xbrl-extractor/meta.yaml b/recipes/catalystcoop.ferc-xbrl-extractor/meta.yaml new file mode 100644 index 0000000000000..1dbefa655d645 --- /dev/null +++ b/recipes/catalystcoop.ferc-xbrl-extractor/meta.yaml @@ -0,0 +1,52 @@ +{% set name = "catalystcoop.ferc-xbrl-extractor" %} +{% set version = "0.5.0" %} + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/catalystcoop.ferc_xbrl_extractor-{{ version }}.tar.gz + sha256: 32ad9ac56cf46387a69cc8a7b18c81dd346e57517ee19ba2761f3e43d03327d0 + +build: + entry_points: + - xbrl_extract = ferc_xbrl_extractor.cli:main + noarch: python + script: {{ PYTHON }} -m pip install . -vv + number: 0 + +requirements: + host: + - python >=3.8,<3.11 + - setuptools-scm + - pip + run: + - python >=3.8,<3.11 + - pydantic >=1.9,<2 + - coloredlogs >=15.0,<16.dev0 + - catalystcoop.arelle-mirror ==1.3.0 + - frictionless >=4.4,<5 + - sqlalchemy >=1.4,<2 + - pandas >=1.4,<1.5 + - stringcase >=1.2.0,<1.3.dev0 + +test: + imports: + - ferc_xbrl_extractor + commands: + - pip check + - xbrl_extract --help + requires: + - pip + +about: + home: https://pypi.org/project/catalystcoop.ferc-xbrl-extractor/ + summary: A tool for extracting data from FERC XBRL Filings. + dev_url: https://github.com/catalyst-cooperative/ferc-xbrl-extract + license: MIT + license_file: LICENSE.txt + +extra: + recipe-maintainers: + - zschira From 57feaca842008c6d2236eae1884073749ae9508f Mon Sep 17 00:00:00 2001 From: zschira Date: Thu, 24 Nov 2022 13:36:49 -0500 Subject: [PATCH 06/13] Remove ferc-xbrl-extractor windows support --- recipes/catalystcoop.arelle-mirror/meta.yaml | 3 +-- recipes/catalystcoop.ferc-xbrl-extractor/meta.yaml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/recipes/catalystcoop.arelle-mirror/meta.yaml b/recipes/catalystcoop.arelle-mirror/meta.yaml index 087a67538ab27..f7dca4c8edf74 100644 --- a/recipes/catalystcoop.arelle-mirror/meta.yaml +++ b/recipes/catalystcoop.arelle-mirror/meta.yaml @@ -12,9 +12,9 @@ source: build: entry_points: - arelle=arelle.CntlrCmdLine:main - noarch: python script: {{ PYTHON }} -m pip install . -vv number: 0 + skip: true # [win] requirements: host: @@ -22,7 +22,6 @@ requirements: - setuptools-scm - lxml - pip - - cx_freeze # [win] run: - python >=3.6 - lxml diff --git a/recipes/catalystcoop.ferc-xbrl-extractor/meta.yaml b/recipes/catalystcoop.ferc-xbrl-extractor/meta.yaml index 1dbefa655d645..a8f297df97cba 100644 --- a/recipes/catalystcoop.ferc-xbrl-extractor/meta.yaml +++ b/recipes/catalystcoop.ferc-xbrl-extractor/meta.yaml @@ -12,9 +12,9 @@ source: build: entry_points: - xbrl_extract = ferc_xbrl_extractor.cli:main - noarch: python script: {{ PYTHON }} -m pip install . -vv number: 0 + skip: true # [win] requirements: host: From 39bcda2cc3530152c11564adc5f7e2ad5b1016fa Mon Sep 17 00:00:00 2001 From: zschira Date: Thu, 24 Nov 2022 14:25:00 -0500 Subject: [PATCH 07/13] Fix python versioning --- recipes/catalystcoop.arelle-mirror/meta.yaml | 4 ++-- recipes/catalystcoop.ferc-xbrl-extractor/meta.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/recipes/catalystcoop.arelle-mirror/meta.yaml b/recipes/catalystcoop.arelle-mirror/meta.yaml index f7dca4c8edf74..54b259abdd4fb 100644 --- a/recipes/catalystcoop.arelle-mirror/meta.yaml +++ b/recipes/catalystcoop.arelle-mirror/meta.yaml @@ -18,12 +18,12 @@ build: requirements: host: - - python >=3.6 + - python - setuptools-scm - lxml - pip run: - - python >=3.6 + - python - lxml - isodate diff --git a/recipes/catalystcoop.ferc-xbrl-extractor/meta.yaml b/recipes/catalystcoop.ferc-xbrl-extractor/meta.yaml index a8f297df97cba..1dbefa655d645 100644 --- a/recipes/catalystcoop.ferc-xbrl-extractor/meta.yaml +++ b/recipes/catalystcoop.ferc-xbrl-extractor/meta.yaml @@ -12,9 +12,9 @@ source: build: entry_points: - xbrl_extract = ferc_xbrl_extractor.cli:main + noarch: python script: {{ PYTHON }} -m pip install . -vv number: 0 - skip: true # [win] requirements: host: From 556090b82dbc97156363e1eecffa2ac7c47d8525 Mon Sep 17 00:00:00 2001 From: zschira Date: Mon, 28 Nov 2022 17:42:37 -0500 Subject: [PATCH 08/13] Change arelle to noarch --- recipes/catalystcoop.arelle-mirror/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/catalystcoop.arelle-mirror/meta.yaml b/recipes/catalystcoop.arelle-mirror/meta.yaml index 54b259abdd4fb..96d871f8a3135 100644 --- a/recipes/catalystcoop.arelle-mirror/meta.yaml +++ b/recipes/catalystcoop.arelle-mirror/meta.yaml @@ -14,7 +14,7 @@ build: - arelle=arelle.CntlrCmdLine:main script: {{ PYTHON }} -m pip install . -vv number: 0 - skip: true # [win] + noarch: python requirements: host: From 40d082df7d34061df64f95391454b9e669300c18 Mon Sep 17 00:00:00 2001 From: zschira Date: Tue, 29 Nov 2022 11:18:59 -0500 Subject: [PATCH 09/13] Add version bounds to arelle recipe after changing to noarch --- recipes/catalystcoop.arelle-mirror/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/catalystcoop.arelle-mirror/meta.yaml b/recipes/catalystcoop.arelle-mirror/meta.yaml index 96d871f8a3135..9d9ee6896b2cb 100644 --- a/recipes/catalystcoop.arelle-mirror/meta.yaml +++ b/recipes/catalystcoop.arelle-mirror/meta.yaml @@ -23,7 +23,7 @@ requirements: - lxml - pip run: - - python + - python >=3.8,<3.11 - lxml - isodate From 2bfa9035acbed473e3c086fbd41dcf872975e394 Mon Sep 17 00:00:00 2001 From: zschira Date: Thu, 1 Dec 2022 12:17:35 -0500 Subject: [PATCH 10/13] Add python version bounds to arelle host section --- recipes/catalystcoop.arelle-mirror/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/catalystcoop.arelle-mirror/meta.yaml b/recipes/catalystcoop.arelle-mirror/meta.yaml index 9d9ee6896b2cb..a23c115790ba1 100644 --- a/recipes/catalystcoop.arelle-mirror/meta.yaml +++ b/recipes/catalystcoop.arelle-mirror/meta.yaml @@ -18,7 +18,7 @@ build: requirements: host: - - python + - python >=3.8,<3.11 - setuptools-scm - lxml - pip From 2df04082c41adea7679c26390ed6681e9d0ccc49 Mon Sep 17 00:00:00 2001 From: zschira Date: Fri, 9 Dec 2022 10:42:06 -0500 Subject: [PATCH 11/13] Use Arelle official pypi package --- recipes/arelle-release/meta.yaml | 48 +++++++++++++++++++ recipes/catalystcoop.arelle-mirror/meta.yaml | 48 ------------------- .../meta.yaml | 10 ++-- 3 files changed, 53 insertions(+), 53 deletions(-) create mode 100644 recipes/arelle-release/meta.yaml delete mode 100644 recipes/catalystcoop.arelle-mirror/meta.yaml diff --git a/recipes/arelle-release/meta.yaml b/recipes/arelle-release/meta.yaml new file mode 100644 index 0000000000000..4b738cf9720f4 --- /dev/null +++ b/recipes/arelle-release/meta.yaml @@ -0,0 +1,48 @@ +{% set name = "arelle-release" %} +{% set version = "2.2.3" %} + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/arelle-release-{{ version }}.tar.gz + sha256: 01148a0a7a5f393d403478a251f8c3c23b83503c6232423d58adb7f4ac0dfacd + +build: + noarch: python + script: {{ PYTHON }} -m pip install . -vv + number: 0 + +requirements: + host: + - python >=3.7 + - pip + run: + - python >=3.7 + - certifi + - isodate ==0.* + - lxml ==4.* + - numpy ==1.* + - openpyxl ==3.* + - pyparsing ==3.* + - regex + +test: + imports: + - arelle_release + commands: + - pip check + requires: + - pip + +about: + home: https://pypi.org/project/arelle-release/ + summary: An open source XBRL platform. + license: Apache-2.0 + license_file: + - LICENSE.md + +extra: + recipe-maintainers: + - zschira diff --git a/recipes/catalystcoop.arelle-mirror/meta.yaml b/recipes/catalystcoop.arelle-mirror/meta.yaml deleted file mode 100644 index a23c115790ba1..0000000000000 --- a/recipes/catalystcoop.arelle-mirror/meta.yaml +++ /dev/null @@ -1,48 +0,0 @@ -{% set name = "catalystcoop.arelle-mirror" %} -{% set version = "1.3.0" %} - -package: - name: {{ name|lower }} - version: {{ version }} - -source: - url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/catalystcoop.arelle_mirror-{{ version }}.tar.gz - sha256: 161a6a829cb830683b3136cff8dac8797f2924189d07bafff57d87c775708247 - -build: - entry_points: - - arelle=arelle.CntlrCmdLine:main - script: {{ PYTHON }} -m pip install . -vv - number: 0 - noarch: python - -requirements: - host: - - python >=3.8,<3.11 - - setuptools-scm - - lxml - - pip - run: - - python >=3.8,<3.11 - - lxml - - isodate - -test: - imports: - - arelle - commands: - - pip check - - arelle --help - requires: - - pip - -about: - home: http://www.arelle.org - summary: An open source XBRL platform - license: Apache-2.0 - license_file: - - LICENSE.md - -extra: - recipe-maintainers: - - zschira diff --git a/recipes/catalystcoop.ferc-xbrl-extractor/meta.yaml b/recipes/catalystcoop.ferc-xbrl-extractor/meta.yaml index 1dbefa655d645..00d0c1f8d0be5 100644 --- a/recipes/catalystcoop.ferc-xbrl-extractor/meta.yaml +++ b/recipes/catalystcoop.ferc-xbrl-extractor/meta.yaml @@ -1,5 +1,5 @@ {% set name = "catalystcoop.ferc-xbrl-extractor" %} -{% set version = "0.5.0" %} +{% set version = "0.6.1" %} package: name: {{ name|lower }} @@ -7,7 +7,7 @@ package: source: url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/catalystcoop.ferc_xbrl_extractor-{{ version }}.tar.gz - sha256: 32ad9ac56cf46387a69cc8a7b18c81dd346e57517ee19ba2761f3e43d03327d0 + sha256: cc501cc14e33579761736e7ed2f220f1cbc25c7c0306c4be10244babcc931181 build: entry_points: @@ -24,8 +24,8 @@ requirements: run: - python >=3.8,<3.11 - pydantic >=1.9,<2 - - coloredlogs >=15.0,<16.dev0 - - catalystcoop.arelle-mirror ==1.3.0 + - coloredlogs >=14.0,<15.1 + - arelle-release >=2.2,<2.3 - frictionless >=4.4,<5 - sqlalchemy >=1.4,<2 - pandas >=1.4,<1.5 @@ -41,7 +41,7 @@ test: - pip about: - home: https://pypi.org/project/catalystcoop.ferc-xbrl-extractor/ + home: https://github.com/catalyst-cooperative/ferc-xbrl-extract summary: A tool for extracting data from FERC XBRL Filings. dev_url: https://github.com/catalyst-cooperative/ferc-xbrl-extract license: MIT From 8fe3454733265d76a884434aa453b26a0623e304 Mon Sep 17 00:00:00 2001 From: zschira Date: Fri, 9 Dec 2022 11:07:07 -0500 Subject: [PATCH 12/13] Fix arelle import --- recipes/arelle-release/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/arelle-release/meta.yaml b/recipes/arelle-release/meta.yaml index 4b738cf9720f4..748b1b1535040 100644 --- a/recipes/arelle-release/meta.yaml +++ b/recipes/arelle-release/meta.yaml @@ -30,7 +30,7 @@ requirements: test: imports: - - arelle_release + - arelle commands: - pip check requires: From 33c2aec34f59a81d65459bf8ba4bb3fdecc24706 Mon Sep 17 00:00:00 2001 From: zschira Date: Fri, 9 Dec 2022 12:32:16 -0500 Subject: [PATCH 13/13] Add setuptools_scm to arelle recipe --- recipes/arelle-release/meta.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes/arelle-release/meta.yaml b/recipes/arelle-release/meta.yaml index 748b1b1535040..efd142809b751 100644 --- a/recipes/arelle-release/meta.yaml +++ b/recipes/arelle-release/meta.yaml @@ -17,6 +17,7 @@ build: requirements: host: - python >=3.7 + - setuptools-scm - pip run: - python >=3.7