Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate pyvista.utilities #4507

Merged
merged 23 commits into from
Jun 15, 2023
Merged

Deprecate pyvista.utilities #4507

merged 23 commits into from
Jun 15, 2023

Conversation

banesullivan
Copy link
Member

Follow up to #4486 to properly deprecate the pyvista.utilities module and test that this API is still useable (non-breaking) but does issue deprecation warnings.

This whole thing feels hacky, I'm open to suggestions on other ways to do this

@github-actions github-actions bot added the maintenance Low-impact maintenance activity label Jun 9, 2023
@codecov
Copy link

codecov bot commented Jun 9, 2023

Codecov Report

Merging #4507 (9fe8278) into main (782e66c) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #4507      +/-   ##
==========================================
+ Coverage   95.71%   95.75%   +0.03%     
==========================================
  Files         107      126      +19     
  Lines       21066    21094      +28     
==========================================
+ Hits        20164    20198      +34     
+ Misses        902      896       -6     

Copy link
Contributor

@annehaley annehaley left a comment

Choose a reason for hiding this comment

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

Most of this looks good, why do you feel it's hacky? I think your loop of _try_imports is a better design than the previous implementation.

tests/namespace/test_utilities_namespace.py Outdated Show resolved Hide resolved
tests/namespace/test_public_namespace.py Outdated Show resolved Hide resolved
tests/namespace/test_utilities_namespace.py Show resolved Hide resolved
pyvista/utilities/_getattr.py Outdated Show resolved Hide resolved
@banesullivan banesullivan added the deprecation Deprecation involved. PRs that deprecate things. label Jun 9, 2023
pyvista/utilities/_getattr.py Outdated Show resolved Hide resolved
pyvista/utilities/_getattr.py Outdated Show resolved Hide resolved
tests/namespace/test_utilities_namespace.py Outdated Show resolved Hide resolved
tests/namespace/test_utilities_namespace.py Outdated Show resolved Hide resolved
banesullivan and others added 5 commits June 10, 2023 13:51
Co-authored-by: Andras Deak <adeak@users.noreply.github.com>
Co-authored-by: Andras Deak <adeak@users.noreply.github.com>
banesullivan and others added 2 commits June 12, 2023 17:41
Co-authored-by: Andras Deak <adeak@users.noreply.github.com>
pyvista/utilities/cell_type_helper.py Outdated Show resolved Hide resolved
pyvista/utilities/__init__.py Show resolved Hide resolved
adeak and others added 2 commits June 14, 2023 00:49
Co-authored-by: Andras Deak <adeak@users.noreply.github.com>
Copy link
Member

@adeak adeak left a comment

Choose a reason for hiding this comment

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

Thanks for bearing with me @banesullivan @akaszynski. Looks great to me now.

@akaszynski
Copy link
Member

Always appreciate your attention to detail @adeak!

@banesullivan banesullivan merged commit 98de5d0 into main Jun 15, 2023
24 checks passed
@banesullivan banesullivan deleted the maint/namespace-deprecations branch June 15, 2023 14:50
@banesullivan banesullivan mentioned this pull request Jun 30, 2023
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deprecation Deprecation involved. PRs that deprecate things. maintenance Low-impact maintenance activity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants