Skip to content

Sync recipe with conda-forge #220

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

Merged
merged 2 commits into from
Mar 11, 2025
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 2 additions & 2 deletions conda/environments/all_arch-any.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ channels:
- conda-forge
- nvidia
dependencies:
- jupyterlab>=4
- jupyterlab>=4.0.0
- nodejs=18
- pre-commit
- psutil
- pynvml>=12.0.0,<13.0.0a0
- pytest
- pytest-asyncio
- pytest-jupyter[server]>=0.6.0
- pytest-jupyter-server>=0.6.0
- python>=3.8
- websockets
name: all_arch-any
41 changes: 27 additions & 14 deletions conda/recipes/jupyterlab-nvdashboard/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{% set version = environ['RAPIDS_PACKAGE_VERSION'].lstrip('v') %}
{% set date_string = environ['RAPIDS_DATE_STRING'] %}

{% set python_min = "3.9" %}


package:
name: jupyterlab-nvdashboard
version: {{ version }}
Expand All @@ -11,31 +14,41 @@ source:
build:
number: {{ GIT_DESCRIBE_NUMBER }}
string: py_{{ date_string }}_{{ GIT_DESCRIBE_HASH }}_{{ GIT_DESCRIBE_NUMBER }}
script: python -m pip install . --no-deps --ignore-installed --no-cache-dir -vvv
noarch: python
script:
- {{ PYTHON }} -m pip install . -vvv

requirements:
host:
- python >=3.8
- setuptools
- nodejs =18
- hatchling
- hatch-nodejs-version
- hatch-jupyter-builder
- jupyterlab >=4
- python {{ python_min }}
- pip
- nodejs
- hatch-jupyter-builder >=0.5
- hatch-nodejs-version >=0.3.2
- hatchling >=1.5.0
- jupyterlab >=4.0.0
run:
- python >=3.8
- jupyterlab >=4
- pynvml >=12.0.0,<13.0.0a0
- python >={{ python_min }}
- jupyterlab >=4.0.0
- psutil

- pynvml >=12.0.0,<13.0.0a0

test:
requires:
- python {{ python_min }}
- pip
commands:
- pip check
imports:
- jupyterlab_nvdashboard

about:
home: https://rapids.ai
license: BSD-3
summary: 'A JupyterLab extension for displaying dashboards of GPU usage.'
license: BSD-3-Clause
license_family: BSD
license_file: ../../../LICENSE
summary: A JupyterLab extension for displaying dashboards of GPU usage
description: |
A JupyterLab extension for displaying dashboards of GPU usage.
doc_url: https://github.com/rapidsai/jupyterlab-nvdashboard
dev_url: https://github.com/rapidsai/jupyterlab-nvdashboard
18 changes: 12 additions & 6 deletions dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,16 @@ dependencies:
common:
- output_types: pyproject
packages:
- hatchling>=1.5.0
- jupyterlab>=4.0.0,<5
- hatch-jupyter-builder>=0.5
- hatch-nodejs-version>=0.3.2
- hatchling>=1.5.0
- jupyterlab>=4.0.0
checks:
common:
- output_types: [conda, requirements]
packages:
- pre-commit
- jupyterlab>=4
- jupyterlab>=4.0.0
- nodejs=18
py_version:
common:
Expand All @@ -71,14 +72,19 @@ dependencies:
common:
- output_types: [conda, requirements, pyproject]
packages:
- jupyterlab>=4
- pynvml>=12.0.0,<13.0.0a0
- jupyterlab>=4.0.0
- psutil
- pynvml>=12.0.0,<13.0.0a0
test_python:
common:
- output_types: [conda, requirements, pyproject]
packages:
- pytest
- pytest-jupyter[server]>=0.6.0
- pytest-asyncio
- websockets
- output_types: [requirements, pyproject]
packages:
- pytest-jupyter[server]>=0.6.0
- output_types: [conda]
packages:
- pytest-jupyter-server>=0.6.0
Comment on lines 78 to +90
Copy link
Member Author

Choose a reason for hiding this comment

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

Conda doesn't handle the extra syntax [...]. So adapt this for Conda

8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@

[build-system]
requires = [
"hatch-jupyter-builder>=0.5",
"hatch-nodejs-version>=0.3.2",
"hatchling>=1.5.0",
"jupyterlab>=4.0.0,<5",
"jupyterlab>=4.0.0",
] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit dependencies.yaml and run `rapids-dependency-file-generator`.
build-backend = "hatchling.build"

[project]
name = "jupyterlab_nvdashboard"
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.8"
requires-python = ">=3.9"
classifiers = [
"Framework :: Jupyter",
"Framework :: Jupyter :: JupyterLab",
Expand All @@ -22,14 +23,13 @@ classifiers = [
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"jupyterlab>=4",
"jupyterlab>=4.0.0",
"psutil",
"pynvml>=12.0.0,<13.0.0a0",
] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit dependencies.yaml and run `rapids-dependency-file-generator`.
Expand Down