From 3a4847447327216a40c698b841a9b0d625e75890 Mon Sep 17 00:00:00 2001 From: dbansal Date: Mon, 10 Mar 2025 08:45:08 +0100 Subject: [PATCH 1/8] copied meta.yaml from example --- recipes/jupyterlab_run_and_reload/meta.yaml | 98 +++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 recipes/jupyterlab_run_and_reload/meta.yaml diff --git a/recipes/jupyterlab_run_and_reload/meta.yaml b/recipes/jupyterlab_run_and_reload/meta.yaml new file mode 100644 index 0000000000000..f095288e58d10 --- /dev/null +++ b/recipes/jupyterlab_run_and_reload/meta.yaml @@ -0,0 +1,98 @@ +# Note: there are many handy hints in comments in this example -- remove them when you've finalized your recipe +# If your package is python based, we recommend using Grayskull to generate it instead: +# https://github.com/conda-incubator/grayskull + +# Jinja variables help maintain the recipe as you'll update the version only here. +# Using the name variable with the URL in line 16 is convenient +# when copying and pasting from another recipe, but not really needed. +{% set name = "simplejson" %} +{% set version = "3.8.2" %} + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz + # If getting the source from GitHub, remove the line above, + # uncomment the line below, and modify as needed. Use releases if available: + # url: https://github.com/simplejson/simplejson/releases/download/{{ version }}/simplejson-{{ version }}.tar.gz + # and otherwise fall back to archive: + # url: https://github.com/simplejson/simplejson/archive/v{{ version }}.tar.gz + sha256: 2b3a0c466fb4a1014ea131c2b8ea7c519f9278eba73d6fcb361b7bdb4fd494e9 + # sha256 is the preferred checksum -- you can get it for a file with: + # `openssl sha256 `. + # You may need the openssl package, available on conda-forge: + # `conda install openssl -c conda-forge`` + +build: + # Uncomment the following line if the package is pure Python and the recipe is exactly the same for all platforms. + # It is okay if the dependencies are not built for all platforms/versions, although selectors are still not allowed. + # See https://conda-forge.org/docs/maintainer/knowledge_base.html#noarch-python for more details. + # noarch: python + # If the installation is complex, or different between Unix and Windows, use separate bld.bat and build.sh files instead of this key. + # By default, the package will be built for the Python versions supported by conda-forge and for all major OSs. + # Add the line "skip: True # [py<35]" (for example) to limit to Python 3.5 and newer, or "skip: True # [not win]" to limit to Windows. + # More info about selectors can be found in the conda-build docs: + # https://docs.conda.io/projects/conda-build/en/latest/resources/define-metadata.html#preprocessing-selectors + script: {{ PYTHON }} -m pip install . -vv + number: 0 + +requirements: + build: + # If your project compiles code (such as a C extension) then add the required compilers as separate entries here. + # Compilers are named 'c', 'cxx', 'fortran', among others + - {{ compiler('c') }} + # this is necessary for all compiled recipes + - {{ stdlib('c') }} + host: + - python + - pip + - setuptools + run: + - python + +test: + # Some packages might need a `test/commands` key to check CLI. + # List all the packages/modules that `run_test.py` imports. + imports: + - simplejson + - simplejson.tests + # For python packages, it is useful to run pip check. However, sometimes the + # metadata used by pip is out of date. Thus this section is optional if it is + # failing. + requires: + - pip + commands: + - pip check + +about: + home: https://github.com/simplejson/simplejson + summary: 'Simple, fast, extensible JSON encoder/decoder for Python' + description: | + simplejson is a simple, fast, complete, correct and extensible + JSON encoder and decoder for Python 2.5+ and + Python 3.3+. It is pure Python code with no dependencies, but includes + an optional C extension for a serious speed boost. + # Remember to specify the license variants for BSD, Apache, GPL, and LGPL. + # Use the SPDX identifier, e.g: GPL-2.0-only instead of GNU General Public License version 2.0 + # See https://spdx.org/licenses/ + license: MIT + # The license_family, i.e. "BSD" if license is "BSD-3-Clause". + # Optional + license_family: MIT + # It is required to include a license file in the package, + # (even if the license doesn't require it) using the license_file entry. + # Please also note that some projects have multiple license files which all need to be added using a valid yaml list. + # See https://docs.conda.io/projects/conda-build/en/latest/resources/define-metadata.html#license-file + license_file: LICENSE.txt + # The doc_url and dev_url are optional. + doc_url: https://simplejson.readthedocs.io/ + dev_url: https://github.com/simplejson/simplejson + +extra: + recipe-maintainers: + # GitHub IDs for maintainers of the recipe. + # Always check with the people listed below if they are OK becoming maintainers of the recipe. (There will be spam!) + - LisaSimpson + - LandoCalrissian From 14df4d098a5b02ae2a45c611e46bf6494b150ae6 Mon Sep 17 00:00:00 2001 From: dbansal Date: Mon, 10 Mar 2025 08:55:02 +0100 Subject: [PATCH 2/8] updated meta.yaml --- recipes/jupyterlab_run_and_reload/meta.yaml | 86 +++++---------------- 1 file changed, 19 insertions(+), 67 deletions(-) diff --git a/recipes/jupyterlab_run_and_reload/meta.yaml b/recipes/jupyterlab_run_and_reload/meta.yaml index f095288e58d10..a87756d56641b 100644 --- a/recipes/jupyterlab_run_and_reload/meta.yaml +++ b/recipes/jupyterlab_run_and_reload/meta.yaml @@ -1,12 +1,5 @@ -# Note: there are many handy hints in comments in this example -- remove them when you've finalized your recipe -# If your package is python based, we recommend using Grayskull to generate it instead: -# https://github.com/conda-incubator/grayskull - -# Jinja variables help maintain the recipe as you'll update the version only here. -# Using the name variable with the URL in line 16 is convenient -# when copying and pasting from another recipe, but not really needed. -{% set name = "simplejson" %} -{% set version = "3.8.2" %} +{% set name = "jupyterlab-run-and-reload" %} +{% set version = "0.3.1" %} package: name: {{ name|lower }} @@ -14,85 +7,44 @@ package: source: url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz - # If getting the source from GitHub, remove the line above, - # uncomment the line below, and modify as needed. Use releases if available: - # url: https://github.com/simplejson/simplejson/releases/download/{{ version }}/simplejson-{{ version }}.tar.gz - # and otherwise fall back to archive: - # url: https://github.com/simplejson/simplejson/archive/v{{ version }}.tar.gz - sha256: 2b3a0c466fb4a1014ea131c2b8ea7c519f9278eba73d6fcb361b7bdb4fd494e9 - # sha256 is the preferred checksum -- you can get it for a file with: - # `openssl sha256 `. - # You may need the openssl package, available on conda-forge: - # `conda install openssl -c conda-forge`` + sha256: 786d5c505f5e7e9a37a0b70863f3312d761c01ed3c00c9c65aa8217a46711657 build: - # Uncomment the following line if the package is pure Python and the recipe is exactly the same for all platforms. - # It is okay if the dependencies are not built for all platforms/versions, although selectors are still not allowed. - # See https://conda-forge.org/docs/maintainer/knowledge_base.html#noarch-python for more details. - # noarch: python - # If the installation is complex, or different between Unix and Windows, use separate bld.bat and build.sh files instead of this key. - # By default, the package will be built for the Python versions supported by conda-forge and for all major OSs. - # Add the line "skip: True # [py<35]" (for example) to limit to Python 3.5 and newer, or "skip: True # [not win]" to limit to Windows. - # More info about selectors can be found in the conda-build docs: - # https://docs.conda.io/projects/conda-build/en/latest/resources/define-metadata.html#preprocessing-selectors script: {{ PYTHON }} -m pip install . -vv number: 0 requirements: build: - # If your project compiles code (such as a C extension) then add the required compilers as separate entries here. - # Compilers are named 'c', 'cxx', 'fortran', among others - - {{ compiler('c') }} - # this is necessary for all compiled recipes - - {{ stdlib('c') }} + - nodejs >=14.0.0 host: - - python - pip - - setuptools + - python >=3.8 + - hatchling >=1.5.0 + - jupyterlab >=4.0.0,<5 + - hatch-nodejs-version >=0.3.2 + - hatch-jupyter-builder run: - - python + - python >=3.8 test: - # Some packages might need a `test/commands` key to check CLI. - # List all the packages/modules that `run_test.py` imports. - imports: - - simplejson - - simplejson.tests - # For python packages, it is useful to run pip check. However, sometimes the - # metadata used by pip is out of date. Thus this section is optional if it is - # failing. requires: - pip + - jupyterlab >=4.0.0,<5 commands: - pip check + - jupyter labextension list 2>&1 | grep -ie "@jupyterlab_run_and_reload.*OK" + - python -m jupyterlab.browser_check --no-browser-test about: - home: https://github.com/simplejson/simplejson - summary: 'Simple, fast, extensible JSON encoder/decoder for Python' - description: | - simplejson is a simple, fast, complete, correct and extensible - JSON encoder and decoder for Python 2.5+ and - Python 3.3+. It is pure Python code with no dependencies, but includes - an optional C extension for a serious speed boost. - # Remember to specify the license variants for BSD, Apache, GPL, and LGPL. - # Use the SPDX identifier, e.g: GPL-2.0-only instead of GNU General Public License version 2.0 - # See https://spdx.org/licenses/ - license: MIT - # The license_family, i.e. "BSD" if license is "BSD-3-Clause". - # Optional - license_family: MIT - # It is required to include a license file in the package, - # (even if the license doesn't require it) using the license_file entry. - # Please also note that some projects have multiple license files which all need to be added using a valid yaml list. - # See https://docs.conda.io/projects/conda-build/en/latest/resources/define-metadata.html#license-file + home: https://github.com/imcovangent/jupyterlab_run_and_reload + summary: 'JupyterLab extension to run all notebook cells and reload external widgets (e.g. PDF documents)' + license: BSD-3-Clause + license_family: BSD license_file: LICENSE.txt - # The doc_url and dev_url are optional. - doc_url: https://simplejson.readthedocs.io/ - dev_url: https://github.com/simplejson/simplejson extra: recipe-maintainers: # GitHub IDs for maintainers of the recipe. # Always check with the people listed below if they are OK becoming maintainers of the recipe. (There will be spam!) - - LisaSimpson - - LandoCalrissian + - imcovangent + - darpan097 From 19a3edd4dff9a227345cdec74558a917d32c4281 Mon Sep 17 00:00:00 2001 From: dbansal Date: Mon, 10 Mar 2025 09:08:36 +0100 Subject: [PATCH 3/8] fixed source url --- recipes/jupyterlab_run_and_reload/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/jupyterlab_run_and_reload/meta.yaml b/recipes/jupyterlab_run_and_reload/meta.yaml index a87756d56641b..86004b131ed44 100644 --- a/recipes/jupyterlab_run_and_reload/meta.yaml +++ b/recipes/jupyterlab_run_and_reload/meta.yaml @@ -6,7 +6,7 @@ package: version: {{ version }} source: - url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz + url: https://github.com/imcovangent/jupyterlab_run_and_reload/releases/download/v{{ version }}/{{ name | replace('-', '_') }}-{{ version }}.tar.gz sha256: 786d5c505f5e7e9a37a0b70863f3312d761c01ed3c00c9c65aa8217a46711657 build: From a7291c64c578e3d6bae6a81fecb60ad40e59279e Mon Sep 17 00:00:00 2001 From: dbansal Date: Mon, 10 Mar 2025 09:18:17 +0100 Subject: [PATCH 4/8] added license and fixed typo --- recipes/jupyterlab_run_and_reload/LICENSE | 29 +++++++++++++++++++++ recipes/jupyterlab_run_and_reload/meta.yaml | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 recipes/jupyterlab_run_and_reload/LICENSE diff --git a/recipes/jupyterlab_run_and_reload/LICENSE b/recipes/jupyterlab_run_and_reload/LICENSE new file mode 100644 index 0000000000000..8cb4e6b85ae30 --- /dev/null +++ b/recipes/jupyterlab_run_and_reload/LICENSE @@ -0,0 +1,29 @@ +BSD 3-Clause License + +Copyright (c) 2025, Imco van Gent +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/recipes/jupyterlab_run_and_reload/meta.yaml b/recipes/jupyterlab_run_and_reload/meta.yaml index 86004b131ed44..5a465107847df 100644 --- a/recipes/jupyterlab_run_and_reload/meta.yaml +++ b/recipes/jupyterlab_run_and_reload/meta.yaml @@ -38,7 +38,7 @@ test: about: home: https://github.com/imcovangent/jupyterlab_run_and_reload summary: 'JupyterLab extension to run all notebook cells and reload external widgets (e.g. PDF documents)' - license: BSD-3-Clause + license: BSD-3-Clause license_family: BSD license_file: LICENSE.txt From 03a06ae4c99858df1ac4e14e162a968865193554 Mon Sep 17 00:00:00 2001 From: dbansal Date: Mon, 10 Mar 2025 09:18:50 +0100 Subject: [PATCH 5/8] removed darpan097 from maintainers --- recipes/jupyterlab_run_and_reload/meta.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/recipes/jupyterlab_run_and_reload/meta.yaml b/recipes/jupyterlab_run_and_reload/meta.yaml index 5a465107847df..fa0ec144a754e 100644 --- a/recipes/jupyterlab_run_and_reload/meta.yaml +++ b/recipes/jupyterlab_run_and_reload/meta.yaml @@ -44,7 +44,4 @@ about: extra: recipe-maintainers: - # GitHub IDs for maintainers of the recipe. - # Always check with the people listed below if they are OK becoming maintainers of the recipe. (There will be spam!) - imcovangent - - darpan097 From 1a8d459c41f5601e22ea7cc6f8b3968822f9cde8 Mon Sep 17 00:00:00 2001 From: dbansal Date: Mon, 10 Mar 2025 09:20:38 +0100 Subject: [PATCH 6/8] added jupyter_packaging --- recipes/jupyterlab_run_and_reload/meta.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes/jupyterlab_run_and_reload/meta.yaml b/recipes/jupyterlab_run_and_reload/meta.yaml index fa0ec144a754e..a9bc36b2e0585 100644 --- a/recipes/jupyterlab_run_and_reload/meta.yaml +++ b/recipes/jupyterlab_run_and_reload/meta.yaml @@ -23,6 +23,7 @@ requirements: - jupyterlab >=4.0.0,<5 - hatch-nodejs-version >=0.3.2 - hatch-jupyter-builder + - jupyter_packaging run: - python >=3.8 From e7126488baf89e5d14d9c0e9367e14f0e16e542a Mon Sep 17 00:00:00 2001 From: dbansal Date: Mon, 10 Mar 2025 10:14:21 +0100 Subject: [PATCH 7/8] final working recipe --- recipes/jupyterlab_run_and_reload/meta.yaml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/recipes/jupyterlab_run_and_reload/meta.yaml b/recipes/jupyterlab_run_and_reload/meta.yaml index a9bc36b2e0585..e2a471aba34a4 100644 --- a/recipes/jupyterlab_run_and_reload/meta.yaml +++ b/recipes/jupyterlab_run_and_reload/meta.yaml @@ -1,4 +1,4 @@ -{% set name = "jupyterlab-run-and-reload" %} +{% set name = "jupyterlab_run_and_reload" %} {% set version = "0.3.1" %} package: @@ -6,10 +6,11 @@ package: version: {{ version }} source: - url: https://github.com/imcovangent/jupyterlab_run_and_reload/releases/download/v{{ version }}/{{ name | replace('-', '_') }}-{{ version }}.tar.gz + url: https://github.com/imcovangent/jupyterlab_run_and_reload/releases/download/v{{ version }}/{{ name }}-{{ version }}.tar.gz sha256: 786d5c505f5e7e9a37a0b70863f3312d761c01ed3c00c9c65aa8217a46711657 build: + noarch: python script: {{ PYTHON }} -m pip install . -vv number: 0 @@ -19,10 +20,9 @@ requirements: host: - pip - python >=3.8 - - hatchling >=1.5.0 - - jupyterlab >=4.0.0,<5 + - setuptools + - jupyterlab >=3.0.0,<4 - hatch-nodejs-version >=0.3.2 - - hatch-jupyter-builder - jupyter_packaging run: - python >=3.8 @@ -30,18 +30,17 @@ requirements: test: requires: - pip - - jupyterlab >=4.0.0,<5 + - jupyterlab >=3.0.0,<4 commands: - pip check - - jupyter labextension list 2>&1 | grep -ie "@jupyterlab_run_and_reload.*OK" - - python -m jupyterlab.browser_check --no-browser-test + - jupyter labextension list 2>&1 | grep -ie "jupyterlab_run_and_reload.*OK" about: home: https://github.com/imcovangent/jupyterlab_run_and_reload summary: 'JupyterLab extension to run all notebook cells and reload external widgets (e.g. PDF documents)' license: BSD-3-Clause license_family: BSD - license_file: LICENSE.txt + license_file: LICENSE extra: recipe-maintainers: From 249f33a5bae556853ddea64f8b994e26aaeaf81e Mon Sep 17 00:00:00 2001 From: dbansal Date: Mon, 10 Mar 2025 10:19:27 +0100 Subject: [PATCH 8/8] updated python versioning --- recipes/jupyterlab_run_and_reload/meta.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/recipes/jupyterlab_run_and_reload/meta.yaml b/recipes/jupyterlab_run_and_reload/meta.yaml index e2a471aba34a4..d7d7c2295b058 100644 --- a/recipes/jupyterlab_run_and_reload/meta.yaml +++ b/recipes/jupyterlab_run_and_reload/meta.yaml @@ -19,16 +19,17 @@ requirements: - nodejs >=14.0.0 host: - pip - - python >=3.8 + - python {{ python_min }} - setuptools - jupyterlab >=3.0.0,<4 - hatch-nodejs-version >=0.3.2 - jupyter_packaging run: - - python >=3.8 + - python >={{ python_min }} test: requires: + - python {{ python_min }} - pip - jupyterlab >=3.0.0,<4 commands: