Code Monkey home page Code Monkey logo

metpy-feedstock's Introduction

About metpy-feedstock

Feedstock license: BSD-3-Clause

Home: https://github.com/Unidata/MetPy

Package license: BSD-3-Clause

Summary: MetPy is a collection of tools in Python for reading, visualizing and performing calculations with weather data.

Development: https://github.com/Unidata/MetPy

Documentation: https://unidata.github.io/MetPy

The space MetPy aims for is GEMPAK (and maybe NCL)-like functionality, in a way that plugs easily into the existing scientific Python ecosystem (numpy, scipy, matplotlib). So, if you take the average GEMPAK script for a weather map, you need to: read data, calculate a derived field, and show on a map/skew-T. One of the benefits hoped to achieve over GEMPAK is to make it easier to use these routines for any meteorological Python application; this means making it easy to pull out the LCL calculation and just use that, or re-use the Skew-T with your own data code. MetPy also prides itself on being well-documented and well-tested, so that on-going maintenance is easily manageable.

Current build status

All platforms:

Current release info

Name Downloads Version Platforms
Conda Recipe Conda Downloads Conda Version Conda Platforms

Installing metpy

Installing metpy from the conda-forge channel can be achieved by adding conda-forge to your channels with:

conda config --add channels conda-forge
conda config --set channel_priority strict

Once the conda-forge channel has been enabled, metpy can be installed with conda:

conda install metpy

or with mamba:

mamba install metpy

It is possible to list all of the versions of metpy available on your platform with conda:

conda search metpy --channel conda-forge

or with mamba:

mamba search metpy --channel conda-forge

Alternatively, mamba repoquery may provide more information:

# Search all versions available on your platform:
mamba repoquery search metpy --channel conda-forge

# List packages depending on `metpy`:
mamba repoquery whoneeds metpy --channel conda-forge

# List dependencies of `metpy`:
mamba repoquery depends metpy --channel conda-forge

About conda-forge

Powered by NumFOCUS

conda-forge is a community-led conda channel of installable packages. In order to provide high-quality builds, the process has been automated into the conda-forge GitHub organization. The conda-forge organization contains one repository for each of the installable packages. Such a repository is known as a feedstock.

A feedstock is made up of a conda recipe (the instructions on what and how to build the package) and the necessary configurations for automatic building using freely available continuous integration services. Thanks to the awesome service provided by Azure, GitHub, CircleCI, AppVeyor, Drone, and TravisCI it is possible to build and upload installable packages to the conda-forge anaconda.org channel for Linux, Windows and OSX respectively.

To manage the continuous integration and simplify feedstock maintenance conda-smithy has been developed. Using the conda-forge.yml within this repository, it is possible to re-render all of this feedstock's supporting files (e.g. the CI configuration files) with conda smithy rerender.

For more information please check the conda-forge documentation.

Terminology

feedstock - the conda recipe (raw material), supporting scripts and CI configuration.

conda-smithy - the tool which helps orchestrate the feedstock. Its primary use is in the construction of the CI .yml files and simplify the management of many feedstocks.

conda-forge - the place where the feedstock and smithy live and work to produce the finished article (built conda distributions)

Updating metpy-feedstock

If you would like to improve the metpy recipe or build a new package version, please fork this repository and submit a PR. Upon submission, your changes will be run on the appropriate platforms to give the reviewer an opportunity to confirm that the changes result in a successful build. Once merged, the recipe will be re-built and uploaded automatically to the conda-forge channel, whereupon the built conda packages will be available for everybody to install and use from the conda-forge channel. Note that all branches in the conda-forge/metpy-feedstock are immediately built and any created packages are uploaded, so PRs should be based on branches in forks and branches in the main repository should only be used to build distinct package versions.

In order to produce a uniquely identifiable distribution:

  • If the version of a package is not being increased, please add or increase the build/number.
  • If the version of a package is being increased, please remember to return the build/number back to 0.

Feedstock Maintainers

metpy-feedstock's People

Contributors

akrherz avatar beckermr avatar conda-forge-admin avatar conda-forge-curator[bot] avatar dcamron avatar dopplershift avatar github-actions[bot] avatar jrleeman avatar ocefpaf avatar pelson avatar regro-cf-autotick-bot avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

metpy-feedstock's Issues

metpy.calc fails to import on python2.7 ImportError: No module named units (matplotlib.units)

Issue: fresh install of metpy on python=2.7 fails to import metpy.calc

may be related to conda-forge/pint-feedstock#23

Steps to reproduce:

  1. conda create -n py27 python=2.7 metpy
  2. install funcsigs to get pint happy conda install funcsigs
  3. attempt to import metpy.calc
