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

Move long description logic from info.py to setup.py #670

Merged
merged 5 commits into from
Feb 3, 2021

Conversation

notZaki
Copy link
Contributor

@notZaki notZaki commented Feb 3, 2021

References #668

The README.md file is used as the module's long description. The relevant code is defined in tedana/info.py. This causes an error when importing the module because it tries to load the readme file, but the readme file does not get copied over once the module is installed

This PR moves the relevant code to setup.py so that the readme file is only read when the module is first being installed. This should get rid of the error. Remains to be seen if the long description will correctly show up on pypi.

tedana/info.py Show resolved Hide resolved
@jbteves
Copy link
Collaborator

jbteves commented Feb 3, 2021

@notZaki looks like CircleCI is having dockerhub issues; you'll probably need to wait until those issues resolve and then push an empty commit in order to correctly trigger tests on Circle.

@codecov
Copy link

codecov bot commented Feb 3, 2021

Codecov Report

Merging #670 (a9ea8c1) into main (197513d) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #670   +/-   ##
=======================================
  Coverage   93.64%   93.64%           
=======================================
  Files          26       26           
  Lines        2030     2030           
=======================================
  Hits         1901     1901           
  Misses        129      129           
Impacted Files Coverage Δ
tedana/__init__.py 100.00% <ø> (ø)

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 197513d...a9ea8c1. 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.

LGTM.

Copy link
Collaborator

@jbteves jbteves left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @notZaki !

@tsalo
Copy link
Member

tsalo commented Feb 3, 2021

@notZaki do you want to add yourself to the Zenodo file in this PR?

@notZaki
Copy link
Contributor Author

notZaki commented Feb 3, 2021

@tsalo I'll open another PR later today with a minor change for getting tests to work on windows, and I can add myself then.

@jbteves jbteves merged commit 14be852 into ME-ICA:main Feb 3, 2021
@notZaki notZaki deleted the install_readme branch February 3, 2021 22:57
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.

3 participants