public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-env/files/, dev-python/pytest-env/
@ 2023-09-25 18:57 Michał Górny
  0 siblings, 0 replies; only message in thread
From: Michał Górny @ 2023-09-25 18:57 UTC (permalink / raw
  To: gentoo-commits

commit:     01d81dda40ea717c6645ce7f0173a36d15e4dbff
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 25 18:54:09 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Sep 25 18:57:07 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01d81dda

dev-python/pytest-env: Remove old

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/pytest-env/Manifest                     |  2 --
 .../pytest-env/files/pytest-env-1.0.0-test.patch   | 36 -------------------
 dev-python/pytest-env/pytest-env-0.8.2.ebuild      | 21 -----------
 dev-python/pytest-env/pytest-env-1.0.0.ebuild      | 41 ----------------------
 4 files changed, 100 deletions(-)

diff --git a/dev-python/pytest-env/Manifest b/dev-python/pytest-env/Manifest
index eed9731c9169..dd0811bfabb3 100644
--- a/dev-python/pytest-env/Manifest
+++ b/dev-python/pytest-env/Manifest
@@ -1,3 +1 @@
-DIST pytest_env-0.8.2.tar.gz 7419 BLAKE2B c07140de76392bcf316935efaa52aea344c7167a95fe497c3702dd2aabc3150641f0903f2de6ee1794453dc2e5b1630d746b2fcb3dbcea8edb9ba066cde0a0b4 SHA512 6fbbb6b1db21ebeb47c472e10adb9bacedcdbbabceeaf93b01146ec7e175005aeef46616a4343bf02b23561c0ff5815506fe356f337371dfc057ee29521f68af
-DIST pytest_env-1.0.0.tar.gz 7456 BLAKE2B 9eaf71aa05a9a4b8783184dce1f1779b5ee54da54839f1113c9276df7cb4c4ef6055aadad7d20063d4c5c24654f2d100970bdae540eac49b89f049b78be49e93 SHA512 9d25c704e253c11e77933911817ba2b42127c13c38615e1cbf11575cfced81c69a46603bef680ee371512788acb6359a76841019837d55151490fd1f093bb83b
 DIST pytest_env-1.0.1.tar.gz 7565 BLAKE2B 26aa1c6a5d44bbe40266bbb62ca62c687dd1d85aed821c271f301ff27a97fdc753d2cdf5feba8b223b33b5b05bf39c55c3df0f1f8f7aae77335f2052a65df6c0 SHA512 422aaa78e25fad7b447f06358b772cacf22d5441ae0aaac22863877424f44703c1329813b068d901d4f2fb9df21bb08a5e4082504b76102d02dd15087d527a01

diff --git a/dev-python/pytest-env/files/pytest-env-1.0.0-test.patch b/dev-python/pytest-env/files/pytest-env-1.0.0-test.patch
deleted file mode 100644
index c86815ebc3a2..000000000000
--- a/dev-python/pytest-env/files/pytest-env-1.0.0-test.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-From 4227409be9a2ca287f227e50fbf4c38ca237b676 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
-Date: Thu, 24 Aug 2023 06:38:30 +0200
-Subject: [PATCH] Disable plugin autoloading in the test suite
-
-Disable plugin autoloading in the test suite to prevent other installed
-plugins from interfering with the test results.  This is particularly
-important since tests are run with cleared environment that could break
-other plugins (e.g. pytest-xvfb is broken by the lack of PATH).
-
-Fixes #48
----
- tests/test_env.py | 9 ++++++++-
- 1 file changed, 8 insertions(+), 1 deletion(-)
-
-diff --git a/tests/test_env.py b/tests/test_env.py
-index 16cd080..a409b60 100644
---- a/tests/test_env.py
-+++ b/tests/test_env.py
-@@ -104,8 +104,15 @@ def test_env(
-     Path(str(tmp_dir / f"test_{test_name}.py")).symlink_to(Path(__file__).parent / "template.py")
-     (tmp_dir / "pytest.ini").write_text(ini, encoding="utf-8")
- 
-+    new_env = {
-+        **env,
-+        "_TEST_ENV": repr(expected_env),
-+        "PYTEST_DISABLE_PLUGIN_AUTOLOAD": "1",
-+        "PYTEST_PLUGINS": "pytest_env.plugin",
-+    }
-+
-     # monkeypatch persists env variables across parametrized tests, therefore using mock.patch.dict
--    with mock.patch.dict(os.environ, {**env, "_TEST_ENV": repr(expected_env)}, clear=True):
-+    with mock.patch.dict(os.environ, new_env, clear=True):
-         result = testdir.runpytest()
- 
-     result.assert_outcomes(passed=1)

diff --git a/dev-python/pytest-env/pytest-env-0.8.2.ebuild b/dev-python/pytest-env/pytest-env-0.8.2.ebuild
deleted file mode 100644
index 2cca1a92be13..000000000000
--- a/dev-python/pytest-env/pytest-env-0.8.2.ebuild
+++ /dev/null
@@ -1,21 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=hatchling
-PYTHON_COMPAT=( python3_{10..12} )
-inherit distutils-r1 pypi
-
-DESCRIPTION="py.test plugin that allows you to add environment variables"
-HOMEPAGE="https://github.com/pytest-dev/pytest-env"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="amd64 ~arm64 ~hppa ~ppc ~ppc64 x86"
-
-RDEPEND="dev-python/pytest[${PYTHON_USEDEP}]"
-BDEPEND=">=dev-python/hatch-vcs-0.3[${PYTHON_USEDEP}]
-	test? ( >=dev-python/pytest-mock-3.10.0[${PYTHON_USEDEP}] )"
-
-distutils_enable_tests pytest

diff --git a/dev-python/pytest-env/pytest-env-1.0.0.ebuild b/dev-python/pytest-env/pytest-env-1.0.0.ebuild
deleted file mode 100644
index 8f228d09367e..000000000000
--- a/dev-python/pytest-env/pytest-env-1.0.0.ebuild
+++ /dev/null
@@ -1,41 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=hatchling
-PYTHON_COMPAT=( python3_{10..12} )
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="pytest plugin that allows you to add environment variables"
-HOMEPAGE="
-	https://github.com/pytest-dev/pytest-env/
-	https://pypi.org/project/pytest-env/
-"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64 ~arm64 ~hppa ~ppc ~ppc64 ~x86"
-
-RDEPEND="
-	dev-python/pytest[${PYTHON_USEDEP}]
-"
-BDEPEND="
-	>=dev-python/hatch-vcs-0.3[${PYTHON_USEDEP}]
-	test? (
-		>=dev-python/pytest-mock-3.10.0[${PYTHON_USEDEP}]
-	)
-"
-
-distutils_enable_tests pytest
-
-PATCHES=(
-	# https://github.com/pytest-dev/pytest-env/pull/49
-	"${FILESDIR}/${P}-test.patch"
-)
-
-python_test() {
-	local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
-	epytest
-}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-09-25 18:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-25 18:57 [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-env/files/, dev-python/pytest-env/ Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox