From c2a5ce9c97010a552d57999f15da0d40e00c515b Mon Sep 17 00:00:00 2001 From: Nikos Koukis Date: Sat, 10 Aug 2024 19:17:09 +0300 Subject: [PATCH] Fix tests for py 3.12 --- poetry.lock | 13 ++++++++++++- pyproject.toml | 17 ++++++++--------- 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/poetry.lock b/poetry.lock index 7ac39dd..55fb900 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1629,6 +1629,17 @@ files = [ {file = "pyfakefs-4.7.0.tar.gz", hash = "sha256:f22d30d93d2989bf2d2c67b606a14cbab2df0be912c09dcdb590ea4931073ade"}, ] +[[package]] +name = "pyfakefs" +version = "5.6.0" +description = "pyfakefs implements a fake file system that mocks the Python file system modules." +optional = false +python-versions = ">=3.7" +files = [ + {file = "pyfakefs-5.6.0-py3-none-any.whl", hash = "sha256:1a45bba8615323ec29d65929d32dc66d7b59a1e60a02109950440edb0486c539"}, + {file = "pyfakefs-5.6.0.tar.gz", hash = "sha256:7a549b32865aa97d8ba6538285a93816941d9b7359be2954ac60ec36b277e879"}, +] + [[package]] name = "pygments" version = "2.18.0" @@ -2620,4 +2631,4 @@ tw = ["taskw-ng", "xdg"] [metadata] lock-version = "2.0" python-versions = ">=3.8,<=3.12.5" -content-hash = "dcd094d05469b89a956c32fc31d350cd5c4a0e999b5ddca240bbd5dfdfa7b746" +content-hash = "b2918815b3d67291ea021df2a1ae56824a488d6879b0c49bcd0d2c5bbb2d89f4" diff --git a/pyproject.toml b/pyproject.toml index 844f687..17eee8d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -78,11 +78,7 @@ bubop = { version = "0.1.12", allow-prereleases = true } setuptools = { version = "^72.1.0", optional = true, python = ">=3.12" } [tool.poetry.extras] -google = [ - "google-api-python-client", - "google-auth-oauthlib", - "setuptools", -] +google = ["google-api-python-client", "google-auth-oauthlib", "setuptools"] gkeep = ["gkeepapi"] notion = ["notion-client"] asana = ["asana"] @@ -99,7 +95,10 @@ mock = "*" mypy = "*" pdbpp = "^0.10.3" pre-commit = "^2.21.0" -pyfakefs = "^4.7.0" +pyfakefs = [ + { version = "^4.7.0", python = "<3.12" }, + { version = "^5.4", python = ">3.12" }, +] pylint = "^2.17.7" pyright = "*" pytest = "*" @@ -185,13 +184,13 @@ line-length = 95 target-version = "py310" force-exclude = true -exclude = [ ] +exclude = [] [tool.ruff.lint] select = ["ALL"] -ignore = [ ] -exclude = [ ] +ignore = [] +exclude = [] [tool.ruff.lint.flake8-annotations] # No need for -> None in __init__ methods