-
Notifications
You must be signed in to change notification settings - Fork 287
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
Update function declarations to make docs reproducible #579
Conversation
Whilst working on the Reproducible Builds effort [0], we noticed that satpy's documentation could not be built reproducibly. This is because it uses the absolute buildpath in the generated docs. This was first reported in Debian as bug #919566. [0] https://reproducible-builds.org/ [0] https://bugs.debian.org/919566
Hi, thanks for your contribution. |
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #579 +/- ##
==========================================
+ Coverage 77.43% 77.44% +0.01%
==========================================
Files 136 136
Lines 19143 19153 +10
==========================================
+ Hits 14823 14833 +10
Misses 4320 4320
Continue to review full report at Codecov.
|
Not entirely sure what you mean by this, sorry. (Or, what do you not find readable about this?) |
Sorry I wasn't clear: I meant why does the current implementation break the reproducibility of the documentation ? About readability, I just find that turning eg this: def get_environ_config_dir(default=PACKAGE_CONFIG_PATH): into this: def get_environ_config_dir(default=None):
if default is None:
 default = PACKAGE_CONFIG_PATH hurts readability and documentation a bit: But maybe that's just me :) |
While I agree with @mraspaud that the code becomes a little uglier, I think the benefits outweigh the ugliness. It moves the config directory determination to runtime rather than "compile time". Additionally, this is something (similar) to what I am going to need to do in the future when I start using the I am OK merging this. |
Because it will encode the current build path via that constant (eg. |
Ok, I'm merging this then |
Whilst working on the Reproducible Builds effort, we noticed that satpy's documentation could not be built reproducibly. This is because it uses the absolute buildpath in the generated docs.
This was first reported in Debian as bug #919566.