-
-
Notifications
You must be signed in to change notification settings - Fork 158
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 mock as a requirement of Tax-Calc conda recipe and environment.yml #1180
add mock as a requirement of Tax-Calc conda recipe and environment.yml #1180
Conversation
Codecov Report@@ Coverage Diff @@
## master #1180 +/- ##
=======================================
Coverage 98.88% 98.88%
=======================================
Files 38 38
Lines 3063 3063
=======================================
Hits 3029 3029
Misses 34 34 Continue to review full report at Codecov.
|
@PeterDSteinberg, Why are you adding mock to |
@martinholmer Good point ! Oversight fixed in latest commit. |
@PeterDSteinberg, given that |
@MattHJensen - I am assuming that the users experiencing the bug in #1172 / #1173 are users who have installed from the conda package of |
There's an issue for that, fyi: #1118. Not sure if it's an easy fix or not. |
@PeterDSteinberg, the user was actually installing from source. An interesting observation is that nothing happened when he ran |
@PeterDSteinberg, What is the difference between |
@PeterDSteinberg said:
OK, but you haven't explained what the |
@PeterDSteinberg, While we are waiting for your answers to several questions posed in #1180, I'd like to add a few more questions about the contents of the
while in the second of those two files it says this:
Why are the numpy versions different? |
@martinholmer Thank you for pointing out the inconsistency in |
There are two separate pathways in which one may use Tax-Calculator's code:
In the case of From conda package, then |
@PeterDSteinberg said:
In the case of From conda package, Thanks for the clear explanation. Why can't conda use just one file (in both cases) to specify the environment? |
@martinholmer This situation happens in many packages I have worked on ("this situation" being having an
Both of those commands install the package specs of
I do that command periodically to confirm we haven't broken the conda recipe, however I don't find it as helpful for iterative development locally because the command has to be re-run each time I change any part of the code. In summary, From Source is faster for iterative development. From conda package gives us more options in production. Note: I just edited my comment above this one because I forgot to include the |
@PeterDSteinberg, do you know why it is necessary to have both a |
@MattHJensen In addressing #1158 (streamlining build process), I could change the build process to define |
@PeterDSteinberg said:
This sounds like an improvement to me. If others agree, why don't you go ahead and revise #1180 to be like this. |
@PeterDSteinberg, Where do you stand on completing the work you suggested in #1180? |
In #1158 we discussed deferring the work until after a milestone. This already held me up today some (inefficiency building packages). I'll fix this PR and #1158 tomorrow / Friday. I can come up with a non-invasive way of making build systems for all the packages that will not slow down development towards milestones. |
Fixes #1173 (
ImportError
related tomock
on Windows). I have encountered thatmock
import error on other projects. I'm not sure why Windows differs from other OS's in terms of mock being there or not, but this PR will ensure it is always installed when doingconda install -c ospc taxcalc
orconda env create
from the source directory.In the meantime (before the next Tax-Calculator conda packages are built) if you encounter an
ImportError
regardingmock
, then do the following to installmock
:conda install mock