-
Notifications
You must be signed in to change notification settings - Fork 16
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
PDM, Nox and Meson #51
Conversation
632ce8c
to
48e09be
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #51 +/- ##
==========================================
- Coverage 94.40% 94.38% -0.03%
==========================================
Files 6 5 -1
Lines 1037 1033 -4
==========================================
- Hits 979 975 -4
Misses 58 58 ☔ View full report in Codecov by Sentry. |
Thank you so much for doing this @paugier ! I have no experience using pdm and meson but I understand that pylandstats is now compiled using pythran in windows too, right? Regarding nox: I am okay with switching, but if I understand this correctly, we still need to keep tox.ini? How about the tests in github actions? shouldn't tests.yml be changed to use nox? Thank you again! |
Yes, exactly! And as a bonus there are also the files necessary to use Numba in the wheels. So Numba can be used if
Yes, in practice, it is not necessary to have tox.ini and noxfile.py. I didn't touch the Github Actions configuration so I didn't remove tox.ini. Do you feel you can try to adapt tests.yml to use Nox? You can find an example here https://foss.heptapod.net/fluiddyn/fluidimage/-/blob/branch/default/.github/workflows/ci-linux.yml Do not hesitate to tell me if it does not work! |
well for some reason some pythran build errors seem to occur in github actions 😿 |
noxfile.py
Outdated
command = "pdm sync --clean --prod -G test --no-self" | ||
session.run_install(*command.split(), external=True) | ||
|
||
session.conda_install("gdal>=3.3", channel=["conda-forge"]) |
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.
I agree that it looks reasonable. It looks a bit like a Nox bug. I'm going to have a look at that.
Hello @paugier, sorry to ping you again. Builds in conda-forge are failing due to a missing I ran grayskull locally and suggested:
does this make more sense? I am especially curious of whether we still need Thank you again. Best, |
I have applied the changes as suggested by grayskull and a few other tweaks (see https://github.com/conda-forge/pylandstats-feedstock/blob/089d09ecaebe0f2a7931abc9927181c468fc40c5/recipe/meta.yaml), however now I get the following error in windows only (see https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=1064001&view=results):
I wonder if this has something to do with the fact that I removed the Thank you. |
I guess you need
to get a working clang. I think you don't need numba (and black) anymore. |
well, for one it was safe to remove the black requirement (https://github.com/martibosch/pylandstats/actions/runs/11519189852), but I am still struggling with the conda-forge builds in windows. More precisely, now I am getting errors of the form Following some similar issues that I found and based on the scipy and scikit-image conda forge recipes, I added the following to the
However I am still getting the same error. Any ideas on how to fix this @serge-sans-paille (sorry to ping you here too). Thank you. Best, |
You should probably for the clang-cl compiler on windows if that's not the case?
|
Hello! I have tried mimicking what is done in scikit-image-feedstock by copying their
Then I also tried adding any ideas? I am sorry to have to ping you guys but this is really outside my expertise. |
Hello! I am sorry to ping you again, but would you have any hint on how to get this fixed? I just tried re-running the failed workflows (to see if some updated dependencies magically fixed the issue) without success. Here is the:
Any help will be greatly appreciated. Best, |
Oh finally it was much more changes that I expected...
This is a draft, but it gives a good idea of what it could give.
There are few interesting commands in the Makefile, in particular
make
should install the package in a dedicated local virtual env (.venv).I used Nox instead of Tox because it is simpler for me.