Skip to content

Conversation

xiki-tempula
Copy link
Collaborator

Ok, I got it to work now by changing glob.glob to Path.glob, these two should be the same but Path.glob works fine.
I tried
pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple alchemlyb=="2.0.1"
and then
pytest --pyargs alchemlyb

Where all tests passed fine.

@xiki-tempula xiki-tempula linked an issue Apr 7, 2023 that may be closed by this pull request
@xiki-tempula xiki-tempula requested a review from orbeckst April 7, 2023 12:00
@xiki-tempula xiki-tempula added this to the 2.0.1 milestone Apr 7, 2023
@codecov
Copy link

codecov bot commented Apr 7, 2023

Codecov Report

Merging #310 (175dbc4) into master (639969e) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #310   +/-   ##
=======================================
  Coverage   98.74%   98.74%           
=======================================
  Files          26       26           
  Lines        1749     1749           
  Branches      380      380           
=======================================
  Hits         1727     1727           
  Misses          2        2           
  Partials       20       20           
Impacted Files Coverage Δ
src/alchemlyb/workflows/abfe.py 99.66% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Member

@orbeckst orbeckst left a comment

Choose a reason for hiding this comment

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

Did you check that this was the only use of glob.glob()? Any idea why this needs to be changed — it's odd that it would fail on M1?!?

In any case, it's a sensible change, so lgtm (just edited the CHANGES message).

@orbeckst
Copy link
Member

orbeckst commented Apr 7, 2023

please squash-merge yourself when ready, @xiki-tempula

@xiki-tempula xiki-tempula merged commit 2804d33 into master Apr 7, 2023
@xiki-tempula xiki-tempula deleted the 309-make-pip-test-work-in-m1-mac branch April 7, 2023 16:51
@xiki-tempula
Copy link
Collaborator Author

xiki-tempula commented Apr 7, 2023

@orbeckst Sorry I guess I haven't tried other machines. I haven't tried other machines but it hangs on my M1 Mac. As is said in #309. If I pip install the source it works fine. It only hangs when I upload it to pypi and download it to install. I said it is M1 Mac as I got some other issue happening with M1 Mac in other packages so I suspect it is a M1 Mac issue.
This is the only glob instance.

orbeckst pushed a commit that referenced this pull request Apr 17, 2023
- fix #311 
- In PR #310 (v2.0.1) we changed the behavior of the dir kwarg in ABFE: glob patterns are now part of
   the prefix kwar. This API change should not have been included in a patch release but because it 
   came very soon after 2.0.0, we kept it. This PR explicitly issues a warning when a glob pattern is
   used so that subsequent failures (ValueError) are easier to understand.
- add warning if glob pattern `*` is used in `dir`
- add test
- updated docs
- update CHANGES
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.

Make pip test work in M1 Mac
2 participants