turicas / rows

A common, beautiful interface to tabular data, no matter the format
GNU Lesser General Public License v3.0
869 stars 134 forks source link

setup.py: fix Invalid version number #369

Open terceiro opened 1 year ago

terceiro commented 1 year ago

While trying to build wors with setuptools 66 (e.g. python3 setup.py sdist), the following exception is raised:

pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: '-0.4.2-dev-71afc647-'

setuptools 66 is more strict with version numbers. Since we read the Python code manually to extract the version, we also need to remove the quotes from the string literal representation.