damar-wicaksono / uqtestfuns

A Python3 library of test functions from the uncertainty quantification community with a common interface for validation and benchmarking purposes.
https://uqtestfuns.readthedocs.io/en/latest/
MIT License
8 stars 0 forks source link

Single-sourcing the package version and deprecated pkg_resources #223

Closed damar-wicaksono closed 1 year ago

damar-wicaksono commented 1 year ago

Currently, the version of the package is single-sourced using pkg_resources mechanism in the top-level __init__.py module. Apparently, however, pkg_resources has been deprecated as an API.

A best practice to single-source the package version must, therefore, be adopted.

damar-wicaksono commented 1 year ago

This issue has been resolved by PR #239.

The function version() from importlib.metadata is used to fetch the version value from setup.cfg at runtime.