astheeggeggs / lshmm

code to run Li and Stephens
MIT License
3 stars 3 forks source link

Module has no __version__ attribute #21

Closed jeromekelleher closed 11 months ago

jeromekelleher commented 1 year ago

It's helpful to set an __version__ attribute so users can programatically see what version they are using.

astheeggeggs commented 11 months ago

What's your preferred way of doing this? Seems like there are a bunch: https://stackoverflow.com/questions/72167802/adding-version-attribute-to-python-module

jeromekelleher commented 11 months ago

It's a mess all right. The way we've settled on for tskit packages is to use setuptools_scm (e.g. in tszip) where possible

https://pypi.org/project/setuptools-scm/