Skip to content

Commit

Permalink
Sync recipe with conda-forge#73 (#169)
Browse files Browse the repository at this point in the history
* Sync recipe with conda-forge

* require 3.37.0?

* Use Python 3.10

* remove pip check

* star for 3.10

* do it in two parts

* cat that

* offscreen?
  • Loading branch information
jaimergp authored Jul 16, 2024
1 parent 7380923 commit ad8406d
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 21 deletions.
54 changes: 35 additions & 19 deletions conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@ build:
number: {{ build }}

outputs:
- name: napari
- name: napari-base
version: {{ version }}
build:
noarch: python
number: {{ build }}
script: PIP_NO_INDEX=True PIP_NO_DEPENDENCIES=True PIP_NO_BUILD_ISOLATION=False PIP_IGNORE_INSTALLED=True PYTHONDONTWRITEBYTECODE=True {{ PREFIX }}/bin/python -m pip install . -vv
entry_points:
- napari = napari.__main__:main
Expand Down Expand Up @@ -49,7 +48,6 @@ outputs:
- magicgui >=0.7.0
- napari-console >=0.0.9
- napari-plugin-engine >=0.1.9
- napari-svg >=0.1.8
- npe2 >=0.7.6
- numpy >=1.22.2
- numpydoc >=0.9.2
Expand All @@ -73,41 +71,33 @@ outputs:
- vispy >=0.14.1,<0.15.0a0
- wrapt >=1.11.1

# additional dependencies for convenience in conda-forge
- fsspec
- pooch >=1.3.0
- zarr >=2.12.0

run_constrained:
- napari-plugin-manager >=0.1.0a2,<0.3.0a0
- pyside2 >=5.13.2,!=5.15.0
- pyside6 <6.5,>=6.7
- pyside6 <6.5|>=6.7
- pyqt >=5.12.3,!=5.15.0,<6.0a0|>=6.5,!=6.6.1
# Nice for performance, but optional. Inclusion under discussion.
# - py-triangle
# - numba >=0.57.1 # https://github.com/napari/napari/pull/6467#issuecomment-1819038165

test:
requires:
- pyqt
- pip
# needed if pytest is uncommented below in 'commands'
# - hypothesis
# - pytest >=8.1.0
# - pytest
# - pytest-faulthandler
# - pytest-qt
# - xarray
# - pandas
# - pytest-timeout
# - py-triangle
# - numba >=0.57.1 # https://github.com/napari/napari/pull/6467#issuecomment-1819038165
imports:
- napari
commands:
- pip check
- setx QT_API "pyqt5" # [win]
- export QT_API=pyqt5 # [unix]
- which napari
- napari --info # [not linux]
- QT_DEBUG_PLUGINS=1 LIBGL_DEBUG=verbose xvfb-run --auto-servernum napari --info || true # [linux]
- 'QT_DEBUG_PLUGINS=1 LIBGL_DEBUG=verbose QT_QPA_PLATFORM=offscreen xvfb-run --auto-servernum napari --info > napari_info.txt 2>&1 || true' # [linux]
- cat napari_info.txt # [linux]
- 'grep -C99 "napari: ${PKG_VERSION}" napari_info.txt' # [linux]
# - pytest --pyargs napari

about:
Expand All @@ -117,6 +107,33 @@ outputs:
- LICENSE
- napari/_vendor/darkdetect/LICENSE
- napari/_vendor/qt_json_builder/LICENSE
summary: a fast n-dimensional image viewer in Python, with only the required dependencies
doc_url: http://napari.org
dev_url: https://github.com/napari/napari

- name: napari
version: {{ version }}
build:
noarch: python
requirements:
run:
- {{ pin_subpackage('napari-base', exact=True) }}
- fsspec
- napari-plugin-manager >=0.1.0a2,<0.3.0a0
- napari-svg >=0.1.8
- numba >=0.57.1
- pooch >=1.3.0
# - py-triangle # can segfault with bad data: https://github.com/napari/napari/pull/6654
- zarr >=2.12.0
test: # just to check that the environment can indeed solve
requires:
- pyside2 # use this opportunity to test solvability with other backend
imports:
- napari
about:
home: http://napari.org
license: BSD-3-Clause AND MIT
license_file: LICENSE
summary: a fast n-dimensional image viewer in Python
description: a fast n-dimensional image viewer in Python
doc_url: http://napari.org
Expand All @@ -126,7 +143,6 @@ outputs:
version: {{ version }}
build:
noarch: python
number: {{ build }}
script:
- mkdir -p "${PREFIX}/Menu"
- sed "s/__PKG_VERSION__/{{ PKG_VERSION }}/" "{{ SRC_DIR }}/resources/conda_menu_config.json" > "{{ PREFIX }}/Menu/napari-menu.json"
Expand Down
4 changes: 2 additions & 2 deletions environments/ci_packages_environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: packages
channels:
- conda-forge
dependencies:
- conda-smithy
- python 3.9
- conda-smithy >=3.37.0
- python 3.10.*
- pip
- tomlkit
- ruamel.yaml
Expand Down

0 comments on commit ad8406d

Please sign in to comment.