devel/py-lazy_loader: New port: Load subpackages and functions on demand easily

This commit is contained in:
Yuri Victorovich 2023-02-21 00:44:09 -08:00
parent 70e129b0b0
commit 57d6620ee7
4 changed files with 30 additions and 0 deletions

View file

@ -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

View file

@ -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 <bsd.port.mk>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1676968364
SHA256 (lazy_loader-0.1.tar.gz) = 77ce7f2737ebabf9c0ff73b4a99c947876d74d24c2f026544e32246ecca5feca
SIZE (lazy_loader-0.1.tar.gz) = 10745

View file

@ -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