Coder Social home page Coder Social logo

xarray-feedstock's Introduction

About xarray-feedstock

Feedstock license: BSD-3-Clause

Home: https://github.com/pydata/xarray

Package license: Apache-2.0

Summary: N-D labeled arrays and datasets in Python.

Current build status

All platforms:

Current release info

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

Installing xarray

Installing xarray 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, xarray can be installed with conda:

conda install xarray

or with mamba:

mamba install xarray

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

conda search xarray --channel conda-forge

or with mamba:

mamba search xarray --channel conda-forge

Alternatively, mamba repoquery may provide more information:

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

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

# List dependencies of `xarray`:
mamba repoquery depends xarray --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 xarray-feedstock

If you would like to improve the xarray 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/xarray-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

xarray-feedstock's People

Contributors

akrherz avatar andersy005 avatar conda-forge-admin avatar conda-forge-curator[bot] avatar conda-forge-webservices[bot] avatar dcherian avatar dopplershift avatar github-actions[bot] avatar hoechenberger avatar jakirkham avatar jhamman avatar ocefpaf avatar regro-cf-autotick-bot avatar shoyer avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xarray-feedstock's Issues

import tests were never run on 0.9.2 release and would have failed.

The import tests in the xarray 0.9.2 release were not run due to a bug in conda build 2.1.8 (conda/conda-build#1892). Testing the recipe with conda build 2.1.9 finds that the xarray.tests import fails (likely due to pydata/xarray#1353).

$ conda build -c conda-forge .
BUILD START: xarray-0.9.2-py36_0
...
TEST START: /home/jhelmus/anaconda3/conda-bld/linux-64/xarray-0.9.2-py36_0.tar.bz2
...
import: 'xarray'
import: 'xarray.backends'
import: 'xarray.core'
import: 'xarray.tests'
Traceback (most recent call last):
  File "/home/jhelmus/anaconda3/conda-bld/xarray_1491404539188/test_tmp/run_test.py", line 11, in <module>
    import xarray.tests
  File "/home/jhelmus/anaconda3/conda-bld/xarray_1491404539188/_t_env/lib/python3.6/site-packages/xarray/tests/__init__.py", line 118, in <module>
    not pytest.config.getoption("--run-flaky"),
AttributeError: module 'pytest' has no attribute 'config'
TESTS FAILED: xarray-0.9.2-py36_0

I don't believe a new build is required as the package itself should be fine. Rather a quick 0.9.3 release may be required.

Import of xarray conda package fails for 0.21

It appears that the latest xarray conda package (0.21) does not pull in all the necessary dependencies.
One of our conda-forge builds fails when importing xarray:

    import xarray as xr
  File "/home/conda/feedstock_root/build_artifacts/bioimageio.core_1643501164132/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_/lib/python3.10/site-packages/xarray/__init__.py", line 1, in <module>
    from . import testing, tutorial, ufuncs
  File "/home/conda/feedstock_root/build_artifacts/bioimageio.core_1643501164132/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_/lib/python3.10/site-packages/xarray/testing.py", line 8, in <module>
    from xarray.core import duck_array_ops, formatting, utils
  File "/home/conda/feedstock_root/build_artifacts/bioimageio.core_1643501164132/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_/lib/python3.10/site-packages/xarray/core/duck_array_ops.py", line 24, in <module>
    from . import dask_array_compat, dask_array_ops, dtypes, npcompat, nputils
  File "/home/conda/feedstock_root/build_artifacts/bioimageio.core_1643501164132/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_/lib/python3.10/site-packages/xarray/core/dask_array_compat.py", line 4, in <module>
    from packaging.version import Version
ModuleNotFoundError: No module named 'packaging

Pinning xarray to a version <0.21 removes this issue.
See conda-forge/bioimageio.core-feedstock#15 (comment) for more context.

Python 3.4 support

Hey @ocefpaf , thanks for your work on this feedstock. I noticed you removed Python 3.4 support here: 7dfd7a7 even though xarray appears to have support for Python 3.4 . Was there a reason for doing this?

xarray Installing error

From @Yefee on June 22, 2016 3:9

conda info:

            platform : osx-64
        conda version : 4.1.2
  conda-build version : not installed
       python version : 2.7.11.final.0
     requests version : 2.9.1
     root environment : /Users/Yefee/miniconda2  (writable)
  default environment : /Users/Yefee/miniconda2
     envs directories : /Users/Yefee/miniconda2/envs
        package cache : /Users/Yefee/miniconda2/pkgs
         channel URLs : https://conda.anaconda.org/conda-forge/osx-64/
                        https://conda.anaconda.org/conda-forge/noarch/
                        https://repo.continuum.io/pkgs/free/osx-64/
                        https://repo.continuum.io/pkgs/free/noarch/
                        https://repo.continuum.io/pkgs/pro/osx-64/
                        https://repo.continuum.io/pkgs/pro/noarch/
          config file : /Users/Yefee/.condarc
    is foreign system : False

When installing xarray, an error occurs.

Traceback (most recent call last):
  File "/Users/Yefee/miniconda2/bin/conda", line 6, in <module>
    sys.exit(main())
  File "/Users/Yefee/miniconda2/lib/python2.7/site-packages/conda/cli/main.py", line 120, in main
    args_func(args, p)
  File "/Users/Yefee/miniconda2/lib/python2.7/site-packages/conda/cli/main.py", line 127, in args_func
    args.func(args, p)
  File "/Users/Yefee/miniconda2/lib/python2.7/site-packages/conda/cli/main_install.py", line 69, in execute
    install(args, parser, 'install')
  File "/Users/Yefee/miniconda2/lib/python2.7/site-packages/conda/cli/install.py", line 407, in install
    execute_actions(actions, index, verbose=not args.quiet)
  File "/Users/Yefee/miniconda2/lib/python2.7/site-packages/conda/plan.py", line 589, in execute_actions
    inst.execute_instructions(plan, index, verbose)
  File "/Users/Yefee/miniconda2/lib/python2.7/site-packages/conda/instructions.py", line 137, in execute_instructions
    cmd(state, arg)
  File "/Users/Yefee/miniconda2/lib/python2.7/site-packages/conda/instructions.py", line 80, in LINK_CMD
    link(state['prefix'], dist, lt, index=state['index'], shortcuts=shortcuts)
  File "/Users/Yefee/miniconda2/lib/python2.7/site-packages/conda/install.py", line 1083, in link
    _link(src, dst, lt)
  File "/Users/Yefee/miniconda2/lib/python2.7/site-packages/conda/install.py", line 210, in _link
    shutil.copy2(src, dst)
  File "/Users/Yefee/miniconda2/lib/python2.7/shutil.py", line 130, in copy2
    copyfile(src, dst)
  File "/Users/Yefee/miniconda2/lib/python2.7/shutil.py", line 82, in copyfile
    with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: u'/Users/Yefee/miniconda2/pkgs/hdf5-1.8.17-1/bin/activate'

Copied from original issue: conda/conda#2803

xarray 0.19.0 does not import on python3.6 -- SyntaxError: future feature annotations is not defined

Issue: Can't import xarray 0.19.0 on python 3.6


Environment (conda list):
$ conda list
# packages in environment at /opt/miniconda3/envs/py36dev:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       1_gnu    conda-forge
ca-certificates           2021.5.30            ha878542_0    conda-forge
certifi                   2021.5.30        py36h5fab9bb_0    conda-forge
ld_impl_linux-64          2.36.1               hea4e1c9_1    conda-forge
libblas                   3.9.0                9_openblas    conda-forge
libcblas                  3.9.0                9_openblas    conda-forge
libffi                    3.3                  h58526e2_2    conda-forge
libgcc-ng                 11.1.0               hc902ee8_2    conda-forge
libgfortran-ng            11.1.0               h69a702a_0    conda-forge
libgfortran5              11.1.0               h6c583b3_0    conda-forge
libgomp                   11.1.0               hc902ee8_2    conda-forge
liblapack                 3.9.0                9_openblas    conda-forge
libopenblas               0.3.15          pthreads_h8fe5266_1    conda-forge
libstdcxx-ng              11.1.0               h56837e0_2    conda-forge
ncurses                   6.2                  h58526e2_4    conda-forge
numpy                     1.19.5           py36hfc0c790_2    conda-forge
openssl                   1.1.1k               h7f98852_0    conda-forge
pandas                    1.1.5            py36h284efc9_0    conda-forge
pip                       21.2.1             pyhd8ed1ab_0    conda-forge
python                    3.6.13          hffdb5ce_0_cpython    conda-forge
python-dateutil           2.8.2              pyhd8ed1ab_0    conda-forge
python_abi                3.6                     2_cp36m    conda-forge
pytz                      2021.1             pyhd8ed1ab_0    conda-forge
readline                  8.1                  h46c0cb4_0    conda-forge
setuptools                49.6.0           py36h5fab9bb_3    conda-forge
six                       1.16.0             pyh6c4a22f_0    conda-forge
sqlite                    3.36.0               h9cd32fc_0    conda-forge
tk                        8.6.10               h21135ba_1    conda-forge
wheel                     0.36.2             pyhd3deb0d_0    conda-forge
xarray                    0.19.0             pyhd8ed1ab_0    conda-forge
xz                        5.2.5                h516909a_1    conda-forge
zlib                      1.2.11            h516909a_1010    conda-forge


Details about conda and system ( conda info ):
$ conda info
     active environment : py36dev
    active env location : /opt/miniconda3/envs/py36dev
            shell level : 2
       user config file : /home/akrherz/.condarc
 populated config files : /home/akrherz/.condarc
          conda version : 4.10.3
    conda-build version : not installed
         python version : 3.8.10.final.0
       virtual packages : __linux=4.18.0=0
                          __glibc=2.28=0
                          __unix=0=0
                          __archspec=1=x86_64
       base environment : /opt/miniconda3  (writable)
      conda av data dir : /opt/miniconda3/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /opt/miniconda3/pkgs
                          /home/akrherz/.conda/pkgs
       envs directories : /opt/miniconda3/envs
                          /home/akrherz/.conda/envs
               platform : linux-64
             user-agent : conda/4.10.3 requests/2.26.0 CPython/3.8.10 Linux/4.18.0-305.10.2.el8_4.x86_64 rhel/8.4 glibc/2.28
                UID:GID : 43306:101
             netrc file : /home/akrherz/.netrc
           offline mode : False
$ conda create -n py36dev python=3.6 xarray
$ conda activate py36dev
$ python
>>> import xarray
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/miniconda3/envs/py36dev/lib/python3.6/site-packages/xarray/__init__.py", line 3, in <module>
    from . import testing, tutorial, ufuncs
  File "/opt/miniconda3/envs/py36dev/lib/python3.6/site-packages/xarray/testing.py", line 9, in <module>
    from xarray.core.dataarray import DataArray
  File "/opt/miniconda3/envs/py36dev/lib/python3.6/site-packages/xarray/core/dataarray.py", line 24, in <module>
    from . import (
  File "/opt/miniconda3/envs/py36dev/lib/python3.6/site-packages/xarray/core/computation.py", line 4
    from __future__ import annotations
    ^
SyntaxError: future feature annotations is not defined

Remove optional dependencies

I noticed that a number of optional dependencies (scipy, dask, etc) are being listed in the requirement section of this recipe, can these be removed? Does conda-forge have a recommendation on including optional dependencies in a recipe?

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.