spack/var/spack/repos/builtin/packages/ecp-proxy-apps/package.py
Tom Scogland 18c2f1a57a
refactor: packages import spack.package explicitly (#30404)
Explicitly import package utilities in all packages, and corresponding fallout.

This includes:

* rename `spack.package` to `spack.package_base`
* rename `spack.pkgkit` to `spack.package`
* update all packages in builtin, builtin_mock and tutorials to include `from spack.package import *`
* update spack style
  * ensure packages include the import
  * automatically add the new import and remove any/all imports of `spack` and `spack.pkgkit`
    from packages when using `--fix`
  * add support for type-checking packages with mypy when SPACK_MYPY_CHECK_PACKAGES
    is set in the environment
* fix all type checking errors in packages in spack upstream
* update spack create to include the new imports
* update spack repo to inject the new import, injection persists to allow for a deprecation period

Original message below:
 
As requested @adamjstewart, update all packages to use pkgkit.  I ended up using isort to do this,
so repro is easy:

```console
$ isort -a 'from spack.pkgkit import *' --rm 'spack' ./var/spack/repos/builtin/packages/*/package.py
$ spack style --fix
```

There were several line spacing fixups caused either by space manipulation in isort or by packages
that haven't been touched since we added requirements, but there are no functional changes in here.

* [x] add config to isort to make sure this is maintained going forward
2022-05-28 12:55:44 -04:00

89 lines
2.8 KiB
Python

# Copyright 2013-2022 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)
from spack.package import *
class EcpProxyApps(BundlePackage):
"""This is a collection of packages that represents the official suite of
DOE/ECP proxy applications. This is a Spack bundle package that
installs the ECP proxy application suite.
"""
tags = ['proxy-app', 'ecp-proxy-app']
maintainers = ['rspavel']
homepage = "https://proxyapps.exascaleproject.org"
version('4.0')
version('3.0')
version('2.1')
version('2.0')
version('1.1')
version('1.0')
variant('candle', default=False,
description='Also build CANDLE Benchmarks')
variant('ml', default=False,
description='Also build Machine Learning Suite')
# Added as part of ML Suite with 4.0
depends_on('minigan@1.0.0', when='+ml @4.0:')
depends_on('cradl@master', when='+ml @4.0:')
depends_on('cosmoflow-benchmark@master', when='+ml @4.0:')
depends_on('mlperf-deepcam@master', when='+ml @4.0:')
# Added with release 4.0
depends_on('miniamr@1.6.4', when='@4.0:')
# Added with release 3.0
depends_on('miniamr@1.4.4', when='@3.0:3.1')
depends_on('xsbench@19', when='@3.0:')
depends_on('laghos@3.0', when='@3.0:')
# Added with release 2.1
depends_on('amg@1.2', when='@2.1:')
depends_on('miniamr@1.4.3', when='@2.1')
# Added with release 2.0
depends_on('ember@1.0.0', when='@2.0:')
depends_on('miniqmc@0.4.0', when='@2.0:')
depends_on('minivite@1.0', when='@2.0:')
depends_on('picsarlite@0.1', when='@2.0:')
depends_on('thornado-mini@1.0', when='@2.0:')
depends_on('candle-benchmarks@0.1', when='+candle @2.0:2.1')
depends_on('laghos@2.0', when='@2.0:2.1')
depends_on('macsio@1.1', when='@2.0:')
depends_on('sw4lite@1.1', when='@2.0:')
depends_on('xsbench@18', when='@2.0:2.1')
# Dependencies for version 2.0
depends_on('amg@1.1', when='@2.0')
depends_on('miniamr@1.4.1', when='@2.0:2.1')
# Added with release 1.1
depends_on('examinimd@1.0', when='@1.1:')
depends_on('nekbone@17.0', when='@1.0:')
depends_on('swfft@1.0', when='@1.0:')
# Dependencies for versions 1.0:1.1
depends_on('amg@1.0', when='@1.0:1.1')
depends_on('candle-benchmarks@0.0', when='+candle @1.0:1.1')
depends_on('laghos@1.0', when='@1.0:1.1')
depends_on('macsio@1.0', when='@1.0:1.1')
depends_on('miniamr@1.4.0', when='@1.0:1.1')
depends_on('sw4lite@1.0', when='@1.0:1.1')
depends_on('xsbench@14', when='@1.0:1.1')
# Removed after release 1.1
depends_on('minife@2.1.0', when='@1.0:1.1')
depends_on('minitri@1.0', when='@1.0:1.1')
# Removed after release 1.0
depends_on('comd@1.1', when='@1.0')