git: 96d765b3463a - main - misc/py-openai: update 3.8.0 → 3.28.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 11 Oct 2026 16:58:11 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=96d765b3463ab9500dca4b81afa36bd7a5372e8a
commit 96d765b3463ab9500dca4b81afa36bd7a5372e8a
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-10-11 16:35:58 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-10-11 16:58:01 +0000
misc/py-openai: update 3.8.0 → 3.28.0
---
misc/py-openai/Makefile | 40 ++++++++++++++-----------------
misc/py-openai/distinfo | 6 ++---
misc/py-openai/files/patch-pyproject.toml | 10 ++++----
3 files changed, 27 insertions(+), 29 deletions(-)
diff --git a/misc/py-openai/Makefile b/misc/py-openai/Makefile
index 8afad3661875..00a10da835ee 100644
--- a/misc/py-openai/Makefile
+++ b/misc/py-openai/Makefile
@@ -1,5 +1,5 @@
PORTNAME= openai
-DISTVERSION= 3.8.0
+DISTVERSION= 3.28.0
CATEGORIES= misc # machine-learning
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -11,30 +11,21 @@ WWW= https://github.com/openai/openai-python
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= ${PY_SETUPTOOLS} \
- ${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}
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}anyio>=4.10.0:devel/py-anyio@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}distro>=1.7.0:sysutils/py-distro@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}httpx>=0.27.0:www/py-httpx@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}httpx2>=2.12.0:www/py-httpx2@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}jiter>=0.16.0:textproc/py-jiter@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pydantic2>=1.10.13:devel/py-pydantic2@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}sniffio>0:devel/py-sniffio@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}tqdm>4:misc/py-tqdm@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.14:devel/py-typing-extensions@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}jiter>=0.16.0:textproc/py-jiter@${PY_FLAVOR}
-RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}numpy>=1.16:math/py-numpy@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.14:devel/py-typing-extensions@${PY_FLAVOR}
+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}numpy>=1:math/py-numpy@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pandas>=1.2.3:math/py-pandas@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}azure-identity>0:devel/py-azure-identity@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}dirty-equals>=0.6.0:devel/py-dirty-equals@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=6.7.0:devel/py-importlib-metadata@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}mypy>0:devel/py-mypy@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}pyright>=1.1.359:devel/py-pyright@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}pytest-asyncio>0:devel/py-pytest-asyncio@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}respx>0:www/py-respx@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}griffe>=1:textproc/py-griffe@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}inline-snapshot>=0.28.0:devel/py-inline-snapshot@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest-asyncio>=1.4.0:devel/py-pytest-asyncio@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest-xdist>=3.6.1:devel/py-pytest-xdist@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}rich>=13.7.1:textproc/py-rich@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}ruff>0:devel/py-ruff@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}time-machine>=0:devel/py-time-machine@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}trio>=0.22.2:net/py-trio@${PY_FLAVOR}
USES= python
@@ -42,12 +33,17 @@ USE_PYTHON= pep517 concurrent autoplist pytest # tests fail because api_key need
TEST_ENV= ${MAKE_ENV} \
PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} \
- OPENAI_API_KEY=sk-test \
- PYTEST_ADDOPTS="-p no:benchmark --ignore=tests/api_resources --ignore=tests/test_uv_workflows.py --ignore=tests/lib/test_fine_tuning_positional_arguments.py --ignore=tests/lib/chat/test_completions_streaming.py --ignore=tests/test_tls_hostname.py"
+ OPENAI_API_KEY=sk-test
+ #PYTEST_ADDOPTS="-p no:benchmark --ignore=tests/api_resources --ignore=tests/test_uv_workflows.py --ignore=tests/lib/test_fine_tuning_positional_arguments.py --ignore=tests/lib/chat/test_completions_streaming.py --ignore=tests/test_tls_hostname.py"
+TEST_ARGS= --disable-plugin-autoload \
+ -p inline_snapshot \
+ -p pytest_asyncio.plugin \
+ -p xdist.plugin \
+ -p anyio
NO_ARCH= yes
# tests as of 3.8.0: 3155 passed, 8 skipped in 38.77s
-# (ignored tests require a live OpenAI API endpoint or uv-specific CI fixtures)
+# (ignored tests require a live OpenAI API endpoint, uv-specific CI fixtures, or inline-snapshot update mode)
.include <bsd.port.mk>
diff --git a/misc/py-openai/distinfo b/misc/py-openai/distinfo
index 1f581a1a563a..3e052699f7d0 100644
--- a/misc/py-openai/distinfo
+++ b/misc/py-openai/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1788825709
-SHA256 (openai-3.8.0.tar.gz) = 6138a5a1333a1be9e4d1edea2d160b311542787b029543f87de4961c66358d16
-SIZE (openai-3.8.0.tar.gz) = 1473819
+TIMESTAMP = 1791707250
+SHA256 (openai-3.28.0.tar.gz) = cf0509d32d7bd8eb6a3db02417957cb455212b6629d071826b9ea1f61659e2a4
+SIZE (openai-3.28.0.tar.gz) = 1827445
diff --git a/misc/py-openai/files/patch-pyproject.toml b/misc/py-openai/files/patch-pyproject.toml
index d55d74132c12..6504c921414c 100644
--- a/misc/py-openai/files/patch-pyproject.toml
+++ b/misc/py-openai/files/patch-pyproject.toml
@@ -1,11 +1,13 @@
-- Allow building with the hatchling version available in ports.
---- pyproject.toml.orig 2026-09-07 00:00:00 UTC
+--- pyproject.toml.orig 2020-02-02 00:00:00 UTC
+++ pyproject.toml
-@@ -108,4 +108,4 @@ build-backend = "hatchling.build"
+@@ -108,7 +108,7 @@ build-constraint-dependencies = [
+
+
[build-system]
--requires = ["hatchling==1.27.0"]
-+requires = ["hatchling>=1.27.0"]
+-requires = ["hatchling==1.32.4"]
++requires = ["hatchling>0"]
build-backend = "hatchling.build"
[tool.hatch.build]