From b0e253a7c5c55199b79de5390b99f7ce192ab0a8 Mon Sep 17 00:00:00 2001 From: Matt Menzenski Date: Thu, 15 Feb 2024 18:36:23 -0600 Subject: [PATCH] remove backports cached property if we're on 3.8+ now --- poetry.lock | 14 +------------- pyproject.toml | 1 - tap_mongodb/tap.py | 7 +------ 3 files changed, 2 insertions(+), 20 deletions(-) diff --git a/poetry.lock b/poetry.lock index c36d01a..333b4a2 100644 --- a/poetry.lock +++ b/poetry.lock @@ -59,18 +59,6 @@ files = [ {file = "backoff-2.2.1.tar.gz", hash = "sha256:03f829f5bb1923180821643f8753b0502c3b682293992485b0eef2807afa5cba"}, ] -[[package]] -name = "backports-cached-property" -version = "1.0.2" -description = "cached_property() - computed once per instance, cached as attribute" -category = "main" -optional = false -python-versions = ">=3.6.0" -files = [ - {file = "backports.cached-property-1.0.2.tar.gz", hash = "sha256:9306f9eed6ec55fd156ace6bc1094e2c86fae5fb2bf07b6a9c00745c656e75dd"}, - {file = "backports.cached_property-1.0.2-py3-none-any.whl", hash = "sha256:baeb28e1cd619a3c9ab8941431fe34e8490861fb998c6c4590693d50171db0cc"}, -] - [[package]] name = "backports-datetime-fromisoformat" version = "2.0.1" @@ -2033,4 +2021,4 @@ s3 = ["fs-s3fs"] [metadata] lock-version = "2.0" python-versions = "<3.12,>=3.8" -content-hash = "68c17388b62eb49f534a6f6c0571756b674e5c8be8a8ecb655a79986d168e52e" +content-hash = "12bb28c9df6d137fadb8db0cc22f15798064502fb50d9f2416ae9e5c3660412d" diff --git a/pyproject.toml b/pyproject.toml index 606da4e..da131ff 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,7 +18,6 @@ python = "<3.12,>=3.8" singer-sdk = { version = "^0.35.0" } fs-s3fs = { version = "^1.1.1", optional = true } pymongo = "^4.4.1" -"backports.cached-property" = { version = "^1.0.2" } strenum = "^0.4.15" typing-extensions = {version = "^4.9.0", python = "<3.10"} diff --git a/tap_mongodb/tap.py b/tap_mongodb/tap.py index e679f45..9363e5e 100644 --- a/tap_mongodb/tap.py +++ b/tap_mongodb/tap.py @@ -3,7 +3,7 @@ from __future__ import annotations import json -import sys +from functools import cached_property from typing import Any from urllib.parse import quote_plus @@ -13,11 +13,6 @@ from tap_mongodb.connector import MongoDBConnector from tap_mongodb.streams import MongoDBCollectionStream -if sys.version_info[:2] >= (3, 7): - from backports.cached_property import cached_property -else: - from functools import cached_property - class TapMongoDB(Tap): """mongodb tap class."""