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

use functools.cached_property on >=3.12 #511

Merged
merged 1 commit into from
Feb 28, 2024
Merged

use functools.cached_property on >=3.12 #511

merged 1 commit into from
Feb 28, 2024

Conversation

skshetry
Copy link
Member

  • Also removes shortuuid, and uses tmp_fname from dvc_objects. uuid was only used for tmp files during unprotect. Using tmp_fname() will make it consistent with other operations.

  • After removing funcy.cached_property, the only use of funcy was for split, which has been refactored as well. So, we also don't need to depend on funcy now.

Similar to what was done in iterative/dvc-objects#269 and /iterative/dvc-objects#270.

- Also removes shortuuid, and uses `tmp_fname` from `dvc_objects`.
- After removing funcy.cached_property, the only use of
  funcy was for `split`, which has been refactored as well.
  So, we also don't need to depend on funcy now.
@codecov-commenter
Copy link

codecov-commenter commented Feb 28, 2024

Codecov Report

Attention: Patch coverage is 88.88889% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 63.09%. Comparing base (d89a3f2) to head (16e5b47).

Files Patch % Lines
src/dvc_data/hashfile/db/local.py 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #511      +/-   ##
==========================================
+ Coverage   63.04%   63.09%   +0.04%     
==========================================
  Files          62       62              
  Lines        4338     4341       +3     
  Branches      733      735       +2     
==========================================
+ Hits         2735     2739       +4     
+ Misses       1446     1445       -1     
  Partials      157      157              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@skshetry skshetry merged commit c25b608 into main Feb 28, 2024
16 checks passed
@skshetry skshetry deleted the remove-deps branch February 28, 2024 12:49
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.

None yet

2 participants