Closed hdoupe closed 5 years ago
@hdoupe said:
My hunch is that this is related to writing over the version set in the
replace_version
function [inbuilder.py
]. Basically, what it's making an edit to a file and saving it. I think this is making the version state "dirty" in the way described above.
So, it sounds as if the builder.py
script could use some more work.
Right, the scripts in the policybrain_builder/policybrain_builder
directory don't have this problem, and they do a similar thing to fix the version. So, the right place to start would probably be trying to figure out how they solve this issue.
I'm going out of town for a week. If anyone else wants to take a crack at this problem, I'm happy to give feedback when I get back. Otherwise, I can take a look at it when I get back.
@hdoupe said in policybrain-builder issue #88:
Right, the scripts in the
policybrain_builder/policybrain_builder
directory don't have this problem, and they do a similar thing to fix the version. So, the right place to start would probably be trying to figure out how they solve this issue.I'm going out of town for a week. If anyone else wants to take a crack at this problem, I'm happy to give feedback when I get back. Otherwise, I can take a look at it when I get back.
Frankly, I think it is an enormous waste of time to put any more effort into the builder.py
script when we have a capability what works just fine. There are many more pressing problems with TaxBrain, Tax-Calculator tbi (PR 2043 has been open since August 6th), and PSL. Why would it make sense to divert staff time away from these more pressing issues when we already have a perfectly good capability in the policybrain_builder repo?
@MattHJensen
@martinholmer thanks for improving the policybrain-builder
tool over the last few days. I added the builder.py
script because I was unable to successfully use the policybrain-builder
tool. I'm fine with removing this file in light of your improvements.
@hdoupe said in package-builder issue #88:
Thanks for improving the policybrain-builder tool over the last few days. I added the
builder.py
script because I was unable to successfully use the policybrain-builder tool. I'm fine with removing this file in light of your improvements.
OK. But let's wait a bit until I get my confidence up about the recent improvements. As described here, I'm in the midst of testing the B-Tax 0.2.1 packages I built and uploaded yesterday. And after that I want to see if the latest version of the package-builder can build and upload packages for a recent OG-USA release.
@jdebacker @rickecon @MattHJensen
The new version of Package-Builder resolves the versioning problem discussed in issue #88, and so, this issue is being closed.
In https://github.com/open-source-economics/OG-USA/issues/394, @martinholmer pointed out that "dirty" is in the OG-USA package version. This usually happens if you are working with a package locally and have made changes that have not been committed yet:
source: https://blog.mozilla.org/warner/2012/01/31/version-string-management-in-python-introducing-python-versioneer/
For example:
My hunch is that this is related to writing over the version set in the
replace_version
function. Basically, what it's making an edit to a file and saving it. I think this is making the version state "dirty" in the way described above.