Skip to content

Commit

Permalink
Merge branch 'main' into _pipe_file
Browse files Browse the repository at this point in the history
  • Loading branch information
shcheklein authored Jun 1, 2024
2 parents e8c524a + 64cc6ef commit 6a4ae6b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

matrix:
os: [ubuntu-latest, macos-latest]
pyv: ["3.7", "3.8", "3.9", "3.10", "3.11.0-rc - 3.11"]
pyv: ["3.8", "3.9", "3.10", "3.11.0-rc - 3.11", "3.12"]

steps:
- uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ pytest
pytest-asyncio
pytest-cov
mock-ssh-server
importlib-metadata >= 6.0.0
6 changes: 3 additions & 3 deletions tests/test_sshfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
from pathlib import Path

import fsspec
import pkg_resources
import pytest
from asyncssh.sftp import SFTPFailure
from importlib_metadata import entry_points

from sshfs import SSHFileSystem

Expand Down Expand Up @@ -74,7 +74,7 @@ def strip_keys(info):


def test_fsspec_registration(ssh_server):
for ep in pkg_resources.iter_entry_points(group="fsspec.specs"):
for ep in list(entry_points(group="fsspec.specs")):
fs = fsspec.filesystem(
ep.name,
host=ssh_server.host,
Expand All @@ -86,7 +86,7 @@ def test_fsspec_registration(ssh_server):


def test_fsspec_url_parsing(ssh_server, remote_dir, user="user"):
for ep in pkg_resources.iter_entry_points(group="fsspec.specs"):
for ep in list(entry_points(group="fsspec.specs")):
url = f"{ep.name}://{user}@{ssh_server.host}:{ssh_server.port}/{remote_dir}/file"
with fsspec.open(url, "w", client_keys=[USERS[user]]) as file:
# Check the underlying file system.
Expand Down

0 comments on commit 6a4ae6b

Please sign in to comment.