innobi / pantab

Read/Write pandas DataFrames with Tableau Hyper Extracts
BSD 3-Clause "New" or "Revised" License
110 stars 44 forks source link

Set __version__ from importlib.metadata #377

Open WillAyd opened 3 days ago

WillAyd commented 3 days ago

I think it would help simplify things if we set the internal version attribute to match what importlib.metadata for the package lists. That way, we don't need to keep repeating the version in a few places, and can leave it to the backend to properly manage.

For more information, see https://packaging.python.org/en/latest/discussions/single-source-version/#single-source-version

jorwoods commented 2 days ago

In the past, I've had good success with versioneer to fetch version info from the git tag and reference that throughout the project. Does that seem like a workable solution for you?

WillAyd commented 2 days ago

I would like to avoid versioneer and any associated tools. They work well and were designed for use with setuptools, but don't fit the paradigms that build backends like CMake or meson-Python use