-
Notifications
You must be signed in to change notification settings - Fork 7
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
Fixes for Windows support #22
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #22 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 7 7
Lines 350 348 -2
Branches 79 60 -19
=========================================
- Hits 350 348 -2 ☔ View full report in Codecov by Sentry. |
6a4c859
to
851febc
Compare
@andhus #4 this is a draft on how to fix the windows compatibility (partially reverting/optimizing #11 ) i've set 5 tests to skip on Windows and adjusted some literals to be os agnostic feel free to comment/adjust |
@andhus could you please create a new release of the dirhash soon? currently there is a conflicting requirement of pathspec in scantree vs dirhash
|
...which might fix the cross-environment issues? See: andhus/scantree#22
Oh, yes (!) I missed this one: https://github.com/andhus/scantree/blame/c50ed7dc85f30b2a9bcad2965e867087555cf29d/setup.py#L27 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great stuff @frichtarik, thanks!
Please see a few small comments/questions.
@@ -163,6 +165,7 @@ def rp(relative): | |||
tree_empty_false_expected = DirNode(path=rp("")) | |||
assert tree_empty_false == tree_empty_false_expected | |||
|
|||
@pytest.mark.skipif(os.name == "nt", reason="Windows runs too slow for set limits") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting, can take a look at this separately.
Yes, will update those after the merge of this PR 👍 |
sorry for the delay, I got to switch employer i |
Would the lack of this PR be why using this in two WSL environments seems not to work at all? Dirhashes seem to be always different across the environments (each is pointing at a Windows drive, e.g.: |
It took longer than expected, but i'm finally done |
@andhus how does it look with the merging? |
Sorry for the delay! (New family member + ambitious startup + vacation... Additional maintainers are always welcome ;)) |
@andhus Doing a new release? |
Done ✅ |
@frichtarik I added similar fixes to andhus/dirhash-python#29 |
this switches posix.DirEntry to os. DirEntry, which is os-independent proxy as suggested by https://docs.python.org/3/library/posix.html#module-posix
adding windows image to the GH workflow matrix
limiting codecov publisher step to one job from the matrix, no need to republish the same comment too many times