Skip to content

retire support for python 3.7 #1975

Closed

Description

@cwhanse

Python 3.7 reached end-of-life on 2023-06-27. I propose we remove support for python 3.7 with pvlib-python v0.11.0

Activity

  1. AdamRJensen commented on Feb 13, 2024

    @AdamRJensen
    Member

    Sounds good to me.

  2. changed the title [-]retire support for python 3.8[/-] [+]retire support for python 3.7[/+] on Feb 13, 2024
  3. added this to the 0.11.0 milestone on Feb 13, 2024
  4. adriesse commented on Feb 13, 2024

    @adriesse
    Member

    What's the rush?

  5. kandersolar commented on Feb 14, 2024

    @kandersolar
    Member

    One reason to drop 3.7 is to prevent excessive accumulation of supported versions: python releases new versions annually, and it's been more than a year since we dropped a version.

  6. alexandermorgan commented on Mar 14, 2024

    @alexandermorgan
    Contributor

    If you make 3.8 your minimum supported version you could also use some of the features that came in 3.8. This _numdiff function does a bunch of math with lots of repeated chunks. For example, a0[:, 0] * a0[:, 1] is calculated 9 times. You could set up a mini library of chunks and then reference those variables now, but a more concise way would be to use py3.8's walrus operator. The first reference of the above gets simultaneously assigned to a variable:
    (col0Xcol1 := a0[:, 0] * a0[:, 1])
    Then all the subsequent repetitions use that col0Xcol1 variable. There would be other things too, like being able to reverse a dictionary. I've seen other libraries that have an official policy of supporting the last X python versions. X = 6 (i.e. py 3.7 - 3.12) seems like a lot.

  7. kandersolar commented on Apr 30, 2024

    @kandersolar
    Member

    I suggest we move this item up to 0.10.5, and plan to release 0.10.5 soon (perhaps even this week) for #2026.

    Waiting for 0.11.0 would put the desire to drop 3.7 ASAP (#2023) in conflict with wanting to wait at least a year before removing the 0.10.0 (released June 2023) deprecations set to expire in 0.11.0.

  8. modified the milestones: 0.11.0, v0.10.5 on May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions