-
Notifications
You must be signed in to change notification settings - Fork 11
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
Make setup.py
consistent with conda recipe
#250
Conversation
@tomvothecoder and @forsyth2, it seems like you are testing |
I will do the precomit stuff. I forgot about it. |
Okay, all the testing failures have nothing to do with my changes, I think. |
Created E3SM-Project/zppy#397 and #252 |
I ran on Perlmutter -- pre-commit checks pass, unit tests pass. I'm not sure why GitHub is marking failures. |
We can also run the test suite on conda-forge CI if needed |
@tomvothecoder, here as well, could we get hellp on why CI is failing? |
Sorry, I didn't meant to replace testing here. Rather, we could run the whole test suite (if reasonable, easy) in the conda-forge build as well to see how they integrate there. These packages are pretty small, so we can definitely add some more tests besides the import and pip check. Looking at the workflow files here, I am not seeing actual testing (or maybe I am missing it?) — is simply |
@mahf708, I see. Yes, we should pytest on conda-forge as well. But the full test suite probably has to be run on an HPC machine because it requires tools for tape archiving that are not going to be available anywhere else. |
@mahf708, it's not
Feel free to add that to conda-forge/staged-recipes#21883. I think Also maybe look at the zppy workflow to see what the corresponding tests would be. Maybe identical. |
Good point on
I think GitHub Actions was down at the time you kicked off the workflows. I reran the workflows and they now pass. |
setup.py
Outdated
"six", | ||
"globus-sdk>=2.0.0", | ||
"fair-research-login", |
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.
There seem to be questions about which of these is correct. @forsyth2 and @lukaszlacinski, can you both weight in?
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'm really not sure.
The changes to these values come from https://github.com/E3SM-Project/zstash/pull/201/files, which itself was from @lukaszlacinski's commit lukaszlacinski@13c2660.
As @tomvothecoder mentioned in #201 (comment): "The workaround was to constrain globus-sdk >=2, <3
in setup.py
in #188")
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.
@forsyth2, it looks to me like setup.py
is correct, then and that @lukaszlacinski didn't know that he needed to keep conda/meta.yaml
consistent. But that also means that these constraints aren't in E3SM-Unified so hopefully we're still okay...
@forsyth2, I have updated this PR to what I hope is the best of both worlds. I think it's likely that @lukaszlacinski over-constrained Obviously, it would be great to have you weigh in, @lukaszlacinski. |
I have also updated GitHub actions and pre-commit to be consistent with E3SM-Project/zppy#395 |
I was able to build the environment with this branch, but when I ran the unit tests, I got:
@lukaszlacinski This leads me to believe there is an issue in the version constraints. |
Looking at #201, it was lukaszlacinski@13c2660 that fixed that exact error. |
@forsyth2, okay, it seems like the version of |
Inconsistencies in `setup.py` are causing `pip check` to fail on the conda package.
@forsyth2, could you give it another try? Could you also make an issue about seeing if we can support the latest |
Tests pass now! Should I go ahead and merge it?
|
Yes, please merge! |
Inconsistencies in
setup.py
are causingpip check
to fail on the conda package.