Skip to content
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

[DOC] Generalize installation instructions to work with Windows in CONTRIBUTING #846

Merged
merged 2 commits into from
Apr 26, 2022

Conversation

aryangupta701
Copy link
Contributor

@aryangupta701 aryangupta701 commented Feb 18, 2022

Closes #844, #845

Changes proposed in this pull request:

  • pip install -e .'[all]' does not work on Windows while pip install -e .[all] does. This changes CONTRIBUTING.md to recommend this step without the added quotes.

@codecov
Copy link

codecov bot commented Feb 18, 2022

Codecov Report

Merging #846 (0981ce3) into main (eaa0920) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #846   +/-   ##
=======================================
  Coverage   93.27%   93.27%           
=======================================
  Files          27       27           
  Lines        2217     2217           
=======================================
  Hits         2068     2068           
  Misses        149      149           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eaa0920...0981ce3. Read the comment docs.

Copy link
Member

@tsalo tsalo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for contributing! There are just a few things that will need to be changed before I can approve.

Can you change the PR title and summary comment to follow tedana's conventions?

The PR title should have a prefix in brackets (see the list here) and a descriptive name. For example, something like "Generalize installation instructions in CONTRIBUTING" would work.

Also, the summary comment should link to the issue using GitHub's keywords (e.g., Closes #845) so that the issue will automatically be closed when the PR is merged. The link as you have it now won't do that.

EDIT: I would also recommend linking to #844 as well. You will need to use the same keyword (closes, addresses, etc.) before each issue link. Something like Closes #845 and #844 won't work.

CONTRIBUTING.md Outdated
Comment on lines 138 to 141

If the above command didnot worked for you try using the following command :
```
pip install -e .[all]
```
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than adding more steps to try, I think it would be best to make our standard installation instructions work for as many people as possible. Why not change the instructions above to pip install -e .[all]?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That does not work on every shell unfortunately; in my zsh (MacOS default) it attempts to expand the shell and then there are no valid expansions, so it exits with error:

zsh: no matches found: .[all]

so we do indeed need quotes for UNIX systems and non-quotes for Windows.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's unfortunate, but I'm glad to know definitively that that's the case.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

However, it looks like pip install -e . works on both Windows and UNIX systems, so we should just change the instructions to that.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But it does omit dev dependencies. I pushed some changes to simplify the language a bit, confirmed working on the relevant platforms.

@handwerkerd handwerkerd changed the title modified documentation [DOC] Generalize installation instructions to work with Windows in CONTRIBUTING Mar 15, 2022
@handwerkerd
Copy link
Member

handwerkerd commented Mar 15, 2022

Thank you @aryangupta701 for identifying this info and figuring out a solution! I'm very sorry for my delayed response. It's been a busy few weeks and I'm trying to catch up on standing issues before our tedana developers' call this Thursday.

I just made changes to the PR title and your opening comment to conform to our conventions in response to @tsalo's comments. If you submit other PRs, I'd be happy to help guide you through conventions that might be specific to this project.

I do agree with Taylor that, if pip install -e .[all] works for all operating systems, we should just list that and remove the one with quotes. There then wouldn't be a need to present two options. If you have a chance to make that edit to your code, I'll be happy to approve. If you don't have a chance, I can do it and then we can merge this PR. It would be nice to get his change into the main documentation so that we can welcome more Windows developers.

Also, our dev call is this Thursday at this local time. The issue with the zoom link is #857 If you want to learn more about tedana, you are welcome to join.

@jbteves
Copy link
Collaborator

jbteves commented Apr 22, 2022

@aryangupta701 I hope you don't mind but I've pushed some changes to your branch (this way you get co-author credit and PR credit) so that we can merge this change with a few updates.

@jbteves jbteves requested a review from tsalo April 22, 2022 14:27
@handwerkerd handwerkerd self-requested a review April 26, 2022 18:53
Copy link
Member

@handwerkerd handwerkerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@handwerkerd handwerkerd merged commit 40ee322 into ME-ICA:main Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Installation instructions do not work for Windows machines
4 participants