Hi,
I am trying to make a project to be setup.cfg project. In the old version, we letted the setup.py read a version number from a file inside the package.
def get_version() -> dict:
version = {}
with open(Path(__file__).parent / 'sciunit' / 'version.py') as f:
exec(f.read(), version)
return version['__version__']
setup(
...
version=get_version(),
...
)
I am wondering how can I achieve the same thing in setup.cfg file? Is it possible?
Hi,
I am trying to make a project to be
setup.cfgproject. In the old version, we letted thesetup.pyread a version number from a file inside the package.I am wondering how can I achieve the same thing in setup.cfg file? Is it possible?