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

drop support for Python 3.8 #2152

Merged
merged 1 commit into from
May 2, 2023
Merged

Conversation

zacharyburnett
Copy link
Contributor

@zacharyburnett zacharyburnett commented Apr 14, 2023

Description

Numpy is imminently dropping support for Python 3.8

Change log entry

  • Is a change log needed? If yes, is it added to CHANGES.rst? If you want to avoid merge conflicts,
    list the proposed change log here for review and add to CHANGES.rst before merge. If no, maintainer
    should add a no-changelog-entry-needed label.

Checklist for package maintainer(s)

This checklist is meant to remind the package maintainer(s) who will review this pull request of some common things to look for. This list is not exhaustive.

  • Are two approvals required? Branch protection rule does not check for the second approval. If a second approval is not necessary, please apply the trivial label.
  • Do the proposed changes actually accomplish desired goals? Also manually run the affected example notebooks, if necessary.
  • Do the proposed changes follow the STScI Style Guides?
  • Are tests added/updated as required? If so, do they follow the STScI Style Guides?
  • Are docs added/updated as required? If so, do they follow the STScI Style Guides?
  • Did the CI pass? If not, are the failures related?
  • Is a milestone set? Set this to bugfix milestone if this is a bug fix and needs to be released ASAP; otherwise, set this to the next major release milestone.
  • After merge, any internal documentations need updating (e.g., JIRA, Innerspace)?

@github-actions github-actions bot added documentation Explanation of code and concepts testing labels Apr 14, 2023
@bmorris3 bmorris3 added this to the 3.5 milestone Apr 14, 2023
@bmorris3
Copy link
Contributor

🚨 For those curious, "imminent" means today. 🚨

@codecov
Copy link

codecov bot commented Apr 14, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (3fa6758) 91.94% compared to head (4f72adb) 91.94%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2152   +/-   ##
=======================================
  Coverage   91.94%   91.94%           
=======================================
  Files         146      146           
  Lines       16012    16012           
=======================================
  Hits        14722    14722           
  Misses       1290     1290           

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

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@zacharyburnett
Copy link
Contributor Author

zacharyburnett commented Apr 14, 2023

The Required Status Checks portion of the branch protections will also need to be updated after merge:

  • Windows - Python 3.8 -> Windows - Python 3.9

@pllim
Copy link
Contributor

pllim commented Apr 28, 2023

Gotta also undo #2173

@pllim
Copy link
Contributor

pllim commented Apr 28, 2023

Re: #2152 (comment)

That is correct, so only admin can merge this one because it requires branch protection override.

Copy link
Collaborator

@rosteen rosteen left a comment

Choose a reason for hiding this comment

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

Thanks, I'll change the branch protection and drop the ipython pin after merge.

python_requires = >=3.8
python_requires = >=3.9
Copy link
Member

Choose a reason for hiding this comment

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

If a user has python 3.8 and installs or attempts to upgrade jdaviz via pip, will they then just get the most recent release before this PR? If so, I'm concerned that this might just result in users not getting bugfixes and new features (either intentionally because they don't want to update their python environment or just because they don't realize they need to update in order to get newer releases).

If our minimum requirements on upstream packages do not require 3.9 (yet), then would we be better off holding off as long as possible?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I understand the concern, but with both numpy and astropy already requiring 3.9, these users already wouldn't be getting new features in relevant packages (I assume astropy LTS still supports 3.8 for bug fixes at least). We can make the python requirement change extra prominent in the 3.5 release notes, but I think it's time for this. Users stuck on 3.8 would still get bug fix releases for 3.4, but also I'm skeptical that users who haven't upgraded from 3.8 are upgrading their packages either.

@rosteen
Copy link
Collaborator

rosteen commented May 2, 2023

Merging, I'll also add a warning/note in the docs about this when I open the PR to change the ipython pin.

@rosteen rosteen merged commit 5c794f3 into spacetelescope:main May 2, 2023
@zacharyburnett zacharyburnett deleted the drop_py38 branch May 2, 2023 17:01
kecnry added a commit to kecnry/jdaviz that referenced this pull request Dec 7, 2023
spacetelescope#2152 removed support for python 3.8, but the min version in pyproject.toml was not updated
@kecnry kecnry mentioned this pull request Dec 7, 2023
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Explanation of code and concepts testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants