summaryrefslogtreecommitdiff
path: root/devel/py-uv-build
diff options
context:
space:
mode:
Diffstat (limited to 'devel/py-uv-build')
-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
4 files changed, 70 insertions, 0 deletions
diff --git a/devel/py-uv-build/Makefile b/devel/py-uv-build/Makefile
new file mode 100644
index 000000000000..42a7abd95c2d
--- /dev/null
+++ b/devel/py-uv-build/Makefile
@@ -0,0 +1,28 @@
+PORTNAME= uv-build
+DISTVERSION= 0.9.1
+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..09953f98b9c5
--- /dev/null
+++ b/devel/py-uv-build/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1760077963
+SHA256 (uv_build-0.9.1.tar.gz) = 677fc8cec7aee555aa60b37e299f88fb3f600dbc5c530351a2115327b9aabc9e
+SIZE (uv_build-0.9.1.tar.gz) = 332775
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.