You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As an enterprise user, it would be nice to see the version of public SDV that is being used as well as the enterprise version.
The actual functionality for this will be added in SDV enterprise, however, this library will need to know to add that functionality to the proper name space.
Expected behavior
In this file, add and call a function that uses an entry point called sdv_versioning to add the version module to the namespace.
Add any necessary logging and error checking
Be careful not to override anything in the globals that is needed
Additional context
The code can look something like the following:
def_add_versioning():
forentry_pointinpkg_resources.iter_entry_points('sdv_version'):
try:
version_module=entry_point.load()
exceptException:
message=f'Failed to load "{entry_point.name}" from "{entry_point.module_name}". 'continueif'version'notinglobals():
globals()['version'] =version_module_add_versioning()
In this case, the loaded entry point should return the module itself, so we can just add it directly to the globals() under the name version. This should enable the following:
>>>sdv.version.public0.18.0
The text was updated successfully, but these errors were encountered:
Problem Description
As an enterprise user, it would be nice to see the version of public SDV that is being used as well as the enterprise version.
The actual functionality for this will be added in SDV enterprise, however, this library will need to know to add that functionality to the proper name space.
Expected behavior
sdv_versioning
to add theversion
module to the namespace.Additional context
The code can look something like the following:
In this case, the loaded entry point should return the module itself, so we can just add it directly to the
globals()
under the nameversion
. This should enable the following:The text was updated successfully, but these errors were encountered: