summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew W Elble <aweits@rit.edu>2020-09-12 16:37:34 -0400
committerGitHub <noreply@github.com>2020-09-12 15:37:34 -0500
commita734dabf2b69d47650b57fbde7b573d7aed31c1e (patch)
tree9029ff26881080b9473317b7f7b504e4338fc447
parent85f7a8bf71a01b1337492edd24250baad42f3ea9 (diff)
downloadspack-a734dabf2b69d47650b57fbde7b573d7aed31c1e.tar.gz
spack-a734dabf2b69d47650b57fbde7b573d7aed31c1e.tar.bz2
spack-a734dabf2b69d47650b57fbde7b573d7aed31c1e.tar.xz
spack-a734dabf2b69d47650b57fbde7b573d7aed31c1e.zip
new package: py-reproject (#18641)
* new package: py-reproject add setuptools build/run dep to py-astropy-healpix * fixes * fix
-rw-r--r--var/spack/repos/builtin/packages/py-astropy-healpix/package.py1
-rw-r--r--var/spack/repos/builtin/packages/py-extension-helpers/package.py19
-rw-r--r--var/spack/repos/builtin/packages/py-reproject/package.py32
3 files changed, 52 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-astropy-healpix/package.py b/var/spack/repos/builtin/packages/py-astropy-healpix/package.py
index 8dee2f92be..b83191ada3 100644
--- a/var/spack/repos/builtin/packages/py-astropy-healpix/package.py
+++ b/var/spack/repos/builtin/packages/py-astropy-healpix/package.py
@@ -16,6 +16,7 @@ class PyAstropyHealpix(PythonPackage):
version('0.5', sha256='5ae15da796a840f221fb83e25de791e827b6921bc21a365d99bc1a59c7c0cdad')
+ depends_on('py-setuptools', type=('build', 'run'))
depends_on('python@3.6:', type=('build', 'run'))
depends_on('py-astropy@2.0:', type=('build', 'run'))
depends_on('py-numpy@1.11:', type=('build', 'run'))
diff --git a/var/spack/repos/builtin/packages/py-extension-helpers/package.py b/var/spack/repos/builtin/packages/py-extension-helpers/package.py
new file mode 100644
index 0000000000..698af27a49
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-extension-helpers/package.py
@@ -0,0 +1,19 @@
+# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+
+class PyExtensionHelpers(PythonPackage):
+ """The extension-helpers package includes convenience helpers to
+ assist with building Python packages with compiled C/Cython
+ extensions. It is developed by the Astropy project but is intended
+ to be general and usable by any Python package."""
+
+ homepage = 'https://github.com/astropy/astropy-helpers'
+ url = 'https://pypi.io/packages/source/e/extension-helpers/extension-helpers-0.1.tar.gz'
+
+ version('0.1', sha256='ac8a6fe91c6d98986a51a9f08ca0c7945f8fd70d95b662ced4040ae5eb973882')
+
+ depends_on('python@3.6:', type=('build', 'run'))
+ depends_on('py-setuptools@30.3:', type='build')
diff --git a/var/spack/repos/builtin/packages/py-reproject/package.py b/var/spack/repos/builtin/packages/py-reproject/package.py
new file mode 100644
index 0000000000..3b73633641
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-reproject/package.py
@@ -0,0 +1,32 @@
+# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+
+class PyReproject(PythonPackage):
+ """The reproject package is a Python package to reproject
+ astronomical images using various techniques via a uniform
+ interface. By reprojection, we mean the re-gridding of images from
+ one world coordinate system to another (for example changing the
+ pixel resolution, orientation, coordinate system). Currently, we
+ have implemented reprojection of celestial images by interpolation
+ (like SWARP), as well as by finding the exact overlap between
+ pixels on the celestial sphere (like Montage). It can also
+ reproject to/from HEALPIX projections by relying on the
+ astropy-healpix package."""
+
+ homepage = 'https://reproject.readthedocs.io/'
+ url = 'https://pypi.io/packages/source/r/reproject/reproject-0.7.1.tar.gz'
+
+ version('0.7.1', sha256='95c0fa49e6b4e36455b91fa09ad1b71b230c990ad91d948af67ea3509a1a4ccb')
+
+ depends_on('python@3.6:', type=('build', 'run'))
+ depends_on('py-setuptools', type='build')
+ depends_on('py-setuptools-scm', type='build')
+ depends_on('py-cython', type='build')
+ depends_on('py-extension-helpers', type='build')
+ depends_on('py-numpy@1.13:', type=('build', 'run'))
+ depends_on('py-astropy@3.2:', type=('build', 'run'))
+ depends_on('py-scipy@1.1:', type=('build', 'run'))
+ depends_on('py-astropy-healpix@0.2:', type=('build', 'run'))