summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorvvolkl <valentin.volkl@cern.ch>2020-12-07 16:29:10 +0100
committerGitHub <noreply@github.com>2020-12-07 09:29:10 -0600
commited258ca9e9d4f88ed36cd87b21ae24091f516fc7 (patch)
tree51b02d40c55a99f0d452e9e1c69037f8c3b3ca20 /var
parentb4ed4fb226f3a43ba2b021ffea2308d864f19866 (diff)
downloadspack-ed258ca9e9d4f88ed36cd87b21ae24091f516fc7.tar.gz
spack-ed258ca9e9d4f88ed36cd87b21ae24091f516fc7.tar.bz2
spack-ed258ca9e9d4f88ed36cd87b21ae24091f516fc7.tar.xz
spack-ed258ca9e9d4f88ed36cd87b21ae24091f516fc7.zip
Add "spack versions --new" flag to only show new versions (#20030)
* [cmd versions] add spack versions --new flag to only fetch new versions format [cmd versions] rename --latest to --newest and add --remote-only [cmd versions] add tests for --remote-only and --new format [cmd versions] update shell tab completion [cmd versions] remove test for --remote-only --new which gives empty output [cmd versions] final rename format * add brillig mock package * add test for spack versions --new * [brillig] format * [versions] increase test coverage * Update lib/spack/spack/cmd/versions.py Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com> * Update lib/spack/spack/cmd/versions.py Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com> Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin.mock/packages/brillig/package.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/var/spack/repos/builtin.mock/packages/brillig/package.py b/var/spack/repos/builtin.mock/packages/brillig/package.py
new file mode 100644
index 0000000000..497e23d795
--- /dev/null
+++ b/var/spack/repos/builtin.mock/packages/brillig/package.py
@@ -0,0 +1,17 @@
+# 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)
+
+
+from spack import *
+
+
+class Brillig(Package):
+ """ Mock package to test the spack versions command."""
+
+ homepage = "https://www.example.com"
+ url = "https://github.com/vvolkl/brillig/archive/v2.0.0.tar.gz"
+
+ version('2.0.0', sha256='d4bb8f1737d5a7c0321e1675cceccb59dbcb66a94f3a9dd66a37f58bc6df7f15')
+ version('1.0.0', sha256='fcef53f45e82b881af9a6f0530b2732cdaf8c5c60e49b27671594ea658bfe315')