Skip to content

Commit

Permalink
Merge pull request #21 from observingClouds/patch-1
Browse files Browse the repository at this point in the history
Fix for fsspec 2023.4.0
  • Loading branch information
d70-t authored Apr 24, 2023
2 parents 8eb96df + bfdb4d8 commit 2a73d5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 0 additions & 4 deletions ipfsspec/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
from .core import IPFSFileSystem
from .async_ipfs import AsyncIPFSFileSystem
from fsspec import register_implementation

from ._version import get_versions
__version__ = get_versions()['version']
del get_versions

# register_implementation(IPFSFileSystem.protocol, IPFSFileSystem)
register_implementation(AsyncIPFSFileSystem.protocol, AsyncIPFSFileSystem)

__all__ = ["__version__", "IPFSFileSystem", "AsyncIPFSFileSystem"]
3 changes: 2 additions & 1 deletion test/test_async.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest
import pytest_asyncio
from ipfsspec.async_ipfs import AsyncIPFSGateway, MultiGateway, AsyncIPFSFileSystem
import aiohttp

Expand All @@ -7,7 +8,7 @@
TEST_FILENAMES = ["default", "multi", "raw", "raw_multi", "write"]


@pytest.fixture
@pytest_asyncio.fixture
async def session():
async with aiohttp.ClientSession() as session:
yield session
Expand Down

0 comments on commit 2a73d5e

Please sign in to comment.