-
Notifications
You must be signed in to change notification settings - Fork 10
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
Revert "Also use poetry for calling jupytext" #334
Conversation
This reverts commit b3cafca.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev_master #334 +/- ##
===========================================
Coverage 77.04% 77.04%
===========================================
Files 57 57
Lines 7705 7705
===========================================
Hits 5936 5936
Misses 1769 1769 ☔ View full report in Codecov by Sentry. |
Jössas, I need to disable this github actions bot, it's spamming like crazy... |
So this does indeed not work, because Both
but for some reason |
Hmm I think I don't understand how poetry interact with pip. Fetching ScopeSim from PyPI does install the dev dependencies:
But installing from a local checkout does not:
I guess this makes sense, because poetry has not yet converted the 'poetry' dependencies into 'true' dependencies. ScopeSim_Data needs to install ScopeSim from source, because the idea is that it fetches any new data before a ScopeSim release is made, so it indeed must use poetry as well. However, I expect that |
Because it's not an extra but an optional dependency group. |
OK, I get the difference. But now I don't understand why it cannot find jupytext. poetry install --with test --with dev --all-extras and if I run that as well, then I get Perhaps there is a difference in how the environment is set up, but I don't understand what. The github action we use, simply does
where we set the version to 1.7.1. I did So I don't know what the difference is between the environment on my machine and on the github action that makes it necessary to use |
On github:
On my machine:
So the "Creating virtualenv" is something that does not happen locally, but I haven't yet figured out why it does happen in the github action. If we can prevent the github action from creating a virtualenv, then it should not be necessary to have |
Having used Poetry for several projects now: It does create a virtual env locally on my machine, the first time I run |
When I run |
Thanks for the verification. It probably does not happen on my machine because I always create a new virtual environment with conda, and from the documentation:
However, I have never ran So if we want end users to be able to run Perhaps it would be better to hide As for the immediate problem, I believe that AstarVienna/ScopeSim_Data#10 will fix the problem in ScopeSim_Data, but the latest attempt failed with "ContentTooShortError". |
Or get rid of it all together and use Is there any reason we (or someone else) might need to run |
If But there is also this cruft in |
Not necessarily easy. But maybe still worth it. I'd like to look into it more, but maybe not right now (too busy with other things tbh). |
This should work, because the notebook test runs. The Windows 3.12 test fails due to AstarVienna/DevOps#12 , which is unrelated to this change. |
This reverts commit b3cafca.
That is, it moves the
poetry run
from insdierunnotebooks.sh
tonotebooks_dispatch.yml
that runsrunnotebooks.sh
.