$ python
Python 2.7.15 | packaged by conda-forge | (default, Nov 28 2018, 18:42:13) 
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import metpy.calc as mcalc
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/miniconda3/envs/py27/lib/python2.7/site-packages/metpy/__init__.py", line 15, in <module>
    from .xarray import *  # noqa: F401, F403
  File "/opt/miniconda3/envs/py27/lib/python2.7/site-packages/metpy/xarray.py", line 17, in <module>
    from .units import DimensionalityError, units
  File "/opt/miniconda3/envs/py27/lib/python2.7/site-packages/metpy/units.py", line 319, in <module>
    units.setup_matplotlib()
  File "/opt/miniconda3/envs/py27/lib/python2.7/site-packages/pint/registry.py", line 1503, in setup_matplotlib
    from .matplotlib import setup_matplotlib_handlers
  File "/opt/miniconda3/envs/py27/lib/python2.7/site-packages/pint/matplotlib.py", line 12, in <module>
    import matplotlib.units
ImportError: No module named units
>>> import matplotlib.units
>>>

I have been trying to track down new failures in my python2.7 test suite and am either having a very bad night or finding actual issues with python2.7 conda-forge :)

Consider pinning down matplotlib

It was my own fault, but I just had a class get burned by having matplotlib update to 3.5.1 and MetPy failing via Unidata/MetPy#2179 , how do you folks feel about pinning down matplotlib here to avoid this in the future?

MNT: The metpy recipe has some lint :(

This is the friendly conda-forge-admin automated user.

I've ran the conda-smithy linter and found some lint in this feedstock ๐Ÿ˜ข.

Here is what I have got:

  • Selectors are suggested to take a <two spaces>#<one space>[<expression>] form.

Thanks!

metpy may be skip py36

Because of the dependency to xarray also metpy may be should skip py36, see
conda-forge/xarray-feedstock#65

We had an all platforms this problem with py36 on conda-forge building


+ mswms -h
Traceback (most recent call last):
  File "/home/conda/feedstock_root/build_artifacts/mss_1627921693786/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pl/bin/mswms", line 7, in <module>
    from mslib.mswms.mswms import main
  File "/home/conda/feedstock_root/build_artifacts/mss_1627921693786/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pl/lib/python3.6/site-packages/mslib/mswms/mswms.py", line 33, in <module>
    from mslib.mswms.wms import mss_wms_settings, server
  File "/home/conda/feedstock_root/build_artifacts/mss_1627921693786/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pl/lib/python3.6/site-packages/mslib/mswms/wms.py", line 63, in <module>
    from mslib.utils import conditional_decorator
  File "/home/conda/feedstock_root/build_artifacts/mss_1627921693786/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pl/lib/python3.6/site-packages/mslib/utils.py", line 36, in <module>
    from metpy.units import units
  File "/home/conda/feedstock_root/build_artifacts/mss_1627921693786/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pl/lib/python3.6/site-packages/metpy/__init__.py", line 35, in <module>
    from .xarray import *  # noqa: F401, F403, E402
  File "/home/conda/feedstock_root/build_artifacts/mss_1627921693786/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pl/lib/python3.6/site-packages/metpy/xarray.py", line 28, in <module>
    import xarray as xr
  File "/home/conda/feedstock_root/build_artifacts/mss_1627921693786/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pl/lib/python3.6/site-packages/xarray/__init__.py", line 3, in <module>
    from . import testing, tutorial, ufuncs
  File "/home/conda/feedstock_root/build_artifacts/mss_1627921693786/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pl/lib/python3.6/site-packages/xarray/testing.py", line 9, in <module>
    from xarray.core.dataarray import DataArray
  File "/home/conda/feedstock_root/build_artifacts/mss_1627921693786/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pl/lib/python3.6/site-packages/xarray/core/dataarray.py", line 24, in <module>
    from . import (
  File "/home/conda/feedstock_root/build_artifacts/mss_1627921693786/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pl/lib/python3.6/site-packages/xarray/core/computation.py", line 4
    from __future__ import annotations
    ^
SyntaxError: future feature annotations is not defined
Tests failed for mss-5.0.0-py36h5fab9bb_0.tar.bz2 - moving package to /home/conda/feedstock_root/build_artifacts/broken
WARNING:conda_build.build:Tests failed for mss-5.0.0-py36h5fab9bb_0.tar.bz2 - moving package to /home/conda/feedstock_root/build_artifacts/broken
WARNING conda_build.build:tests_failed(2955): Tests failed for mss-5.0.0-py36h5fab9bb_0.tar.bz2 - moving package to /home/conda/feedstock_root/build_artifacts/broken

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.