Skip to content

Commit

Permalink
Merge pull request #2 from d70-t/entry_points
Browse files Browse the repository at this point in the history
register filesystem via entry_points
  • Loading branch information
d70-t committed Apr 6, 2021
2 parents ac7ac2c + 1a33bdc commit 4f7d205
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: [3.6, 3.7, 3.8]
python-version: [3.6, 3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v1
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ A readonly implementation of fsspec for IPFS.
This project is currently very rudimentaty. It is not yet optimized for efficiency and is not yet feature complete. However it should be enough to list directory contents and to retrieve files from `ipfs://` resources via fsspec. A simple hello worlds would look like:

```python
import ipfsspec # this is needed to register the protocol with fsspec
import fsspec

with fsspec.open("ipfs://QmZ4tDuvesekSs4qM5ZBKpXiZGun7S2CYtEZRB3DYXkjGx", "r") as f:
Expand Down
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@
],
python_requires='>=3',
install_requires=[
"fsspec>=0.8.0",
"fsspec>=0.9.0",
"requests",
],
entry_points={
'fsspec.specs': [
'ipfs=ipfsspec.IPFSFileSystem',
],
},
)
1 change: 0 additions & 1 deletion test/test_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import json
from mockserver import mock_servers

import ipfsspec # noqa: F401
import fsspec

from http.server import BaseHTTPRequestHandler
Expand Down
1 change: 0 additions & 1 deletion test/test_ipfs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import ipfsspec # noqa: F401
import fsspec


Expand Down

0 comments on commit 4f7d205

Please sign in to comment.