Skip to content

cf-xarray/data folder no longer packaged in wheel #415

@Zeitsperre

Description

@Zeitsperre

Hi there,

I noticed in some of my builds that cf-xarray was failing due to a data file that is now no longer present in the wheel: data/cf-standard-name-table.xml. Could it be that the file is being ignored in the Manifest?

Stack trace:

self = <xml.etree.ElementTree.ElementTree object at 0x7fb17b7dd910>
source = '/home/runner/work/RavenPy/RavenPy/.tox/py39-numpy/lib/python3.9/site-packages/cf_xarray/data/cf-standard-name-table.xml'
parser = None

    def parse(self, source, parser=None):
        """Load external XML document into element tree.
    
        *source* is a file name or file object, *parser* is an optional parser
        instance that defaults to XMLParser.
    
        ParseError is raised if the parser fails to parse the document.
    
        Returns the root element of the given source document.
    
        """
        close_source = False
        if not hasattr(source, "read"):
>           source = open(source, "rb")
E           FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/work/RavenPy/RavenPy/.tox/py39-numpy/lib/python3.9/site-packages/cf_xarray/data/cf-standard-name-table.xml'

/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/xml/etree/ElementTree.py:569: FileNotFoundError

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions