diff options
author | Harmen Stoppels <harmenstoppels@gmail.com> | 2022-03-21 05:37:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-20 22:37:55 -0600 |
commit | 8f5b9a89fbe3f10ac2f761e580060a8bc2b33098 (patch) | |
tree | 1e341bf0ec9beec1ef0c25b26e7d1974e37d6ea3 /.github/workflows/setup_git.sh | |
parent | 6d1da528f77c13108d541c8e8232d8c523f96c92 (diff) | |
download | spack-8f5b9a89fbe3f10ac2f761e580060a8bc2b33098.tar.gz spack-8f5b9a89fbe3f10ac2f761e580060a8bc2b33098.tar.bz2 spack-8f5b9a89fbe3f10ac2f761e580060a8bc2b33098.tar.xz spack-8f5b9a89fbe3f10ac2f761e580060a8bc2b33098.zip |
major.minor.micro.dev0 Spack version (#25267)
When you install Spack from a tarball, it will always show an exact
version for Spack itself, even when you don't download a tagged commit:
```
$ wget -q https://github.com/spack/spack/archive/refs/heads/develop.tar.gz
$ tar -xf develop.tar.gz
$ ./spack-develop/bin/spack --version
0.16.2
```
This PR sets the Spack version to `0.18.0.dev0` on develop, following [PEP440](https://github.com/spack/spack/pull/25267#issuecomment-896340234) as
suggested by Adam Stewart.
```
spack (fix/set-dev-version)$ spack --version
0.18.0.dev0 (git 0.17.1-1526-e270464ae0)
spack (fix/set-dev-version)$ mv .git .git_
spack $ spack --version
0.18.0.dev0
```
- [x] Update the release guide
- [x] Add __version__ to spack's __init__.py
- [x] Use PEP 440 canonical version strings
- [x] Make spack --version output [actual version] (git version)
Co-authored-by: Todd Gamblin <tgamblin@llnl.gov>
Diffstat (limited to '.github/workflows/setup_git.sh')
0 files changed, 0 insertions, 0 deletions