-
Notifications
You must be signed in to change notification settings - Fork 533
using RawConfigParser instead of ConfigParser (closes #2541) #2542
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
Conversation
could you please add a test verifying that the information returned from |
@satra I've added, |
|
@djarecka - getting git version requires git installed in the container. there must be something that specifies pacakges to be installed into the container (not just the things being scattered). |
@djarecka - sorry i was confusing projects. for nipype, we should update the container build to also have git installed. |
@satra ok, I wasn't sure for moment, I simply added |
@satra - installing and we go have git inside our containers: |
if the software is installed inside from source the source directory is mounted and git path should work on the source directory. |
@satra in our dockers |
it only works in the source directory. is there not a git repo in the source directory? it's possible that we only copy the current state rather than clone the repo. for nipype it may be useful to have the entire repo available. |
I believe we copy here. Can we clone it somewhere else? |
|
Travis runs the test. |
You need |
yes, but I'm not sure why this is missing. In the original version we didn't install it in addition to nipype, |
wait, I think I'm missing |
@satra - ok, I did something that doesn't make sense, I took nipype from the main github repo, so I'm testing master, what is not very interesting... But at the end I'm not sure what you had in mind, should I somehow check the branch for a specific PR and take nipype from there, or you were thinking about something different? It's not clear what is the main goal. As I wrote before, the commit has is tested by travis |
@djarecka - sth like this. travis/circle automatically pulls the source of the pull-request or branch. @skipif(not on travis or circle):
def test_githash():
# find source directory and make sure it's a git directory
# find the git describe version
# compare to the githash stored on install |
@satra yes, I know travis/circle automatically takes the source of the pull-request or branch, but I thought that I have to change the way we do it... I will just revert my changes to docker. |
What's the status of this one? |
sorry, i was just confused what else I should do in this PR. Not sure, what is the important difference between the test suggested by @satra and the test I already included. |
Your test looks fine to me.
|
Yeah, this is passing locally both in my normal and a clean environment. I think this should be good. |
I want to come back to this for moment. Trying to understand when get_nipype_gitversion can return commit hash. If I'm installing nipype with |
@djarecka - only when the entire git source is present, i.e. whenever installed from a clone. |
@satra but there is any other way of checking git commit for package installed with |
with conda/pip, one could potentially use the builder to insert COMMIT_INFO when building a conda package or a wheel package, but retrieving the info is a little tricky. on conda-forge the source hash of the repo is used (different from git hash). the key problem is that the git hash changes as soon as you commit something to COMMIT_INFO. so one will always be one commit off. for releases, we don't care about the git hash, so gitversion does not apply. gitversion was primarily for people who clone nipype and develop rather than users who install nipype. |
@satra - ok, thanks for explanation! |
should fix #2541