From d72bfd8a3429cfe710751d9b2bc597acecb76fa1 Mon Sep 17 00:00:00 2001 From: Jahziah Wagner <540380+jahwag@users.noreply.github.com> Date: Thu, 7 Nov 2024 20:57:00 +0100 Subject: [PATCH] fix: pin anthropic version, count_tokens was replaced with $ api (#87) `AttributeError: 'Anthropic' object has no attribute 'count_tokens'` was caused by anthropic removing this method https://github.com/anthropics/anthropic-sdk-python/releases/tag/v0.39.0 --- pyproject.toml | 7 +++---- requirements.txt | 5 ++--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 1d6ce81..754a179 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "claudesync" -version = "0.6.2" +version = "0.6.3" authors = [ {name = "Jahziah Wagner", email = "540380+jahwag@users.noreply.github.com"}, ] @@ -23,12 +23,11 @@ dependencies = [ "sseclient_py>=1.8.0", "tqdm>=4.66.5", "pytest-cov>=5.0.0", - "claudesync>=0.5.4", "crontab>=1.0.1", "python-crontab>=3.2.0", "Brotli>=1.1.0", - "anthropic>=0.37.1", - "cryptography>=3.4.7", + "anthropic>=0.34.2,<0.39.0", + "cryptography>=42.0.4", ] keywords = [ "sync", diff --git a/requirements.txt b/requirements.txt index 96a49c3..b8306bc 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,9 +7,8 @@ setuptools>=73.0.1 sseclient_py>=1.8.0 tqdm>=4.66.5 pytest-cov>=5.0.0 -claudesync>=0.5.4 crontab>=1.0.1 python-crontab>=3.2.0 Brotli>=1.1.0 -anthropic>=0.37.1 -cryptography>=3.4.7 \ No newline at end of file +anthropic>=0.34.2,<0.39.0 +cryptography>=42.0.4 \ No newline at end of file