diff options
author | Massimiliano Culpo <massimiliano.culpo@googlemail.com> | 2017-09-06 03:44:42 +0200 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2017-09-05 15:44:42 -1000 |
commit | d1a5857a03dc2e21f5514fa2bcfafe0ec0210f12 (patch) | |
tree | 9a43088f481c70279da60d807326eac7f6dbc9b8 /pytest.ini | |
parent | feefdedadf224315d69ef2f6da1fafd6338bba5a (diff) | |
download | spack-d1a5857a03dc2e21f5514fa2bcfafe0ec0210f12.tar.gz spack-d1a5857a03dc2e21f5514fa2bcfafe0ec0210f12.tar.bz2 spack-d1a5857a03dc2e21f5514fa2bcfafe0ec0210f12.tar.xz spack-d1a5857a03dc2e21f5514fa2bcfafe0ec0210f12.zip |
Added support for querying by tags (#4786)
* Added support to query packages by tags.
- The querying commands `spack list`, `spack find` and `spack info` have
been modified to support querying by tags. Tests have been added to
check that the feature is working correctly under what should be the
most frequent use cases.
* Refactored Repo class to make insertion of new file caches easier.
- Added the class FastPackageChecker. This class is a Mapping from
package names to stat info, that gets memoized for faster access.
- Extracted the creation of a ProviderIndex to its own factory function.
* Added a cache file for tags.
- Following what was done for providers, a TagIndex class has been added.
This class can serialize and deserialize objects from json. Repo and
RepoPath have a new method 'packages_with_tags', that uses the TagIndex
to compute a list of package names that have all the tags passed as
arguments.
On Ubuntu 14.04 the effect if the cache reduces the time for spack list
from ~3sec. to ~0.3sec. after the cache has been built.
* Fixed colorization of `spack info`
Diffstat (limited to 'pytest.ini')
0 files changed, 0 insertions, 0 deletions