beam-tracing / Scotty

Beam tracing code for diagnostics
https://scotty.readthedocs.io/en/latest/
GNU General Public License v3.0
7 stars 4 forks source link

Automatically get version from git tags #46

Closed ZedThree closed 2 years ago

ZedThree commented 2 years ago

(built on top of #45)

@valerian-chen I've tagged some commits that I think correspond to rough versions: https://github.com/valerian-chen/Scotty/tags Let me know if you want to change these.

Scotty will now print the version:

Beam trace me up, Scotty!
scotty version 2.3.0

If not exactly on a release, the version number includes the exact git hash:

Beam trace me up, Scotty!
scotty version 2.3.1.dev2+g9c03df0

See setuptools_scm for details of the version numbering scheme.

There is an important caveat to this: when developing locally, the version number is only updated when you run pip install, even with editable installs! Basically, this means when doing production work, you should make sure you pip install scotty.