Skip to content

Conversation

@PProfizi
Copy link
Contributor

@PProfizi PProfizi commented Jan 13, 2025

The pkg_resources library is marked as deprecated and raises warnings.
We switch to using importlib.
This is done is two places:

  • in the ansys.dpf.core.__init__.py to check the presence of ansys-dpf-gate, ansys-dpf-gatebin or ansys-grpc-dpf in the Python environment and raise a deprecation error.
  • in ansys.dpf.gate.load_api.__paths_to_dpf_server_library_installs to detect installed ansys-dpf-server*** libraries and return install paths.

@PProfizi PProfizi requested a review from a team as a code owner January 13, 2025 10:02
@PProfizi PProfizi self-assigned this Jan 13, 2025
@PProfizi PProfizi added the refactoring Code refactoring only label Jan 13, 2025
@PProfizi PProfizi added this to the 0.13.4 milestone Jan 13, 2025
@codecov
Copy link

codecov bot commented Jan 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.44%. Comparing base (15aee2e) to head (d7fd2ab).
Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2008      +/-   ##
==========================================
- Coverage   88.44%   88.44%   -0.01%     
==========================================
  Files          89       89              
  Lines       10252    10260       +8     
==========================================
+ Hits         9067     9074       +7     
- Misses       1185     1186       +1     

@PProfizi PProfizi merged commit f89b36c into master Jan 14, 2025
46 checks passed
@PProfizi PProfizi deleted the fix/pkg_resources_deprecation branch January 14, 2025 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactoring Code refactoring only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants