From nobody Tue Feb 21 09:05:37 2023 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 4PLYKZ0dYbz3tHv1; Tue, 21 Feb 2023 09:05:38 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PLYKZ06cdz3rHT; Tue, 21 Feb 2023 09:05:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676970338; 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=1xtBdmv95fervHXKg3xkHPh1W9+wHCRqfNsIkl0IQBY=; b=gbjVfLlDr3HQC2eZ6awbu0zMtFec4SvAfJb4HVG36+nSYjn/VxKi3mRp+PAdnlkMt3x1dU YY5YlHyuMHVdKlWidJt5AbnSs5MTnpNT4FIQZyd6tmnd8gvOakTvqOad7OTSan4qn3UhmX zVXtFcdqlv7biMYAZVCEYXbMagS9FBYvRs6ak2Gg7gEtyQXrmm8ZZz3EgXWEYzZ1sImzSi mvM/n8a2plfxfEBOfHtVI1u3a7pur6rsR02OdXnwW86HyOzRM7u8y3DtkCLtnhXzjopUeB AIsZAE//UP58UsY61iUt5UtJklSYJiVLXXYWA4jL874jm+WQ1Q4FP3fGMmO1+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676970338; 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=1xtBdmv95fervHXKg3xkHPh1W9+wHCRqfNsIkl0IQBY=; b=KdkRNJ65AWyy9AziUFxSavoT2m0DmDdunF2cfAJUD49cPUu7SfQQHo2rgv2rsg2+jdjyqb 3uq3khKCA3VPrD91tSRMGVuAOjdlKgDF8e2jCkMmoaqvQCP1OFdF62EmaTuqTRa/qM9aMG Jnf8B+JeOwXBYCZ+GGSeozhvPWk9Xwb8UBIM8uR6EmHPso7ljFRU2tsFBYv4ohQXBCJjt/ 7RO3hVHi4gEHdMq0hgi+kUnm19MHWKTdKp8TlV7J2kGJp1ytn4kYKJTkr5oIJUMH0h6+Vh gVVR1R+jIeBox9iZP42N+TGn3/OGLtAVIOkVBOtdYGQgZGKLDr00IzrkqJgZXw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676970338; a=rsa-sha256; cv=none; b=dg9W+706dEuJhz0YRd6BjDtd8z/rpJEGpQfauYiQy2IakSiqrHI4mxIIQFOfkIEWOZ1kaw IjLbXN0C+9aD+InfftHgIOUoVygztUbdR2cEE1FIm8CUQXVjaRiL29V4vGN9pCxq3dcpre qy+3Dm7kHwS+e+5i/KqZSjnmhio5YLwts39Ga4vc4eigqSgsGLEDOdLDlIfYuIdbOzdDEL gizCHi+Py4KyG3RkxiiH7CVZHtOHYDdaVQwmVCt5WmSqthEraFrhzbp/hOKcotBgwEBa1r oio5P/ph9e+phsA55Xoo8ZWkHr4snfVBaU5XTdqeHQNdLFg2PyoTZglex+is9A== 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 4PLYKY5wZ0zG3y; Tue, 21 Feb 2023 09:05:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 31L95bP4095830; Tue, 21 Feb 2023 09:05:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31L95b7n095829; Tue, 21 Feb 2023 09:05:37 GMT (envelope-from git) Date: Tue, 21 Feb 2023 09:05:37 GMT Message-Id: <202302210905.31L95b7n095829@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: 57d6620ee72e - main - devel/py-lazy_loader: New port: Load subpackages and functions on demand easily 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: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: 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: 57d6620ee72e7614833e190de02b213f58c9e0e7 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=57d6620ee72e7614833e190de02b213f58c9e0e7 commit 57d6620ee72e7614833e190de02b213f58c9e0e7 Author: Yuri Victorovich AuthorDate: 2023-02-21 08:44:09 +0000 Commit: Yuri Victorovich CommitDate: 2023-02-21 09:05:31 +0000 devel/py-lazy_loader: New port: Load subpackages and functions on demand easily --- devel/Makefile | 1 + devel/py-lazy_loader/Makefile | 23 +++++++++++++++++++++++ devel/py-lazy_loader/distinfo | 3 +++ devel/py-lazy_loader/pkg-descr | 3 +++ 4 files changed, 30 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 0f43ffaaca65..7191b0eecdfe 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4808,6 +4808,7 @@ SUBDIR += py-lazr.uri SUBDIR += py-lazy SUBDIR += py-lazy-object-proxy + SUBDIR += py-lazy_loader SUBDIR += py-libcst SUBDIR += py-libcst03 SUBDIR += py-libioc diff --git a/devel/py-lazy_loader/Makefile b/devel/py-lazy_loader/Makefile new file mode 100644 index 000000000000..ad6d7928580f --- /dev/null +++ b/devel/py-lazy_loader/Makefile @@ -0,0 +1,23 @@ +PORTNAME= lazy_loader +PORTVERSION= 0.1 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Load subpackages and functions on demand easily +WWW= https://scientific-python.org/specs/spec-0001/ + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE.md + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flit-core>=3.7<4:devel/py-flit-core@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}codecov>=2.1:devel/py-codecov@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-cov>0:devel/py-pytest-cov@${PY_FLAVOR} + +USES= python:3.7+ +USE_PYTHON= pep517 autoplist pytest + +NO_ARCH= yes + +.include diff --git a/devel/py-lazy_loader/distinfo b/devel/py-lazy_loader/distinfo new file mode 100644 index 000000000000..4a6342e118f5 --- /dev/null +++ b/devel/py-lazy_loader/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1676968364 +SHA256 (lazy_loader-0.1.tar.gz) = 77ce7f2737ebabf9c0ff73b4a99c947876d74d24c2f026544e32246ecca5feca +SIZE (lazy_loader-0.1.tar.gz) = 10745 diff --git a/devel/py-lazy_loader/pkg-descr b/devel/py-lazy_loader/pkg-descr new file mode 100644 index 000000000000..f7b788928b88 --- /dev/null +++ b/devel/py-lazy_loader/pkg-descr @@ -0,0 +1,3 @@ +lazy_loader serves these purposes: +* Allow subpackages to be made visible to users without incurring import costs +* Allow external libraries to be imported only when used, improving import times