Add version information more generically

Currently the version information is hardcoded, but we want to set it only via the pyproject.toml (until poetry supports git tags: https://github.com/python-poetry/poetry/issues/3670).