DataBiosphere / toil

A scalable, efficient, cross-platform (Linux/macOS) and easy-to-use workflow engine in pure Python.
http://toil.ucsc-cgl.org/.
Apache License 2.0
894 stars 241 forks source link

Print hash with --version when installed as development #4954

Closed stxue1 closed 3 months ago

stxue1 commented 4 months ago

It got annoying trying to figure out whether my installed Toil on the cluster was up to date with my commits, so this makes development builds print the hash.

Changelog Entry

To be copied to the draft changelog by merger:

Reviewer Checklist

Merger Checklist

stxue1 commented 4 months ago

It would be good to post what the version strings actually look like before and after.

Before:

toil --version
7.1.0a1

After:

toil --version
7.1.0a1-ccf57e6071e32675daabdcbacb91988e871745a9

I can add it to the changelog note too