Skip to content

adopt NEP-29 #828

Closed
Closed

Description

@mikofski

Is your feature request related to a problem? Please describe.
the travis-ci test fails for #823 because the minimum NumPy version for py35-min is version 1.10.4 - the np.roll() function used was updated to allow multiple axes in NumPy-1.12

Describe the solution you'd like
NEP-29 is a proposal by maintainers of IPython, Matplotlib, SciPy, and NumPy that proposes the support window for Python and Numpy.

TL;DR: in the immediate future, drop support for Python-3.5 and Numpy<1.14

Describe alternatives you've considered

  • statically create the 3 rotation matrices, removing the use of np.roll completely
  • use the pre-NumPy-1.12 version of np.roll

Additional context
Since many other major packages that are used by pvlib are conforming to NEP-29, it makes a lot of sense for pvlib to also conform.

Activity

  1. wholmgren commented on Dec 4, 2019

    @wholmgren
    Member

    I think NEP-29 is too aggressive. I'm fine with adopting NEP-29 rules for expected compatibility. But NEP-29 seems to go a step farther and suggest that every downstream project release should only support the prescribed versions regardless of if it's actually necessary. In the specific case above, why should we restrict pvlib to numpy 1.14 when numpy 1.12 and 1.13 will work just as well?

    I suggest that we instead aggressively drop numpy/python versions when 1. there is a reason to do so and 2. the versions are outside the NEP-29 windows.

  2. mikofski commented on Dec 4, 2019

    @mikofski
    MemberAuthor

    an alternate approach would also be to create a requires_numpy_1_12 decorator in conftest.py

  3. wholmgren commented on Dec 4, 2019

    @wholmgren
    Member

    better to just bump the requirement.

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

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions