Skip to content

Conversation

@DimitriPapadopoulos
Copy link
Contributor

@DimitriPapadopoulos DimitriPapadopoulos commented Jul 13, 2022

@DimitriPapadopoulos DimitriPapadopoulos marked this pull request as draft July 13, 2022 20:27
@FrancescAlted FrancescAlted marked this pull request as ready for review July 14, 2022 09:12
@FrancescAlted
Copy link
Member

LGTM

@FrancescAlted FrancescAlted merged commit f9b77b9 into Blosc:master Jul 14, 2022
@FrancescAlted
Copy link
Member

Thanks @DimitriPapadopoulos !

@DimitriPapadopoulos DimitriPapadopoulos deleted the ImportError_attempted_relative_import branch July 14, 2022 09:51
import os
import sys
from ._version import LooseVersion
import _version
Copy link
Contributor

Choose a reason for hiding this comment

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

This isn't going to work when the package is installed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

How to fix tests? It might be preferable to switch to packages as suggested by PEP 632.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Would that be OK?

from blosc._version import LooseVersion

graingert added a commit to graingert/python-blosc that referenced this pull request Jul 15, 2022
FrancescAlted pushed a commit that referenced this pull request Jul 15, 2022
* Revert "Fix error in tests introduced by #270 (#277)"

This reverts commit f9b77b9.

* fix incorrect import of blosc._version

* Update .github/workflows/build.yml
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.

3 participants