git: 2fbd025f7ab8 - main - devel/py-types-s3transfer: New port: Type annotations and code completion for s3transfer
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 14 Sep 2026 18:52:09 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=2fbd025f7ab8c4deb9ac7a6d54ffa8d5bee17e9d
commit 2fbd025f7ab8c4deb9ac7a6d54ffa8d5bee17e9d
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-09-14 01:55:22 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-09-14 18:52:03 +0000
devel/py-types-s3transfer: New port: Type annotations and code completion for s3transfer
PR: 298334
Approved by: Baptiste Daroussin <bapt@FreeBSD.org> (on behalf of portmgr@)
---
devel/Makefile | 1 +
devel/py-types-s3transfer/Makefile | 25 +++++++++++++++++
devel/py-types-s3transfer/distinfo | 3 ++
.../py-types-s3transfer/files/patch-pyproject.toml | 32 ++++++++++++++++++++++
devel/py-types-s3transfer/pkg-descr | 2 ++
5 files changed, 63 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index 4f9280d0e51d..289d789e2d2e 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -6413,6 +6413,7 @@
SUBDIR += py-types-pyyaml
SUBDIR += py-types-requests
SUBDIR += py-types-retry
+ SUBDIR += py-types-s3transfer
SUBDIR += py-types-setuptools
SUBDIR += py-types-toml
SUBDIR += py-typeshed-client
diff --git a/devel/py-types-s3transfer/Makefile b/devel/py-types-s3transfer/Makefile
new file mode 100644
index 000000000000..af8bd51c36a3
--- /dev/null
+++ b/devel/py-types-s3transfer/Makefile
@@ -0,0 +1,25 @@
+PORTNAME= types-s3transfer
+DISTVERSION= 0.16.0
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= ${PORTNAME:S/-/_/}-${DISTVERSION}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Type annotations and code completion for s3transfer
+WWW= https://github.com/youtype/types-s3transfer
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PY_SETUPTOOLS} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}awscrt>0:devel/py-awscrt@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}botocore>0:devel/py-botocore@${PY_FLAVOR} # deps not declared, see https://github.com/youtype/types-s3transfer/issues/4
+
+USES= python
+USE_PYTHON= pep517 autoplist
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-types-s3transfer/distinfo b/devel/py-types-s3transfer/distinfo
new file mode 100644
index 000000000000..08a130b09483
--- /dev/null
+++ b/devel/py-types-s3transfer/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1788824023
+SHA256 (types_s3transfer-0.16.0.tar.gz) = b4636472024c5e2b62278c5b759661efeb52a81851cde5f092f24100b1ecb443
+SIZE (types_s3transfer-0.16.0.tar.gz) = 13557
diff --git a/devel/py-types-s3transfer/files/patch-pyproject.toml b/devel/py-types-s3transfer/files/patch-pyproject.toml
new file mode 100644
index 000000000000..4d48192f95f1
--- /dev/null
+++ b/devel/py-types-s3transfer/files/patch-pyproject.toml
@@ -0,0 +1,32 @@
+-- Fix pyproject.toml for compatibility with the setuptools version in ports.
+-- The upstream project uses PEP 621 features and a modern [tool.setuptools]
+-- "packages" list that the ports setuptools does not validate.
+
+--- pyproject.toml.orig 2026-09-07 23:36:08 UTC
++++ pyproject.toml
+@@ -4,8 +4,7 @@ authors = [{ name = "Vlad Emelianov", email = "vlad.em
+ requires-python = ">=3.9"
+ description = "Type annotations and code completion for s3transfer"
+ authors = [{ name = "Vlad Emelianov", email = "vlad.emelianov.nz@gmail.com" }]
+-license = "MIT"
+-license-files = ["LICENSE"]
++license = {text = "MIT"}
+ readme = "README.md"
+ keywords = ["s3transfer", "type-annotations", "pyright", "mypy", "boto3"]
+ classifiers = [
+@@ -47,11 +46,13 @@ Issues = "https://github.com/youtype/types-s3transfer/
+ Issues = "https://github.com/youtype/types-s3transfer/issues"
+
+ [build-system]
+-requires = ['setuptools>=77.0.0']
++requires = ['setuptools>=0']
+ build-backend = 'setuptools.build_meta'
+
+ [tool.setuptools]
+-packages = ["s3transfer-stubs"]
++[tool.setuptools.packages.find]
++where = ["."]
++include = ["s3transfer-stubs*"]
+
+ [tool.pyright]
+ include = ["s3transfer-stubs"]
diff --git a/devel/py-types-s3transfer/pkg-descr b/devel/py-types-s3transfer/pkg-descr
new file mode 100644
index 000000000000..bc8ea8cf2283
--- /dev/null
+++ b/devel/py-types-s3transfer/pkg-descr
@@ -0,0 +1,2 @@
+Type annotations and code completion support for the s3transfer package.
+These stubs are used by boto3-stubs and related packages.