-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
add scipy-typed output #5
Conversation
Hi! This is the friendly automated conda-forge-linting service. I failed to even lint the recipe, probably because of a conda-smithy bug 😢. This likely indicates a problem in your This message was generated by GitHub Actions workflow run https://github.com/conda-forge/conda-forge-webservices/actions/runs/12224737893. Examine the logs at this URL for more detail. |
Hi! This is the friendly automated conda-forge-linting service. I just wanted to let you know that I linted all conda-recipes in your PR ( |
@conda-forge-admin, please rerender |
Hi! This is the friendly automated conda-forge-webservice. I tried to rerender for you but ran into some issues. Please check the output logs of the GitHub Actions workflow below for more details. You can also ping The following suggestions might help debug any issues:
This message was generated by GitHub Actions workflow run https://github.com/conda-forge/conda-forge-webservices/actions/runs/12224790519. Examine the logs at this URL for more detail. |
@h-vetinari any idea why I'm seeing
? |
What was this for, again 🤔 ? |
we're trying outputting |
hmm, I'm not sure what "outputting" means in this context 🤔 |
one feedstock can output (onto the conda-forge channel) multiple packages. Right now |
Ok thanks for explaining; I can see how it makes more sense this way 👌🏻 |
Note that conda-recipes have an implicit "global" output (named after extra:
recipe-maintainers:
- lucascolley
- jorenham
+ feedstock-name: scipy-stubs Sidenote: you should also get rid of the templating on PS. You'll also need to rename the script if you want to run it in the output itself (using PPS. There's a way to keep using the existing setup despite adding another output, but it's rather confusing, so I don't recommend doing it... It would entail adding a single-line outputs:
- name: scipy-stubs # nothing else!
- name: scipy-typed
[...] but to actually test this output, you'd have to specify the |
thanks for the explanations @h-vetinari ! I'll try to address those suggestions.
Makes sense 👍 pretty sure this is what grayskull generated for me. |
Hi! This is the friendly automated conda-forge-linting service. I wanted to let you know that I linted all conda-recipes in your PR ( Here's what I've got... For recipe/meta.yaml:
This message was generated by GitHub Actions workflow run https://github.com/conda-forge/conda-forge-webservices/actions/runs/12225955566. Examine the logs at this URL for more detail. |
Hi! This is the friendly automated conda-forge-linting service. I just wanted to let you know that I linted all conda-recipes in your PR ( |
from investigating locally, it looks like |
@jorenham perhaps we can add this? [tool.hatch.build.targets.sdist]
include = [
".mypyignore",
] It seems like hatch ignores dotfiles by default. |
I think I've made some progress, but I'd appreciate some further guidance @h-vetinari ! |
That doesn't seem to work 🤔 |
this works though [tool.hatch.build.targets.sdist.force-include]
".mypyignore" = ".mypyignore" |
There's a bug in |
locally I now see
which comes from https://github.com/conda-forge/scipy-feedstock/blob/9fe7f7450dc83b1b366dfafc3a335238103d1951/recipe/build-output.sh#L4-L9. I guess we just want to add that to |
In the meantime the fix for this has been released in the new |
I guess? It's probably cleanest to put it in a another one though (you can pass multiple |
that is convenient 😄 let's see if this passes |
@conda-forge-admin, please rerender |
Hi! This is the friendly automated conda-forge-webservice. I tried to rerender for you, but it looks like there was nothing to do. This message was generated by GitHub Actions workflow run https://github.com/conda-forge/conda-forge-webservices/actions/runs/12343479817. Examine the logs at this URL for more detail. |
@conda-forge-admin, please rerender |
…onda-forge-pinning 2024.12.15.16.05.58
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.
thanks @h-vetinari , addressed
@@ -0,0 +1 @@ | |||
scipy\._lib\.test_conda_forge_packaging |
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.
FWIW, I'll happily take PRs that make this test compatible with whatever basedmypy is doing.
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.
hmm, the script does import scipy.fft.tests
- should mypy pick up the stubs from scipy-stubs
@jorenham ? If so, maybe this would work?
import pytest
+ def test_output_separation() -> NoReturn:
- def test_output_separation():
need_to_warn = False
try:
# check if we can import a test folder that's deleted in `scipy`
# but present in `scipy-tests`; if this passes, skip the test
import scipy.fft.tests
pytest.skip("Can be ignored when `scipy-tests` is installed")
except ModuleNotFoundError:
# don't re-raise directly to reduce stacktrace, i.e. avoid
# "During handling of the above exception, another exception occurred:"
need_to_warn = True
if need_to_warn:
raise ImportError(
"conda-forge builds of `scipy` do not package the tests by default "
"to reduce the package footprint; you can ensure they're present by "
"installing `scipy-tests` (resp. adding that to your dependencies)."
)
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.
Hmm not sure what you mean @lucascolley 🤔
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.
stubtest complains about no stubs for the script which scipy-feedstock adds, so instead of ignoring the file could we also annotate it inline? Or give it its own stub file? At first I wasn't sure whether it would pick up stubs for the import from scipy, but I think it should given that we have scipy-stubs installed at test-time.
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.
either way that's a minor point and doesn't need to block this from being merged.
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.
Ah yea, sure. In that case, it should probably return -> None
, as it doesn't always raise.
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.
And I agree that stubbing it instead of ignoring it would a nice flex
@conda-forge-admin, please rerender |
Hi! This is the friendly automated conda-forge-webservice. I tried to rerender for you, but it looks like there was nothing to do. This message was generated by GitHub Actions workflow run https://github.com/conda-forge/conda-forge-webservices/actions/runs/12353013891. Examine the logs at this URL for more detail. |
@h-vetinari are you okay with me merging this now? I think it would be nice to be able to check that this all works before 1.15.0 is released. |
thanks both! |
Thanks @lucascolley ❤️ |
Checklist
0
(if the version changed)conda-smithy
(Use the phrase@conda-forge-admin, please rerender
in a comment in this PR for automated rerendering)