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

require minimum supported Python version for installation #2075

Merged
merged 3 commits into from
Nov 30, 2022

Conversation

fabianegli
Copy link
Contributor

@fabianegli fabianegli commented Nov 30, 2022

It is hitherto possible to install nf-core tools with pip and unsupported older Python versions. This PR prevents that.

Closes #1876

PR checklist

  • This comment contains a description of changes (with reason)
  • CHANGELOG.md is updated
  • If you've fixed a bug or added code that should be tested, add tests!
  • Documentation in docs is updated

@github-actions

This comment was marked as outdated.

setup.py Outdated Show resolved Hide resolved
@fabianegli fabianegli changed the title require minimum supported Python version require minimum supported Python version for installation Nov 30, 2022
@codecov
Copy link

codecov bot commented Nov 30, 2022

Codecov Report

Merging #2075 (2f9ca42) into dev (91727f3) will increase coverage by 0.03%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##              dev    #2075      +/-   ##
==========================================
+ Coverage   67.76%   67.79%   +0.03%     
==========================================
  Files          43       43              
  Lines        5559     5559              
==========================================
+ Hits         3767     3769       +2     
+ Misses       1792     1790       -2     
Impacted Files Coverage Δ
nf_core/__main__.py 58.77% <0.00%> (+0.32%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@fabianegli fabianegli merged commit ea388b3 into dev Nov 30, 2022
@fabianegli fabianegli deleted the prevent-install-with-old-python branch November 30, 2022 11:08
@@ -35,6 +35,7 @@
"console_scripts": ["nf-core=nf_core.__main__:run_nf_core"],
"refgenie.hooks.post_update": ["nf-core-refgenie=nf_core.refgenie:update_config"],
},
python_requires=">=3.7, <4",
Copy link
Member

Choose a reason for hiding this comment

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

Python 4, is that a thing?? 😰 😅

Copy link
Contributor Author

Choose a reason for hiding this comment

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

🤷

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But I guess we would want to make sure it works before supporting it 😅

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.

Lint linter config for Python < 3.6 and issue warning if Actions are using Python 3.6 and older
3 participants