Skip to content
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

Add the Thunderstorm Event Reconnaissance (THUNER) package #28762

Open
wants to merge 26 commits into
base: main
Choose a base branch
from
Open
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
86 changes: 86 additions & 0 deletions recipes/thuner/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
{% set name = "thuner" %}
{% set version = "0.0.7" %}
{% set python_min = "3.10" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
sha256: b94c0120c930a58059020d2941fb680b3fe87fc70d3a88c7a1fa4fac5dc2f21e

build:
noarch: python
script: {{ PYTHON }} -m pip install . -vv
number: 0
skip:
- win

requirements:
host:
- python {{ python_min }}
- pip
- setuptools
- graphviz
- python-graphviz
- pydot
run:
- python >={{ python_min }}
- numpy
- numba
- scipy
- scikit-image
- pandas
- matplotlib-base
- xarray
- cartopy
- typing_extensions
- pre-commit
- black
- pytest
- pytest-cov
- codecov
- ipykernel
- netcdf4
- h5netcdf
- requests
- arm_pyart
- tqdm
- cdsapi
- xesmf
- opencv
- awscli
- pytables
- memory_profiler
- psutil
- pydantic
- zarr
- windrose
- pydot
- graphviz
- python-graphviz
- metpy

test:
Copy link
Member

Choose a reason for hiding this comment

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

I would recommend adding a pip check test.

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

Copy link
Author

Choose a reason for hiding this comment

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

@synapticarbors Ok the pip check is now working. Realised I also need the python-graphviz package in requirements, and that build needs to be

build:
  noarch: python
  script: {{ PYTHON }} -m pip install . -vv
  number: 0
  skip:
    - win

as xesmf (a core package dependency) doesn't yet work on windows. Checks are now passing. What is the next step? :)

imports:
- thuner
commands:
- pip check
requires:
- python {{ python_min }}
- pip
- graphviz
- python-graphviz

about:
home: https://github.com/THUNER-project/THUNER
license: BSD-3-Clause
license_file: LICENSE.txt
license_family: BSD
summary: Thunderstorm tracking and analysis
description: The Thunderstorm Event Reconnaissance (THUNER) package is a toolkit for tracking and analyzing meteorological events, primarily convective events.

extra:
recipe-maintainers:
- eshort0401