spack/lib/spack
Harmen Stoppels 8f5b9a89fb
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>
2022-03-20 22:37:55 -06:00
..
docs major.minor.micro.dev0 Spack version (#25267) 2022-03-20 22:37:55 -06:00
env Adding basic Windows features (#21259) 2022-03-17 09:01:01 -07:00
external Windows Support: Testing Suite integration 2022-03-17 09:01:01 -07:00
llnl Windows Support: Testing Suite integration 2022-03-17 09:01:01 -07:00
spack major.minor.micro.dev0 Spack version (#25267) 2022-03-20 22:37:55 -06:00