Closed erykoff closed 2 years ago
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 (recipe
) and found it was in an excellent condition.
Thanks for working on this @erykoff!
Well, it looks like the cleaning the cython files (or rather make clean
) is good practice, and might fix some things, but does not fix the underlying problem.
On this PR I've added a proposed patch to the test_rank.py
code to explicitly apply a modulo before type casting which avoids the undefined conversion errors. See e.g. https://frama-c.com/2013/10/09/Overflow-float-integer.html
When a finite value of real floating type is converted to an integer type other than _Bool the fractional part is discarded (i.e. the value is truncated toward zero). If the value of the integral part cannot be represented by the integer type the behavior is undefined.
Argh, there are more places where these tests are failing. I'll patch them up in the same way and add make as a dependency.
On this PR I've added a proposed patch to the test_rank.py code to explicitly apply a modulo before type casting which avoids the undefined conversion errors. See e.g. https://frama-c.com/2013/10/09/Overflow-float-integer.html
I was just doing the same thing! it is currently running in #87
Hey all, I really won't mind if you squash all my contributions into yours. I don't really care for conda-forge "credit" in the PRs and I think a clean PR is better than a messy one for some conda-forge things.
Closed in favor of #87
Checklist
0
(if the version changed)conda-smithy
(Use the phrase code>@<space/conda-forge-admin, please rerender in a comment in this PR for automated rerendering)