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

Support python 3.11 #74

Merged
merged 1 commit into from
Oct 26, 2022
Merged
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
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9, "3.10"]
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]

steps:
- uses: actions/checkout@v2
Expand All @@ -62,7 +62,7 @@ jobs:
GOOGLEDRIVEFS_TEST_TOKEN_READ_ONLY: ${{ secrets.GOOGLEDRIVEFS_TEST_TOKEN_READ_ONLY }}
if: ${{needs.secrets.outputs.valid}} == 'true'
run: |
if python --version | grep -q 'Python 3.10' ; then
if python --version | grep -q 'Python 3.11' ; then
poe test
fi
- name: Coverage
Expand Down
2 changes: 1 addition & 1 deletion fs/googledrivefs/googledrivefs.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def __init__(self, fs, path, thisMetadata, parentMetadata, parsedMode, **options
platformMode += ('b' if 'b' not in platformMode else '')
platformMode = platformMode.replace('x', 'a')
# transferring ownership of this open file handle to RawWrapper
super().__init__(f=open(self.localPath, mode=platformMode)) # pylint: disable=consider-using-with,unspecified-encoding
super().__init__(f=open(self.localPath, mode=platformMode, encoding='utf-8')) # pylint: disable=consider-using-with
if self.parsedMode.appending:
# seek to the end
self.seek(0, SEEK_END)
Expand Down
13 changes: 7 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "fs.googledrivefs"
packages = [
{ include = "fs"}
]
version = "2.3.1"
version = "2.3.2"
description = "Pyfilesystem2 implementation for Google Drive"
authors = ["Rehan Khwaja <rehan@khwaja.name>"]
license = "MIT"
Expand All @@ -14,15 +14,15 @@ classifiers = [
"License :: OSI Approved :: MIT License",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10"
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11"
]

[tool.poetry.dependencies]
python = ">=3.7,<4"
python = ">=3.7"
fs = ">=2.4.13"
google-api-python-client = ">=1.7.10"
google-auth = ">=1.5.1"
Expand All @@ -32,7 +32,7 @@ pytest = ">=3.10"
pytest-timeout = ">=1.3.3"
requests-oauthlib = ">=1.0"
pyperclip = ">=1.7"
pylint = ">=2.11" # need at least this for all the extensions
pylint = ">=2.13" # need for python 3.11 support
pylint-quotes = ">=0.2.1"
pytest-cov = ">=2.10.1"
poethepoet = ">=0.16.4"
Expand Down Expand Up @@ -86,7 +86,8 @@ disable = [
"logging-format-interpolation",
"logging-fstring-interpolation",
"missing-docstring",
"no-member"
"no-member",
"no-name-in-module" # doesn't work for python 3.11
]

[build-system]
Expand Down