diff --git a/misc/py-anthropic/Makefile b/misc/py-anthropic/Makefile index 774c47779e7d..0ffa80933e1b 100644 --- a/misc/py-anthropic/Makefile +++ b/misc/py-anthropic/Makefile @@ -1,31 +1,30 @@ PORTNAME= anthropic -DISTVERSION= 0.120.2 +DISTVERSION= 1.2.0 CATEGORIES= misc python # machine-learning MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= olivier@FreeBSD.org COMMENT= Convenient access to the Anthropic REST API via python WWW= https://github.com/anthropics/anthropic-sdk-python LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatch-fancy-pypi-readme>=0:devel/py-hatch-fancy-pypi-readme@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}anyio>=3.5.0:devel/py-anyio@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}distro>=1.7.0:sysutils/py-distro@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}docstring_parser>=0.15:textproc/py-docstring_parser@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}httpx>=0.25.0:www/py-httpx@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}httpx2>=2.0.0:www/py-httpx2@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}jiter>=0.4.0:textproc/py-jiter@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pydantic2>=1.9.0:devel/py-pydantic2@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}sniffio>=0:devel/py-sniffio@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.14:devel/py-typing-extensions@${PY_FLAVOR} USES= python USE_PYTHON= pep517 autoplist NO_ARCH= yes .include diff --git a/misc/py-anthropic/distinfo b/misc/py-anthropic/distinfo index 9be9ecb8b0c0..a87bf8c778fd 100644 --- a/misc/py-anthropic/distinfo +++ b/misc/py-anthropic/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1785852282 -SHA256 (anthropic-0.120.2.tar.gz) = 9722efc10c27a30a69f5338ddacdb35bc6a64297a4e4ba729bf83af873d5fb3a -SIZE (anthropic-0.120.2.tar.gz) = 1008421 +TIMESTAMP = 1788068163 +SHA256 (anthropic-1.2.0.tar.gz) = 12f8eedee7b7fb5685837b1371b7bfae1b281703f62355f4632598ec2fc53b34 +SIZE (anthropic-1.2.0.tar.gz) = 1137443 diff --git a/misc/py-anthropic/files/patch-pyproject.toml b/misc/py-anthropic/files/patch-pyproject.toml index cab5675e6923..2ff15e54630e 100644 --- a/misc/py-anthropic/files/patch-pyproject.toml +++ b/misc/py-anthropic/files/patch-pyproject.toml @@ -1,11 +1,11 @@ ---- pyproject.toml.orig 2020-02-02 00:00:00 UTC +--- pyproject.toml.orig 2026-08-22 07:29:04 UTC +++ pyproject.toml -@@ -95,7 +95,7 @@ pydantic-v2 = [ +@@ -98,7 +98,7 @@ pydantic-v2 = [ ] [build-system] --requires = ["hatchling==1.26.3", "hatch-fancy-pypi-readme"] -+requires = ["hatchling>=1.26.3", "hatch-fancy-pypi-readme"] +-requires = ["hatchling==1.26.3", "hatch-fancy-pypi-readme>=22.4, <26"] ++requires = ["hatchling>=1.26.3", "hatch-fancy-pypi-readme>=22.4, <26"] build-backend = "hatchling.build" [tool.hatch.build]