Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add python 3.11 support: Remove use of pathlib._Accessor #88

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: [3.6, 3.7, 3.8, 3.9, 3.10, 3.11]

runs-on: ${{ matrix.os }}
steps:
Expand Down
3 changes: 1 addition & 2 deletions pathy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from abc import ABC, abstractmethod
from dataclasses import dataclass, field
from io import DEFAULT_BUFFER_SIZE
from pathlib import _Accessor # type:ignore
from pathlib import _PosixFlavour # type:ignore
from pathlib import _WindowsFlavour # type:ignore
from pathlib import Path, PurePath
Expand Down Expand Up @@ -336,7 +335,7 @@ class BasePath(_PathyExtensions, Path):
_flavour = _windows_flavour if os.name == "nt" else _posix_flavour # type:ignore


class BucketsAccessor(_Accessor): # type:ignore
class BucketsAccessor:
"""Access data from blob buckets"""

_client: Optional[BucketClient]
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ def setup_package():
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
)

Expand Down