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

Remove bioread form required dependencies, ease extra modules installation #214

Merged
merged 19 commits into from
May 13, 2020

Conversation

smoia
Copy link
Member

@smoia smoia commented Apr 23, 2020

Closes #30

Proposed Changes

  • bioread is no longer a mandatory package
  • better handling of extra packages installation
  • documentation for users and developers updated to reflect changes
  • add bioread install in travis pipelines

@smoia smoia added Documentation This issue or PR is about the documentation Internal Changes affect the internal API. It doesn't increase the version, but produces a changelog labels Apr 23, 2020
@codecov
Copy link

codecov bot commented Apr 23, 2020

Codecov Report

Merging #214 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #214   +/-   ##
=======================================
  Coverage   94.32%   94.32%           
=======================================
  Files           7        7           
  Lines         582      582           
=======================================
  Hits          549      549           
  Misses         33       33           

@smoia smoia changed the title Int/setup Remove bioread form required dependencies, ease extra modules installation Apr 23, 2020
@RayStick
Copy link
Member

RayStick commented Apr 27, 2020

@smoia I have submitted a PR to your branch, which contains a few minor wording and formatting corrections for the three rst docs that were edited.

For the other files, all the changes make sense. However, I did not test out any of these new installation options, as I have already got phys2bids installed. However, if you want me to test some, let me know. (I did run phys2bids locally and everything worked as expected).

@smoia
Copy link
Member Author

smoia commented Apr 28, 2020

Thank you @RayStick ! In fact, i cought a couple of typos more.
I merged the PR already, you can continue with the review process!

Copy link
Member

@RayStick RayStick left a comment

Choose a reason for hiding this comment

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

All looks good.

As mentioned before, I did not specifically test out any of these new installation options, as I have already got phys2bids installed. However, if you want me to test some, let me know. (I did run phys2bids locally and everything worked as expected).

@smoia
Copy link
Member Author

smoia commented Apr 28, 2020

@RayStick if you think it's a good idea we can set up installation tests in Travis?

Otherwise, I tried by uninstalling phys2bids and reinstalling it a couple of times, but for me it's easier as I don't have conda (and installing python3 is easier for me).

@smoia
Copy link
Member Author

smoia commented May 6, 2020

@RayStick, apologies for the post-review changes.
I tried the installation a couple of times again and discovered that, in fact, it might fail due to the bioread installation.
Please have a look at the changes, and if you agree with them, we can ask a second reviewer for review!

@smoia
Copy link
Member Author

smoia commented May 12, 2020

Hi all! Can we try to merge this in? Can anyone else review this? @rmarkello @eurunuela or @vinferrer?

@smoia smoia requested review from eurunuela and vinferrer May 12, 2020 17:14
@eurunuela
Copy link
Collaborator

Sure, I’ll review it tomorrow. However, make sure the Travis test passes.

@RayStick
Copy link
Member

@smoia Sorry for not getting back to you for a while. I won't have time to review the different installations options this week, so if @eurunuela is happy to review this tomorrow that'd be great.

@smoia
Copy link
Member Author

smoia commented May 12, 2020

@eurunuela unluckily Travis is failing due to reasons not related to the PR. I will try to restart it again, but if it keeps failing, please have a look at why it fails and what is the content of this PR, and possibly test it offline.

@eurunuela
Copy link
Collaborator

@smoia it looks like two of them fail due to a timeout.

However, test_acq.py and test_txt.py are failing for two reasons. Both have errors in downloading the test data, and test_txt.py seems to have some assertion errors. The issues with downloading the data look like there's been a timeout. This is what the error says:

urllib.error.ContentTooShortError: <urlopen error retrieval incomplete: got only 21979284 out of 21999903 bytes>

Do we know if there have been any issues with the OSF service lately?

I would not merge this until we can properly test the code. Assertion errors should not be happening and make me think that the code in this PR might be the reason for them.

I'll look at the code and see what lines could be making these fail.

Copy link
Collaborator

@eurunuela eurunuela left a comment

Choose a reason for hiding this comment

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

These changes look good. I have a concern regarding the bioread version though.

docs/contributing.rst Outdated Show resolved Hide resolved
docs/contributing.rst Outdated Show resolved Hide resolved
docs/installation.rst Outdated Show resolved Hide resolved
setup.cfg Show resolved Hide resolved
@eurunuela
Copy link
Collaborator

eurunuela commented May 13, 2020

Okay @smoia, I thought you were making more critical changes to the code. The tests should be passing for this PR. So, I say we merge this and open an issue to fix the tests.

I would not merge other PRs until the tests are fixed though.

We should probably add this issues with the tests to the agenda for our next meeting.

@smoia
Copy link
Member Author

smoia commented May 13, 2020

Let me change the minimal install requirement in Travis and we can merge!

Stefano Moia and others added 3 commits May 13, 2020 10:36
Co-authored-by: Eneko Uruñuela <13706448+eurunuela@users.noreply.github.com>
Co-authored-by: Eneko Uruñuela <13706448+eurunuela@users.noreply.github.com>
Co-authored-by: Eneko Uruñuela <13706448+eurunuela@users.noreply.github.com>
@smoia smoia removed the Documentation This issue or PR is about the documentation label May 13, 2020
@smoia
Copy link
Member Author

smoia commented May 13, 2020

@eurunuela

Ok, done. Should I merge it now or do we want to see if the CIs pass?

@eurunuela
Copy link
Collaborator

I think we can merge now. This PR should not alter the code in any way. I think it's safe.

@RayStick
Copy link
Member

@smoia - I know I am down as Assignee but I will leave it to you to merge, as reading the discussion above I don't want to do it at the wrong time. :)

@smoia smoia merged commit 32425b3 into physiopy:master May 13, 2020
@smoia smoia deleted the int/setup branch May 13, 2020 14:58
@smoia smoia added the released This issue/pull request has been released. label Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Internal Changes affect the internal API. It doesn't increase the version, but produces a changelog released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deal with "non-required" packages for interfaces.
3 participants