ReliaSolve / Molprobity2

0 stars 0 forks source link

Make a way to show the version in SuiteName, perhaps --version #97

Closed russell-taylor closed 3 years ago

russell-taylor commented 3 years ago

There is a showHelpText() function defined in suitename.py but it is never called.

We should make a major version bump from the last C version and call it version .1.0.date

russell-taylor commented 3 years ago

Fix the help text so that it includes the showHelpText() function information

russell-taylor commented 3 years ago

Update from Billy Poon on showing Program Template version info:

I added a function that returns the version of cctbx that you're using (libtbx.version.get_version). It is incorporated into the ProgramTemplate so that if you use the "--version" flag on the command-line, the version is returned. The release conda packages will return the release version and your development version will be based on the date and hash of the latest commit.

You can override the cctbx version in your program by defining the "version" class variable of the ProgramTemplate. This way, you can manage the version of your program separately.

You can also redefine the function if you subclass the ProgramTemplate. I do this for the Phenix ProgramTemplate class so that those tools will return the Phenix version.