summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2025-10-07 22:40:09 -0700
committerYuri Victorovich <yuri@FreeBSD.org>2025-10-08 01:25:26 -0700
commit0a4b28a9810230ebd378d7437a16adbb5df0f436 (patch)
tree24bbf72d2af8899b54e14d5c8ef60593e86cd419
parentdevel/py-uv: New port: Python package for uv - extremely fast Python package ... (diff)
devel/py-uv-build: New port: uv: Build backend
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-uv-build/Makefile28
-rw-r--r--devel/py-uv-build/distinfo3
-rw-r--r--devel/py-uv-build/files/patch-pyproject.toml35
-rw-r--r--devel/py-uv-build/pkg-descr4
5 files changed, 71 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index a10b792cb717..3b3831ec279b 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -6179,6 +6179,7 @@
SUBDIR += py-usort
SUBDIR += py-uuid7
SUBDIR += py-uv
+ SUBDIR += py-uv-build
SUBDIR += py-uv-dynamic-versioning
SUBDIR += py-uvloop
SUBDIR += py-validate-pyproject
diff --git a/devel/py-uv-build/Makefile b/devel/py-uv-build/Makefile
new file mode 100644
index 000000000000..010f58804764
--- /dev/null
+++ b/devel/py-uv-build/Makefile
@@ -0,0 +1,28 @@
+PORTNAME= uv-build
+DISTVERSION= 0.9.0
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= ${PORTNAME:S/-/_/}-${DISTVERSION}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= uv: Build backend
+WWW= https://astral.sh/ \
+ https://docs.astral.sh/uv/ \
+ https://github.com/astral-sh/uv
+
+LICENSE= APACHE20 MIT
+LICENSE_COMB= dual
+LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE-APACHE
+LICENSE_FILE_MIT= ${WRKSRC}/LICENSE-MIT
+
+BUILD_DEPENDS= ${PY_SETUPTOOLS} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= uv-build:devel/uv
+
+USES= python
+USE_PYTHON= pep517 autoplist
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-uv-build/distinfo b/devel/py-uv-build/distinfo
new file mode 100644
index 000000000000..ca106692a05a
--- /dev/null
+++ b/devel/py-uv-build/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1759901250
+SHA256 (uv_build-0.9.0.tar.gz) = 2856b43e2cc6828bbdf2e5deca6e983b358001aaa705689d03dd3bdf33d2abca
+SIZE (uv_build-0.9.0.tar.gz) = 332461
diff --git a/devel/py-uv-build/files/patch-pyproject.toml b/devel/py-uv-build/files/patch-pyproject.toml
new file mode 100644
index 000000000000..9f1bc73e3c22
--- /dev/null
+++ b/devel/py-uv-build/files/patch-pyproject.toml
@@ -0,0 +1,35 @@
+--- pyproject.toml.orig 1970-01-01 00:00:00 UTC
++++ pyproject.toml
+@@ -7,7 +7,6 @@ keywords = [
+ keywords = [
+ "uv", "requirements", "packaging"
+ ]
+-license = "MIT OR Apache-2.0"
+ classifiers = [
+ "Development Status :: 5 - Production/Stable",
+ "Environment :: Console",
+@@ -37,19 +36,12 @@ Discord = "https://discord.gg/astral-sh"
+ Discord = "https://discord.gg/astral-sh"
+
+ [build-system]
+-requires = ["maturin>=1.0,<2.0"]
+-build-backend = "maturin"
++requires = ["setuptools>=61.0", "wheel"]
++build-backend = "setuptools.build_meta"
+
+-[tool.maturin]
+-bindings = "bin"
+-module-name = "uv_build"
+-python-source = "python"
+-strip = true
+-include = [
+- { path = "LICENSE-APACHE", format = "sdist" },
+- { path = "LICENSE-MIT", format = "sdist" },
+-]
+-manifest-path = "crates/uv-build/Cargo.toml"
++[tool.setuptools]
++packages = ["uv_build"]
++package-dir = {"" = "python"}
+
+ [tool.uv]
+ managed = false
diff --git a/devel/py-uv-build/pkg-descr b/devel/py-uv-build/pkg-descr
new file mode 100644
index 000000000000..9f506e24e6ca
--- /dev/null
+++ b/devel/py-uv-build/pkg-descr
@@ -0,0 +1,4 @@
+uv-build is a PEP 517 build backend that uses uv to build wheels.
+
+uv is an extremely fast Python package installer and resolver. This package
+allows using uv as a build backend for Python projects.