airbyte icon indicating copy to clipboard operation
airbyte copied to clipboard

Expose cdk version as airbyte_cdk.__version__

Open girarda opened this issue 9 months ago • 1 comments

What

Expose the CDK version as __version__.

Example usage:

python
Python 3.9.18 (main, Aug 24 2023, 21:19:58)
[Clang 14.0.3 (clang-1403.0.22.14.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import airbyte_cdk
>>> airbyte_cdk.__version__
'0.83.1'

If testing locally, you might have to delete your local airbyte_cdk.egg-info (rm -r airbyte_cdk.egg-info) because importlib uses that artefact.

How

importlib.metadata.version("airbyte_cdk")

User Impact

Users will be able to tell which version of the CDK they use from their Python environment

Can this PR be safely reverted and rolled back?

  • [X] YES 💚

girarda avatar Apr 29 '24 23:04 girarda

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Apr 29, 2024 11:29pm

vercel[bot] avatar Apr 29 '24 23:04 vercel[bot]