summaryrefslogtreecommitdiff
path: root/dev-python/pytest-shutil
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-02-10 17:34:25 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-02-10 17:34:25 +0000
commit0bb42730e8fc9c8e571f12e3189c6c6f8d532c24 (patch)
treecba6032fbed30be2b0764494607c3ec9dda0c18a /dev-python/pytest-shutil
parentcc901a8ce7c6bfe97e3b4f048619693d360ae348 (diff)
gentoo auto-resync : 10:02:2024 - 17:34:25
Diffstat (limited to 'dev-python/pytest-shutil')
-rw-r--r--dev-python/pytest-shutil/Manifest4
-rw-r--r--dev-python/pytest-shutil/files/pytest-shutil-1.7.0-py312.patch39
-rw-r--r--dev-python/pytest-shutil/metadata.xml22
-rw-r--r--dev-python/pytest-shutil/pytest-shutil-1.7.0-r4.ebuild54
4 files changed, 0 insertions, 119 deletions
diff --git a/dev-python/pytest-shutil/Manifest b/dev-python/pytest-shutil/Manifest
deleted file mode 100644
index cc5014f1c67f..000000000000
--- a/dev-python/pytest-shutil/Manifest
+++ /dev/null
@@ -1,4 +0,0 @@
-AUX pytest-shutil-1.7.0-py312.patch 1272 BLAKE2B 34cd914888af8e2d6f2db70009732e929a0f9253c64a4dace4b394d528ad4a2b88960bec0dfc527f720c427f352ab0adae5152ebbdc08bddd4958d16a2f087bb SHA512 1ca03b5e6fa9383fc3fed8e0b0948664d41ee0069cf87d1cacfa4a55461af32f97d09015d5b36a926116993142088a47cee69774687ecfa6c2bbd640c3652931
-DIST pytest-shutil-1.7.0.tar.gz 23497 BLAKE2B e13641491fb4bd448973b8004ac9ded2f9b7c412ea93af7f9206e5fc38ea7554073374116eeefc529d2ae35e8a25e678fef5a27089af89026077a72d11d6016d SHA512 3746c08b17834621a7142ed9d5915b5c348c13367f5b423b258d3471bcb9c9e983c61c25ca936f879b8b82f80512512b7f3ade5555c24a790c72b502e3f3d144
-EBUILD pytest-shutil-1.7.0-r4.ebuild 1354 BLAKE2B b84c3edc43c8b2c3e0aa567cfc27ff12bc3d6d180f8ba0347bdb3824d4497127711aeaa09cbb8864bd54ce5a5ff28c73fdcf4b2901f365bd4fa7dcf159a0d0ff SHA512 ce75b8d649c8d2b9eccf4ef33134c16fb6467e80b8556f43b991035c1e26ac8eb31cfcf2e8967d872e00e6dec64abf37588c5893e32c5caf89c71d5f736cc720
-MISC metadata.xml 733 BLAKE2B f5f17136e92ebe6188aa94910e3b58c33198bf65b9de5cd70de16ec5d9d205afb46e1c73508b56367ca972d55e69e4c746297106eb7ef5f3e9e9a7ff1a5f7f83 SHA512 af24c62c04e5f1dda2fe559436658172be8b280463e1fa1bc078eca03900e4949660b4ceade8d78fef387f16b3630762181824b3bce2a50c3ad76092dcffe9a5
diff --git a/dev-python/pytest-shutil/files/pytest-shutil-1.7.0-py312.patch b/dev-python/pytest-shutil/files/pytest-shutil-1.7.0-py312.patch
deleted file mode 100644
index 905550622fc1..000000000000
--- a/dev-python/pytest-shutil/files/pytest-shutil-1.7.0-py312.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-From bbb9e5c7cba84fb4665a521569d1cfcca08ee4e5 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
-Date: Sat, 27 May 2023 18:05:44 +0200
-Subject: [PATCH] pytest-shutil: Replace deprecated imp module
-
-Replace the use of the deprecated `imp` module with `importlib.util',
-as the former has been removed from Python 3.12.
----
- pytest-shutil/pytest_shutil/run.py | 7 +++++--
- 1 file changed, 5 insertions(+), 2 deletions(-)
-
-diff --git a/pytest-shutil/pytest_shutil/run.py b/pytest-shutil/pytest_shutil/run.py
-index 7d46aea..08a6a34 100644
---- a/pytest_shutil/run.py
-+++ b/pytest_shutil/run.py
-@@ -3,7 +3,7 @@
- """
- import sys
- import os
--import imp
-+import importlib.util
- import logging
- from functools import update_wrapper
- import inspect
-@@ -112,7 +112,10 @@ def run_module_as_main(module, argv=[]):
- filename = os.path.splitext(filename)[0] + ".py"
-
- with patch("sys.argv", new=argv):
-- imp.load_source('__main__', os.path.join(where, filename))
-+ spec = importlib.util.spec_from_file_location(
-+ "__main__", os.path.join(where, filename))
-+ module = importlib.util.module_from_spec(spec)
-+ spec.loader.exec_module(module)
-
-
- def _evaluate_fn_source(src, *args, **kwargs):
---
-2.40.1
-
diff --git a/dev-python/pytest-shutil/metadata.xml b/dev-python/pytest-shutil/metadata.xml
deleted file mode 100644
index 9be6b49714b1..000000000000
--- a/dev-python/pytest-shutil/metadata.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="project">
- <email>python@gentoo.org</email>
- <name>Python</name>
- </maintainer>
- <stabilize-allarches/>
- <upstream>
- <maintainer>
- <email>eeaston@gmail.com</email>
- <name>Edward Easton</name>
- </maintainer>
- <remote-id type="pypi">pytest-shutil</remote-id>
- <remote-id type="github">man-group/pytest-plugins</remote-id>
- </upstream>
- <longdescription>
- This library is a goodie-bag of Unix shell and environment management
- tools for automated tests. A summary of the available functions is
- below, look at the source for the full listing.
- </longdescription>
-</pkgmetadata>
diff --git a/dev-python/pytest-shutil/pytest-shutil-1.7.0-r4.ebuild b/dev-python/pytest-shutil/pytest-shutil-1.7.0-r4.ebuild
deleted file mode 100644
index 652875bbb6c6..000000000000
--- a/dev-python/pytest-shutil/pytest-shutil-1.7.0-r4.ebuild
+++ /dev/null
@@ -1,54 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYPI_NO_NORMALIZE=1
-PYTHON_COMPAT=( python3_{10..12} pypy3 )
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="A goodie-bag of unix shell and environment tools for py.test"
-HOMEPAGE="
- https://github.com/man-group/pytest-plugins/
- https://pypi.org/project/pytest-shutil/
-"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos"
-
-RDEPEND="
- dev-python/pytest[${PYTHON_USEDEP}]
- dev-python/six[${PYTHON_USEDEP}]
- dev-python/execnet[${PYTHON_USEDEP}]
- dev-python/path[${PYTHON_USEDEP}]
- dev-python/mock[${PYTHON_USEDEP}]
- dev-python/termcolor[${PYTHON_USEDEP}]
-"
-BDEPEND="
- ${RDEPEND}
- dev-python/setuptools-git[${PYTHON_USEDEP}]
-"
-
-distutils_enable_tests pytest
-
-PATCHES=(
- # https://github.com/man-group/pytest-plugins/pull/219
- "${FILESDIR}"/${P}-py312.patch
-)
-
-EPYTEST_DESELECT=(
- # colors no longer happen automagically to non-tty, not important
- # https://github.com/man-group/pytest-plugins/pull/217
- tests/unit/test_cmdline.py::test_pretty_formatter
-)
-
-python_prepare_all() {
- # remove unnecessary deps
- # (contextlib2 is not used in py3)
- sed -i -e '/path\.py/d' -e '/contextlib2/d' setup.py || die
-
- distutils-r1_python_prepare_all
-}