From nobody Sun Mar 31 03:38:58 2024 X-Original-To: dev-commits-ports-all@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 4V6fyC1VF6z5Gh9l; Sun, 31 Mar 2024 03:38:59 +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 4V6fyC0xZ6z4D84; Sun, 31 Mar 2024 03:38:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711856339; 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=OujNPjN+tbzz0Ucrqb4flPKO1W3PpEVzzZxl0/ykQtA=; b=PLCrZbL6XDu7Yyit+IhlaB+kv6Ga3IH0eqgXN3RF8qjigBvixnaZZ+NMO8BjEurXlbfa4B 17x3IxUrrw/Zyed1dBFk7fRDv3/IeIoenDcNVXfM9DASkLjY+MBLAyBz411LBNRmpHEU2H B/0Kh/ATDGQSMRSuoyg1qKOpsLEyqG4UahSPt7tn4fldvnmMBBZ7cRIe+mx00qcs1a+XrV qXV6vjsTJrqBa+asPvAV5MGqNjGkkhmJDTlT1LQz7J0PVtkIvJJRcNGyOtRntyxLfi+O2P /fly+zv/l0vZ3IcE3EJfQxv/njNmfUGHWMaE3RMQywXSoPeM04zU1y+ZYM5d6g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711856339; a=rsa-sha256; cv=none; b=KCFYUW64YAX41jY6HcsfpabY+FHMIvO1jj5nWsifr+kcQ0RGeSF3oNZybRwg8SWsUdQutF lEWN6q4bGcvspAPQ0itzM6XGoDTsXhXY8u73BqhmuGOKxuiv52KYVI23kFt3k5N550cUOO WtfQ1uaJbfaHL9eaqyehID6czZFpeQKqLLg3+kWyBT5JMJVmXBTVVhdtlovRDCBGthVEex o/who1E8lF1GUji/kDpaGLQHQQkEzSAgxBi+6+me1H1PgjQC01xfTNY5e5KN7EG1eEJtJL U4MaAaAlo0gapqEgc0wcCuQ7v4CC8mDCLm/1JWzQY1uQhR8S8l5L+5W6Os/uXA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711856339; 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=OujNPjN+tbzz0Ucrqb4flPKO1W3PpEVzzZxl0/ykQtA=; b=sw1XpqHQGLS3eWHY10+KzHCg/mWNPZVbw6MS81DLZQpez4eGWbLxv3mhgPRVsTKF44nxvn YRd8YCf4T5wtDUzUatJQc23YOXdfFZbMEeixUKxM8Yqtuk6kBYWFmmUKAGtgm0+Ih65vSk jSFmYQM9/ojVRIPehJOG/3Uu4356bppFmvzS/vqXWRUQf5t+tWxmttkB6aO3U8wNfLDG0A iMh+3V7wmmhbzhjMN/3DAh2AudEEHjMXlZRKMaB1bukCPELt7uNizHxbDD2QYVFpJ+OIId 5n2c+qLzqjvzqAR7Ry/N4not1gC3oZKEM1dwb/j2h7tHoVlfnaLKvzdFuN7PAA== 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 4V6fyC0JfRzLvp; Sun, 31 Mar 2024 03:38:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 42V3cw7N075813; Sun, 31 Mar 2024 03:38:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 42V3cw3G075810; Sun, 31 Mar 2024 03:38:58 GMT (envelope-from git) Date: Sun, 31 Mar 2024 03:38:58 GMT Message-Id: <202403310338.42V3cw3G075810@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 9815657e7976 - main - devel/py-pyfakefs: Add py-pyfakefs 5.3.5 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9815657e797620996d1276790e3762e4833e9851 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=9815657e797620996d1276790e3762e4833e9851 commit 9815657e797620996d1276790e3762e4833e9851 Author: Po-Chuan Hsieh AuthorDate: 2024-03-31 03:05:06 +0000 Commit: Po-Chuan Hsieh CommitDate: 2024-03-31 03:05:06 +0000 devel/py-pyfakefs: Add py-pyfakefs 5.3.5 pyfakefs implements a fake file system that mocks the Python file system modules. Using pyfakefs, your tests operate on a fake file system in memory without touching the real disk. The software under test requires no modification to work with pyfakefs. Pyfakefs creates a new empty in-memory file system at each test start, which replaces the real filesystem during the test. Think of pyfakefs as making a per-test temporary directory, except for an entire file system. There are several means to achieve this: by using the fs fixture if running pytest, by using fake_filesystem_unittest.TestCase as a base class if using unittest, by using a fake_filesystem_unittest.Patcher instance as a context manager, or by using the patchfs decorator. --- devel/Makefile | 1 + devel/py-pyfakefs/Makefile | 24 ++++++++++++++++++++++++ devel/py-pyfakefs/distinfo | 3 +++ devel/py-pyfakefs/pkg-descr | 13 +++++++++++++ 4 files changed, 41 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index d7e485d6c5d5..e67c8ff1f605 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5350,6 +5350,7 @@ SUBDIR += py-pyee SUBDIR += py-pyelftools SUBDIR += py-pyface + SUBDIR += py-pyfakefs SUBDIR += py-pyfcm SUBDIR += py-pyflakes SUBDIR += py-pyformance diff --git a/devel/py-pyfakefs/Makefile b/devel/py-pyfakefs/Makefile new file mode 100644 index 000000000000..15bb37b14aca --- /dev/null +++ b/devel/py-pyfakefs/Makefile @@ -0,0 +1,24 @@ +PORTNAME= pyfakefs +PORTVERSION= 5.3.5 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Implement a fake file system that mocks the Python file system modules +WWW= https://pytest-pyfakefs.readthedocs.io/en/stable/ \ + https://github.com/jmcgeheeiv/pyfakefs + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/COPYING + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}undefined>=0:devel/py-undefined@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 pytest + +NO_ARCH= yes + +.include diff --git a/devel/py-pyfakefs/distinfo b/devel/py-pyfakefs/distinfo new file mode 100644 index 000000000000..d22cb346ed93 --- /dev/null +++ b/devel/py-pyfakefs/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1710603292 +SHA256 (pyfakefs-5.3.5.tar.gz) = 7cdc500b35a214cb7a614e1940543acc6650e69a94ac76e30f33c9373bd9cf90 +SIZE (pyfakefs-5.3.5.tar.gz) = 196773 diff --git a/devel/py-pyfakefs/pkg-descr b/devel/py-pyfakefs/pkg-descr new file mode 100644 index 000000000000..4e82fbb5cd45 --- /dev/null +++ b/devel/py-pyfakefs/pkg-descr @@ -0,0 +1,13 @@ +pyfakefs implements a fake file system that mocks the Python file system +modules. Using pyfakefs, your tests operate on a fake file system in memory +without touching the real disk. The software under test requires no modification +to work with pyfakefs. + +Pyfakefs creates a new empty in-memory file system at each test start, which +replaces the real filesystem during the test. Think of pyfakefs as making a +per-test temporary directory, except for an entire file system. + +There are several means to achieve this: by using the fs fixture if running +pytest, by using fake_filesystem_unittest.TestCase as a base class if using +unittest, by using a fake_filesystem_unittest.Patcher instance as a context +manager, or by using the patchfs decorator.