summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorElizabeth Fischer <rpf2116@columbia.edu>2018-03-06 12:21:34 -0500
committerMassimiliano Culpo <massimiliano.culpo@gmail.com>2018-03-06 18:21:34 +0100
commit02bed55007361b11b7f732a8d0744532e9067513 (patch)
tree8c46b4d84b27217f1cb19435745cf9ea36e1c692 /var
parent45e78a42cf11719843d0fe1cfc5caa194653b9d6 (diff)
downloadspack-02bed55007361b11b7f732a8d0744532e9067513.tar.gz
spack-02bed55007361b11b7f732a8d0744532e9067513.tar.bz2
spack-02bed55007361b11b7f732a8d0744532e9067513.tar.xz
spack-02bed55007361b11b7f732a8d0744532e9067513.zip
py-rasterio: Added with dependencies. (#7156)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-affine/package.py36
-rw-r--r--var/spack/repos/builtin/packages/py-cligj/package.py38
-rw-r--r--var/spack/repos/builtin/packages/py-rasterio/package.py60
-rw-r--r--var/spack/repos/builtin/packages/py-snuggs/package.py37
4 files changed, 171 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-affine/package.py b/var/spack/repos/builtin/packages/py-affine/package.py
new file mode 100644
index 0000000000..d70640695c
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-affine/package.py
@@ -0,0 +1,36 @@
+##############################################################################
+# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
+# Produced at the Lawrence Livermore National Laboratory.
+#
+# This file is part of Spack.
+# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
+# LLNL-CODE-647188
+#
+# For details, see https://github.com/spack/spack
+# Please also see the NOTICE and LICENSE files for our notice and the LGPL.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License (as
+# published by the Free Software Foundation) version 2.1, February 1999.
+#
+# 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 terms and
+# conditions of the GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+##############################################################################
+from spack import *
+
+
+class PyAffine(PythonPackage):
+ """Matrices describing affine transformation of the plane."""
+
+ homepage = "https://github.com/sgillies/affine"
+ url = "https://github.com/sgillies/affine/archive/2.1.0.zip"
+
+ depends_on('py-setuptools', type='build')
+
+ version('2.1.0', '99cf61c3ef484f93da9dc062dfbce4b5')
diff --git a/var/spack/repos/builtin/packages/py-cligj/package.py b/var/spack/repos/builtin/packages/py-cligj/package.py
new file mode 100644
index 0000000000..5ce8ad7b13
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-cligj/package.py
@@ -0,0 +1,38 @@
+##############################################################################
+# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
+# Produced at the Lawrence Livermore National Laboratory.
+#
+# This file is part of Spack.
+# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
+# LLNL-CODE-647188
+#
+# For details, see https://github.com/spack/spack
+# Please also see the NOTICE and LICENSE files for our notice and the LGPL.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License (as
+# published by the Free Software Foundation) version 2.1, February 1999.
+#
+# 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 terms and
+# conditions of the GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+##############################################################################
+from spack import *
+
+
+class PyCligj(PythonPackage):
+ """Click-based argument and option decorators for Python GIS command
+ line programs"""
+
+ homepage = "https://github.com/mapbox/cligj"
+ url = "https://github.com/mapbox/cligj/archive/0.4.0.zip"
+
+ version('0.4.0', 'fe5376068b84c5ed01e2d3adf553e226')
+
+ depends_on('py-setuptools', type='build')
+ depends_on('py-click', type=('build', 'run'))
diff --git a/var/spack/repos/builtin/packages/py-rasterio/package.py b/var/spack/repos/builtin/packages/py-rasterio/package.py
new file mode 100644
index 0000000000..cc5fc8179a
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-rasterio/package.py
@@ -0,0 +1,60 @@
+##############################################################################
+# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
+# Produced at the Lawrence Livermore National Laboratory.
+#
+# This file is part of Spack.
+# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
+# LLNL-CODE-647188
+#
+# For details, see https://github.com/spack/spack
+# Please also see the NOTICE and LICENSE files for our notice and the LGPL.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License (as
+# published by the Free Software Foundation) version 2.1, February 1999.
+#
+# 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 terms and
+# conditions of the GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+##############################################################################
+from spack import *
+
+
+class PyRasterio(PythonPackage):
+ """Rasterio reads and writes geospatial raster data.
+ Geographic information systems use GeoTIFF and other formats to
+ organize and store gridded, or raster, datasets. Rasterio reads
+ and writes these formats and provides a Python API based on N-D
+ arrays."""
+
+ homepage = "https://github.com/mapbox/rasterio"
+ url = "https://github.com/mapbox/rasterio/archive/1.0a12.zip"
+
+ version('1.0a12', 'e078ca02b3513b65a9be5bb3f528b4da')
+
+ variant('aws', default=False,
+ description='Enable testing with Amazon Web Services')
+
+ depends_on('py-setuptools', type='build')
+ depends_on('py-cython', type='build')
+
+ # Only use py-enum34 with Python2
+ # depends_on('py-enum34', type='run', when='^python@:2.7')
+
+ depends_on('py-attrs', type=('build', 'run'))
+ depends_on('py-numpy', type=('build', 'run'))
+ depends_on('py-cligj', type=('build', 'run'))
+ depends_on('py-click', type=('build', 'run'))
+ depends_on('py-affine', type=('build', 'run'))
+ depends_on('py-snuggs', type=('build', 'run'))
+ depends_on('gdal')
+ depends_on('jpeg')
+
+ # (Commented out for now: py-boto3 is not yet a Spack package)
+ # Some (optional) tests use py-boto3 for Amazon Web Services
+ # depends_on('py-boto3', type=('build', 'run'), when='+aws')
diff --git a/var/spack/repos/builtin/packages/py-snuggs/package.py b/var/spack/repos/builtin/packages/py-snuggs/package.py
new file mode 100644
index 0000000000..c489d830b7
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-snuggs/package.py
@@ -0,0 +1,37 @@
+##############################################################################
+# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
+# Produced at the Lawrence Livermore National Laboratory.
+#
+# This file is part of Spack.
+# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
+# LLNL-CODE-647188
+#
+# For details, see https://github.com/spack/spack
+# Please also see the NOTICE and LICENSE files for our notice and the LGPL.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License (as
+# published by the Free Software Foundation) version 2.1, February 1999.
+#
+# 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 terms and
+# conditions of the GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+##############################################################################
+from spack import *
+
+
+class PySnuggs(PythonPackage):
+ """Snuggs are s-expressions for Numpy"""
+
+ homepage = "https://github.com/mapbox/snuggs"""
+ url = "https://github.com/mapbox/snuggs/archive/1.4.1.zip"
+
+ version('1.4.1', 'bfc4058c32faa4ef76ab7946755557cc')
+
+ depends_on('py-numpy', type=('build', 'run'))
+ depends_on('py-click', type=('build', 'run'))