From nobody Wed Oct 8 08:25:31 2025 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4chR0C6f85z6BYyp; Wed, 08 Oct 2025 08:25:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4chR0C5gBgz3X6p; Wed, 08 Oct 2025 08:25:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759911931; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GUR+THmhKMiibUUS66MCc9ummv+P4iko22mYEz1dzTY=; b=SGcjaI/VEhMdNN2l6XH4CnBJEVzwehbXGRBkHwpfekKAy/QUsGO+BSbfUlRWPYWybMfHUg UoxVolKHuAtJ7XGFyioVghcJpVILdT2JVfEVIs1qRwGdYHrJ0IAKovohn5AvnmzncB3KqS kOg7jEWQwRHadTDVUJP0vjLUcCo/7eMmgv7yEMSbdfiDUS72A2jaB3I4UXR6N/ZceHLIhW nXFjiip+cTWL/OL9jmC08aBs0t330uu4+c91LI/yKIRfhLmPcV1Kvv2M0U4iSmJuFhH8cu OViw/n9T4h1Dg3NVMSmfwQbkZUoZfNv9rLPw49rlgqJYunE8J+VB4j8S8uV0kQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759911931; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GUR+THmhKMiibUUS66MCc9ummv+P4iko22mYEz1dzTY=; b=JPEXlCmAAemvr6m5asmzOL5mlyYl40XfJYWSVARtec1yAUB901lFcEmHxRct5+JP0JVc8D 7j5VQ9yIxhevJY4mJKXlShqSIImRrltD5/W7uj+Ox22Davnf0MbPSeoedPKKk5a8KF17G9 VHZVTotiSR48hcqwNyR9ANSDkhlSZ9iLHKqnFoXZAK1azuZCPmDGr1x0uBOwvaU8uRzPQZ SCHWsCZ4fhKoJAgs6tuld73xKy7YZZd6BiXpGBDi/apA7GFqNFxJQgpcMeErnH6YVh9p++ LHElJcOxA3lD5lJlrjz8+LGGEWbrvCXcLp1gtxoZPbC9GJZPC2+24vFZbpVpFg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1759911931; a=rsa-sha256; cv=none; b=sqIyPAmLFI9nxwEi6RhhdIVxZBL6nncnK6+DrTfckwewWhWVgy41wj4xxcWzazTXn33k3y tmMuYqIz6F6EDo7P7ZieJmoxmdSIeRfbneOs/IS7hIPFXpFfZEKVcTLeSLX0BAmDb/MuHh 5HXywpezJk2t3HTDpLMAPiG+7b6bfsUXlBLs9Ukh8b1RfWihvUB5browAi5IVyVol10sqF nSDnZ369oLf5qn3wxqpwLMbIcEyRF0GRW5sphy0Mikm51HIop6XKwmX2mETsFZyoIyN2lw ICMJksnZ6HZOahL/M6uw/1A8G+OuUlVBU2c/eG64TM4Z2tQ4UFCm20WihVFaHA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4chR0C585Tz7vl; Wed, 08 Oct 2025 08:25:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 5988PV3X087390; Wed, 8 Oct 2025 08:25:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 5988PVmO087387; Wed, 8 Oct 2025 08:25:31 GMT (envelope-from git) Date: Wed, 8 Oct 2025 08:25:31 GMT Message-Id: <202510080825.5988PVmO087387@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 7655f4c8dff6 - main - devel/py-uv: New port: Python package for uv - extremely fast Python package installer List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7655f4c8dff67c3c4b45645d61b33d3cc211370c Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=7655f4c8dff67c3c4b45645d61b33d3cc211370c commit 7655f4c8dff67c3c4b45645d61b33d3cc211370c Author: Yuri Victorovich AuthorDate: 2025-10-08 05:21:51 +0000 Commit: Yuri Victorovich CommitDate: 2025-10-08 08:25:26 +0000 devel/py-uv: New port: Python package for uv - extremely fast Python package installer PR: 290057 Submitted by: Siva Mahadevan (initial version submitted as devel/uv update) --- devel/Makefile | 1 + devel/py-uv/Makefile | 29 ++++++++++++ devel/py-uv/distinfo | 3 ++ devel/py-uv/files/patch-pyproject.toml | 84 ++++++++++++++++++++++++++++++++++ devel/py-uv/pkg-descr | 7 +++ 5 files changed, 124 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 871174ecb288..a10b792cb717 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -6178,6 +6178,7 @@ SUBDIR += py-userpath SUBDIR += py-usort SUBDIR += py-uuid7 + SUBDIR += py-uv SUBDIR += py-uv-dynamic-versioning SUBDIR += py-uvloop SUBDIR += py-validate-pyproject diff --git a/devel/py-uv/Makefile b/devel/py-uv/Makefile new file mode 100644 index 000000000000..c5ea5749819c --- /dev/null +++ b/devel/py-uv/Makefile @@ -0,0 +1,29 @@ +PORTNAME= uv +DISTVERSION= 0.9.0 +CATEGORIES= devel python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Python package for uv - extremely fast Python package installer +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:devel/uv + +USES= python +USE_PYTHON= pep517 autoplist + +USE_GITHUB= yes +GH_ACCOUNT= astral-sh + +NO_ARCH= yes + +.include diff --git a/devel/py-uv/distinfo b/devel/py-uv/distinfo new file mode 100644 index 000000000000..76907016a7c5 --- /dev/null +++ b/devel/py-uv/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1759887559 +SHA256 (astral-sh-uv-0.9.0_GH0.tar.gz) = d97e444fe3aaca5079f3f9b1928a6ac0afc4c3e3d6552e94b23ce07e846f642e +SIZE (astral-sh-uv-0.9.0_GH0.tar.gz) = 4724344 diff --git a/devel/py-uv/files/patch-pyproject.toml b/devel/py-uv/files/patch-pyproject.toml new file mode 100644 index 000000000000..db0b3ee9d1fa --- /dev/null +++ b/devel/py-uv/files/patch-pyproject.toml @@ -0,0 +1,84 @@ +--- pyproject.toml.orig 2025-10-07 23:17:42 UTC ++++ pyproject.toml +@@ -1,11 +1,11 @@ + [build-system] +-requires = ["maturin>=1.0,<2.0"] +-build-backend = "maturin" ++requires = ["setuptools>=61.0", "wheel"] ++build-backend = "setuptools.build_meta" + + [project] + name = "uv" + version = "0.9.0" +-description = "An extremely fast Python package and project manager, written in Rust." ++description = "Python package for uv - extremely fast Python package installer" + authors = [{ name = "Astral Software Inc.", email = "hey@astral.sh" }] + requires-python = ">=3.8" + keywords = [ +@@ -40,60 +40,9 @@ Discord = "https://discord.gg/astral-sh" + Releases = "https://github.com/astral-sh/uv/releases" + Discord = "https://discord.gg/astral-sh" + +-[tool.maturin] +-bindings = "bin" +-manifest-path = "crates/uv/Cargo.toml" +-module-name = "uv" +-python-source = "python" +-strip = true +-include = [ +- { path = "rust-toolchain.toml", format = ["sdist", "wheel"] }, +- # this one isn't discovered by maturin because it's behind a feature flag +- { path = "crates/uv-performance-memory-allocator/**/*", format = ["sdist", "wheel"] }, +- { path = "crates/uv-trampoline/trampolines/*", format = "sdist" }, +- { path = "LICENSE-APACHE", format = "sdist" }, +- { path = "LICENSE-MIT", format = "sdist" }, +-] ++[tool.setuptools] ++packages = ["uv"] ++package-dir = {"" = "python"} + +-[tool.rooster] +-changelog-contributors = false # We exclude contributors from the CHANGELOG file +-major-labels = [] # We do not use the major version number yet +-minor-labels = ["breaking"] +-ignore-labels = ["internal", "ci", "testing"] +-version_files = [ +- "README.md", +- "pyproject.toml", +- "crates/uv/Cargo.toml", +- "crates/uv-version/Cargo.toml", +- "crates/uv-build/Cargo.toml", +- "crates/uv-build/pyproject.toml", +- "docs/getting-started/installation.md", +- "docs/guides/integration/docker.md", +- "docs/guides/integration/pre-commit.md", +- "docs/guides/integration/github.md", +- "docs/guides/integration/aws-lambda.md", +- "docs/concepts/build-backend.md", +- "docs/concepts/projects/init.md", +- "docs/concepts/projects/workspaces.md", +-] +- +-[tool.rooster.section-labels] +-"Breaking changes" = ["breaking"] +-"Enhancements" = ["enhancement", "compatibility", "error messages"] +-"Preview features" = ["preview"] +-"Configuration" = ["configuration"] +-"Performance" = ["performance"] +-"Bug fixes" = ["bug"] +-"Rust API" = ["rustlib"] +-"Documentation" = ["documentation"] +-"Other changes" = ["__unknown__"] +- +-[tool.mypy] +-ignore_missing_imports = true +-files = [ +- "crates/uv-python/*.py", +- "python/uv/*.py", +-] +- +-[tool.uv] +-managed = false ++[tool.setuptools.package-data] ++uv = ["py.typed"] +\ No newline at end of file diff --git a/devel/py-uv/pkg-descr b/devel/py-uv/pkg-descr new file mode 100644 index 000000000000..d82b791c2739 --- /dev/null +++ b/devel/py-uv/pkg-descr @@ -0,0 +1,7 @@ +Python package for uv, an extremely fast Python package installer and resolver. + +This package provides Python bindings for uv functionality and requires the +uv binary to be installed separately from the devel/uv port. + +The uv module allows Python programs to programmatically interact with uv +for package management and dependency resolution tasks.