fix quoting for windows, actually check labextension version
package:
- name: {{ name|lower }}
+ name: {{ name }}
version: {{ version }}
source:
- url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/ipydatagrid-{{ version }}.tar.gz
+ url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
sha256: b7b387bf615d4513d1c24dc43c222a772a1f6789277e34995f5f8bd89291f128
build:
number: 0
noarch: python
script:
- - {{ PYTHON }} -c 'import shutil as s, os; s.rmtree("examples"); os.unlink("pyproject.toml")'
+ - {{ PYTHON }} -c "import shutil as s, os; s.rmtree('examples'); os.unlink('pyproject.toml')"
- {{ PYTHON }} -m pip install --install-option="--skip-npm" . -vv
requirements:
@@ -35,7 +35,7 @@ test:
commands:
- pip check
- jupyter labextension list 1>lab_extensions 2>&1
- - cat lab_extensions | grep "ipydatagrid.*.*OK"
+ - cat lab_extensions | grep "ipydatagrid.*{{ version.replace(".", "\\.") }}.*OK"
requires:
- pip
- jupyterlab >=3,<4
