Skip to content

numpy specified as requirement only for testing. #158

Closed

Description

@cosminlz

tests_require = ['numpy']

This is not very consistent and breaks builds for users that only require blosc.

Activity

  1. esc commented on Oct 22, 2018

    @esc
    Member
  2. esc commented on Oct 22, 2018

    @esc
    Member

    Taking a closer look at the offending commit:

    3591d23add3

    I see that numpy has been a test requirement even before this commit. Is there anything breaking on your end that made you open this pull-request?

  3. esc commented on Oct 22, 2018

    @esc
    Member

    I also see that numpy is a top-level dependency in master right now:

    https://github.com/Blosc/python-blosc/blob/master/blosc/toplevel.py#L11

    Would it suffice to simply remove that line? @cosmin-lazar-zahacinschi

  4. esc commented on Oct 22, 2018

    @esc
    Member

    In any case, I have made a branch that tries to do away entirely with the numpy dependency but I am stuck at skipping doctests, any help would be appreciated.

    #159

  5. agates commented on Nov 2, 2018

    @agates

    @esc Actually, I think it's fine the way you have it. Numpy should be required to be installed for tests from what I can see.

    Just need to include it in the standard requirements so people who install your package can use it without manually installing numpy, like this:

    install_requires=[
            'numpy'
        ]
    
  6. esc commented on Nov 2, 2018

    @esc
    Member

    Yeah, the big question is, should numpy be a strict requirement or optional. Until 1.6.1 it has been optional and I would like to make it like that again, because making it a strict requirement breaks backwards compatability and doesn:t respect the existing interface. This means moving the numpy import in toplevel.py (back) to inside the numpy related functions. I don't think that either #160 or #159 are good solutions.

  7. esc commented on Nov 5, 2018

    @esc
    Member

    I just released 1.6.2, which should fix this issue. If not, please re-open.

  8. agates commented on Nov 6, 2018

    @agates

    @esc 1.6.2 works for me. It lets me remove numpy as a hard dependency in an application that uses blosc :). Thank you!

  9. esc commented on Nov 6, 2018

    @esc
    Member

    @agates thanks for the feedback, happy it works for you now.

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