Skip to content

DeprecationWarning: _get_shared_lib_location is deprecated #223

@khrapovs

Description

@khrapovs

Describe the bug

functime/feature_extractors.py:36: DeprecationWarning: `_get_shared_lib_location` is deprecated. It will be removed in the next breaking release. The new `register_plugin_function` function has this functionality built in. Use `from polars.plugins import register_plugin_function` to import that function. Check the user guide for the currently-recommended way to register a plugin: https://docs.pola.rs/user-guide/expressions/plugins
    lib = _get_shared_lib_location(__file__)

To Reproduce

File functime_test.py

from functime.feature_extractors import FeatureExtractor

In terminal:

pytest functime_test.py

Expected behavior

No DeprecationWarning is reported.

Desktop (please complete the following information):

  • MacOSX 14.5
  • Python 3.12.2
  • functime==0.9.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildBuild system and dependenciespolars-pluginsPolars Plugins in Rust

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions