Skip to content

Conversation

@kurtmckee
Copy link
Member

@kurtmckee kurtmckee commented May 20, 2025

Breaking Changes

  • The SDK version is no longer available in globus_sdk.version.__version__.

    Packages that want to query the SDK version must use importlib.metadata:

    import importlib.metadata
    
    GLOBUS_SDK_VERSION = importlib.metadata.distribution("globus_sdk").version

This PR aligns the SDK's versioning and documentation with current best practice, which is to use importlib.metadata to query for the installed package version. This technique works universally for all packages and, bonus, avoids executing package code and whatever side effects may be associated with that execution.

Copy link
Member

@sirosen sirosen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

♥️ Thank you for this! It's been on my to-do list for ages; let's get it done

@kurtmckee kurtmckee merged commit a4a82a7 into 4.x-dev May 20, 2025
8 checks passed
@kurtmckee kurtmckee deleted the rm-executable-version-code branch May 20, 2025 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants