gouline / dbt-metabase

dbt + Metabase integration
https://pypi.org/project/dbt-metabase/
MIT License
461 stars 71 forks source link

Restore Python 3.6+ compatibility #55

Closed fernandobrito closed 3 years ago

fernandobrito commented 3 years ago

Resolves #52

fernandobrito commented 3 years ago

I need some help with this one. I can't build the project on Python 3.6.

image

It seems the setuptools bundled with this version is too old for setuptools_scm, and you can't add setuptools as a setup_requires. One of the suggestions from the error message is to explicitly install the setup tools (like I am doing in this PR in the GitHub Action to test it out), but what are your thoughts on that?

fernandobrito commented 3 years ago

Another place where I need feedback: the package version during runtime magic that you use from https://pypi.org/project/setuptools-scm/#retrieving-package-version-at-runtime requires importlib.metadata which is only available on Python 3.8+. The page points to a library for backward compatibility. Do we want to use it?

gouline commented 3 years ago

I converted this to draft for you, click "Ready for review" when it's no longer WIP.

fernandobrito commented 3 years ago

Thanks! Ready to be reviewed now.

But I'm more than open to suggestions on different approaches to solve those 3 issues.

Also, is it fine if I "Squash and merge" once it's time to merge? The commit history in the branch is a bit messy 😄