SHADE-AI / daidepp

Repo to store universal communication specification
2 stars 7 forks source link

chore(versioning): adding __version__ attribute to top level module w… #67

Closed bpshaver closed 1 year ago

bpshaver commented 1 year ago

…hich reads from distribution package metadata

bpshaver commented 1 year ago

@mjspeck I don't know if there is a reason not to use importlib.metadata.version to get the version string and set it to __version__. That function might fail if you were attempting to import the daidepp module without having installed the package. That is, if you went to src and wanted Python to recognize daidepp as a module available in the working directory. But the decision to put daidepp under src is usually done to stop people from doing that, I think.