talkiq / gcloud-aio

(Asyncio OR Threadsafe) Google Cloud Client Library for Python
https://talkiq.github.io/gcloud-aio
276 stars 91 forks source link

refactor: migrate to PEP 420 namespace packages #626

Closed TheKevJames closed 1 year ago

TheKevJames commented 1 year ago

Summary

Finally upgrade to PEP420 namespace packages and remove pkg_resources. Uses importlib-metadata as a py37 backport stepping-stone.

TheKevJames commented 1 year ago

@leanaha when I opened this PR, py3.7 was still a non-EOL'd python version; if I'd have had the time to finish it up then, I'd have definitely wanted to leave py3.7 support in -- given this is an OSS library, it's worth supporting additional use-cases and dependencies that we ourselves don't rely on, where it's not a major problem.

That said, given I'm only coming back to this now and py3.7 is EOL... yeah, it'd probably be worth rebasing this after nuking py3.7, as it'll be simpler and we want to drop support for outdated pythons anyway.