From nobody Sat Jan 6 08:06:44 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 4T6XwP0MC5z55qJM; Sat, 6 Jan 2024 08:06:45 +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 4T6XwN6dcFz4fww; Sat, 6 Jan 2024 08:06:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704528404; 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=hSlFU9i9mgZbprHjihGmpqt/riiaym9xTihpnUBhahk=; b=v+HsDw9EtebNuJz2aSp0Q8oJFgv/WX6ykkg2G7OAqX27EaiJfogwZFbD3G+usJUOJN2lyJ rOnBwnFxxI1GaGZBa+lPbzagZW/NZSJJSP/We+yUsgrRexKEwqf29mrY6yBUAbArAz5L5f jjkFYxz2vXskYBDUxL3M6YRNrPBRSsMVebOAE2HCrN5HKFVL/TOEHwyc2M0S0ODKnEyPgU ejxYn7iwhs3+eNTnUwLphZPxZR9/SP20XevhUYjMYsgl1dReFOaJMzXvGFGFGDPzZy26GA lEcRnGwkfGhpb0LSuCwFwz24TLKe7V46/UReS9sD3irahtV3CPW5ymqvAFnMWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704528404; 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=hSlFU9i9mgZbprHjihGmpqt/riiaym9xTihpnUBhahk=; b=OAXaN75nnklVEAj8d43BnDZC0TAGH6cTPzoWbZFWpieahJnQmy340AUkcmzeyEWGEsa9vw Mmi53fWQDglG+YqnT9OYbdSR0LGIZXgpTeYf+vJyvlcATjMXQu/+OC5ThtIy2WVD9riAPJ YDaFc1ATuYXTFS1LV6f/nHTHcTerNytF3HY3AJ3j9JTgbbRwBtOKnP9RCChZkun7SwOYjZ nmJPthgDLnruAfGFctYPAQevoWF2Jne73yano5/BGvYsmMmkpyKdhS4oXH1Ez1kaDXhPEN nCwVGbs/kOmEMO5he4EYKScLWGVJOIYxWQg/ZHqUnsg2Fh1oSwrO+IULK5Nf5g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704528404; a=rsa-sha256; cv=none; b=gwESmz1jXE5gVETyLGJnErLa/kXOlv8ejsEs7DvdE9wlDrka06vil36uxYW3fw1gQOAC4G ENPc5Ut1VEFZWaW716pb45R4MhBXTbCWSIQ3pNR2nAkmZ048qLmUiNrdDPCifD9tPKe1lo 5WMlkrjF1fhEex+i0ptzG4jiaNqizz2dMYYCX04WjJVLRzMXPcwWSriS8qCUSOwYI/P9nV a2R6hSwF2SH9MSRxkFO3vWammkIMTKhfTqj//Dt8C5ckGmA3lDh9nd1fq3XkTQMsbVyxfA mklz3d9oGQPks9+omFOcRjJfVysJLqJlWyv6V5GEBOEItJlUVtRxrEvLF/oFhA== 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 4T6XwN5hBtzYPJ; Sat, 6 Jan 2024 08:06:44 +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 40686igv021199; Sat, 6 Jan 2024 08:06:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40686idX021196; Sat, 6 Jan 2024 08:06:44 GMT (envelope-from git) Date: Sat, 6 Jan 2024 08:06:44 GMT Message-Id: <202401060806.40686idX021196@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: 98e9111bf64f - main - devel/py-pytest-socket: New port: Pytest Plugin to disable socket calls during tests 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: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 98e9111bf64f41fcebe07ca65db01a6254cdf7d3 Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=98e9111bf64f41fcebe07ca65db01a6254cdf7d3 commit 98e9111bf64f41fcebe07ca65db01a6254cdf7d3 Author: Yuri Victorovich AuthorDate: 2024-01-06 05:45:54 +0000 Commit: Yuri Victorovich CommitDate: 2024-01-06 08:06:38 +0000 devel/py-pytest-socket: New port: Pytest Plugin to disable socket calls during tests --- devel/Makefile | 1 + devel/py-pytest-socket/Makefile | 33 +++++++++++++++++++++++++++++++++ devel/py-pytest-socket/distinfo | 3 +++ devel/py-pytest-socket/pkg-descr | 2 ++ 4 files changed, 39 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index e5d94b2e7385..a418cfa6042f 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5416,6 +5416,7 @@ SUBDIR += py-pytest-runner SUBDIR += py-pytest-services SUBDIR += py-pytest-shutil + SUBDIR += py-pytest-socket SUBDIR += py-pytest-subprocess SUBDIR += py-pytest-subtests SUBDIR += py-pytest-sugar diff --git a/devel/py-pytest-socket/Makefile b/devel/py-pytest-socket/Makefile new file mode 100644 index 000000000000..5291670aab72 --- /dev/null +++ b/devel/py-pytest-socket/Makefile @@ -0,0 +1,33 @@ +PORTNAME= pytest-socket +DISTVERSION= 0.6.0 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= ${PORTNAME:S/-/_/}-${PORTVERSION} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Pytest Plugin to disable socket calls during tests +WWW= https://github.com/miketheman/pytest-socket + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=6.2.5:devel/py-pytest@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}asynctest>=0.13.0:devel/py-asynctest@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}coverage>=7.0:devel/py-coverage@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}httpx>=0.23.0:www/py-httpx@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-httpbin>=1.0:devel/py-pytest-httpbin@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-randomly>=3.5.0:devel/py-pytest-randomly@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest>=7.0:devel/py-pytest@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}requests>=2.26.0:www/py-requests@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}starlette>=0.23.0:www/py-starlette@${PY_FLAVOR} + +USES= python +USE_PYTHON= pep517 autoplist pytest + +NO_ARCH= yes + +# tests are broken because they use the pytest-httpbin package that is broken with last werkzeug versions for a very long time + +.include diff --git a/devel/py-pytest-socket/distinfo b/devel/py-pytest-socket/distinfo new file mode 100644 index 000000000000..f6e4cd5b5f35 --- /dev/null +++ b/devel/py-pytest-socket/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1704478971 +SHA256 (pytest_socket-0.6.0.tar.gz) = 363c1d67228315d4fc7912f1aabfd570de29d0e3db6217d61db5728adacd7138 +SIZE (pytest_socket-0.6.0.tar.gz) = 12484 diff --git a/devel/py-pytest-socket/pkg-descr b/devel/py-pytest-socket/pkg-descr new file mode 100644 index 000000000000..e597870a2230 --- /dev/null +++ b/devel/py-pytest-socket/pkg-descr @@ -0,0 +1,2 @@ +pytest-socket is a plugin to use with Pytest to disable or restrict socket calls +during tests to ensure network calls are prevented.