# pymagglobal # pymagglobal is a python interface for global geomagnetic field models. # # SPDX-FileCopyrightText: 2020 Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences, Germany (https://www.gfz-potsdam.de/) # # SPDX-License-Identifier: CC0-1.0 # SPDX-License-Identifier: GPL-3.0-or-later # # This Program was developed within the context of the following # publicly funded projects or measures: # - DFG (German Research Foundation), grant 388291411 # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, Version 3 or later. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You can find a copy of the license in the LICENSES folder. # If not, see . package: name: pyfield version: 0.1.3i # Does not math the tarball's version # FIXME "0.1.2 interim-2" is invalid as a version string # TODO Use templating with jinja to grab the version number e.g. #version: {{ load_setup_py_data().version }} for the latest version # or as an alternative for specific version #{% set version = "0.1.3i" %} #version: {{ version }} # and also use it for the download #url: .../fieldtools-{{ version }}.tar.gz source: # Get a tarball from GFZ data services url: ftp://datapub.gfz-potsdam.de/download/10.5880.FIDGEO.2019.033/fieldtools-i2.tar.gz sha256: b297d853f30abdca968af2e3f52a5f62f0991485b23590897b7149c7171f3127 build: # Not quite sure about $PYTHON; Docs are just using bare 'python' script: - export CPPFLAGS='-Wno-deprecated' - $PYTHON setup.py build - $PYTHON setup.py install requirements: build: - {{ compiler('cxx') }}>=9.3 # XXX Versioning scheme only compatible with GCC - swig - numpy # setup.py relies on numpy - pkg-config - eigen host: - python - setuptools - numpy - eigen # Not sure if required run: - python - numpy - eigen # Not sure if required test: commands: - $PYTHON -c 'import pyfield; import doctest; doctest.testmod(pyfield)' - $PYTHON -c 'import pyfieldcore; import doctest; doctest.testmod(pyfieldcore)' imports: - pyfield about: license: GPLv3 license_file: LICENSE