Upgrade python version and tool versions + remove deprecated features #46
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Upgrades
This updates the minimum supported version of python to 3.10 as 3.9 is end-of-life in October. With the upgrade, we now have access to pipe unions without having to import them from the
__future__. I removed the__future__annotations imports which required a little reorganizing of imports and also quoting some type hints.Going from 3.9 -> 3.10 as the target version for ruff and mypy had fewer changes than expected but those have been made here.
I adjusted the minimum required versions of tqdm and duckdb with a better idea as to what a minimum version should be.
Feature removals
Removing psycopg2 in favor of psycopg3 requires a little more setup documentation. There were also changes in tests necessary because of the return type mapping is different.
Excel export has been removed, that also allowed removing the dependency.
sqlite3 doesn't have json support which I will need to implement the faster transformation logic in 4.0 so it has also been removed. It ships with python so there wasn't a dependency to remove. There's probably some goofy logic now but the database handing code is going to be pretty heavily refactored