-
Notifications
You must be signed in to change notification settings - Fork 59
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
Support for SOURCE_DATE_EPOCH (reproducible builds) #187
Conversation
I'm not familiar enough with the codebase to add tests. Any tips would be most appreciated. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #187 +/- ##
==========================================
+ Coverage 94.86% 94.93% +0.06%
==========================================
Files 14 14
Lines 1111 1125 +14
==========================================
+ Hits 1054 1068 +14
Misses 57 57 ☔ View full report in Codecov by Sentry. |
coverage will not pass unless I add tests, but I would need directions on the best course of action. |
I'm not sure. I guess a test could be added for calling |
7d06045
to
2019e05
Compare
The last thing to do would be to add the changes to |
2019e05
to
0f24464
Compare
I should mention that native macOS tools (e.g. |
Do you mean to add to the changelog that |
I did mean that, but it's vague how much changes in public functions should be compared the actual features and CLI arguments. Personally, I'd rather consider all but the most public facing tools to be private, but you can never be sure unless you've added that leading underscore to everything ahead of time. I'm not sure there's consensus on this at the moment. |
delocate/tests/env_tools.py
Outdated
|
||
|
||
@contextmanager | ||
def Environment(**env): |
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.
Don't name this like a class, add annotations, and a docstring, maybe also make it private.
def Environment(**env): | |
def _scope_env(**env: str) -> Iterator[None]: | |
"""Add the provided environment variables for the duration of this context.""" |
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.
Don't name this like a class,
Done. I named the new context manager like a class precisely because of the other context manager function in the same file.
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.
I missed the rename suggestion. I'll push a fix.
FWIW, a new kw-only argument (in a function without
That's what I assumed for this particular project, and why I did not care in my original sumision about making private the new utility function I added. This is a command line tool. A note in README should be enough to make the point clear. |
0f24464
to
f17bdb0
Compare
f17bdb0
to
6f9126b
Compare
https://reproducible-builds.org/docs/source-date-epoch/