summaryrefslogtreecommitdiff
path: root/dev-python/pytest-services
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-12 19:09:37 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-12 19:09:37 -0500
commitb590c8d7572b727d565cc0b8ff660d43569845de (patch)
tree06f7a4102ea4e845df8b66660f252920d52952f9 /dev-python/pytest-services
parent24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff)
downloadbaldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz
baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz
baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip
Adding metadata
Diffstat (limited to 'dev-python/pytest-services')
-rw-r--r--dev-python/pytest-services/Manifest1
-rw-r--r--dev-python/pytest-services/files/pytest-services-2.0.1-lockdir.patch23
-rw-r--r--dev-python/pytest-services/files/pytest-services-2.0.1-no-mysql.patch25
-rw-r--r--dev-python/pytest-services/metadata.xml10
-rw-r--r--dev-python/pytest-services/pytest-services-2.2.2.ebuild49
5 files changed, 108 insertions, 0 deletions
diff --git a/dev-python/pytest-services/Manifest b/dev-python/pytest-services/Manifest
new file mode 100644
index 000000000000..0547d375f4d6
--- /dev/null
+++ b/dev-python/pytest-services/Manifest
@@ -0,0 +1 @@
+DIST pytest-services-2.2.2.gh.tar.gz 21492 BLAKE2B f17e4f544a2a72c597290a94adbd86acf6b5110de126e3d43f99b96e924978893249fb90a83e23f814377cd86126bbdcd395f3cce0da935f783cee1cb473eece SHA512 d59c27e9b2041204425e1bbffceb6fa7ad5d19d3af062e24d67f5ddb464008a572ff539614405fa8134b5b4cd4605a067b20b912dcbdede9eca1dc5a544181e6
diff --git a/dev-python/pytest-services/files/pytest-services-2.0.1-lockdir.patch b/dev-python/pytest-services/files/pytest-services-2.0.1-lockdir.patch
new file mode 100644
index 000000000000..0ecf7be8c3c0
--- /dev/null
+++ b/dev-python/pytest-services/files/pytest-services-2.0.1-lockdir.patch
@@ -0,0 +1,23 @@
+diff -ur pytest-services-2.0.1.orig/pytest_services/folders.py pytest-services-2.0.1/pytest_services/folders.py
+--- pytest-services-2.0.1.orig/pytest_services/folders.py 2019-11-12 13:04:01.000000000 -0800
++++ pytest-services-2.0.1/pytest_services/folders.py 2019-11-20 23:26:55.760949590 -0800
+@@ -9,7 +9,7 @@
+ @pytest.fixture(scope='session')
+ def root_dir():
+ """The parent directory of the test base artifact directory."""
+- return '/tmp'
++ return os.getenv("TMPDIR") or '/tmp'
+
+
+ @pytest.yield_fixture(scope='session')
+@@ -47,7 +47,8 @@
+ def memory_root_dir(root_dir):
+ """The parent directory of the test artifact directory in memory."""
+ # check for a free space for at least 8 parallel processes
+- if os.path.exists('/dev/shm') and psutil.disk_usage('/dev/shm').free > 1024 * 1024 * 64 * 10:
++ if os.path.exists('/dev/shm') and psutil.disk_usage('/dev/shm').free > 1024 * 1024 * 64 * 10 \
++ and os.access('/dev/shm', os.W_OK):
+ return '/dev/shm'
+ return root_dir
+
+Only in pytest-services-2.0.1/pytest_services: .folders.py.un~
diff --git a/dev-python/pytest-services/files/pytest-services-2.0.1-no-mysql.patch b/dev-python/pytest-services/files/pytest-services-2.0.1-no-mysql.patch
new file mode 100644
index 000000000000..2a86f5110d5e
--- /dev/null
+++ b/dev-python/pytest-services/files/pytest-services-2.0.1-no-mysql.patch
@@ -0,0 +1,25 @@
+diff -ur pytest-services-2.0.1.orig/tests/test_plugin.py pytest-services-2.0.1/tests/test_plugin.py
+--- pytest-services-2.0.1.orig/tests/test_plugin.py 2019-11-12 13:04:01.000000000 -0800
++++ pytest-services-2.0.1/tests/test_plugin.py 2019-11-20 19:28:17.789932680 -0800
+@@ -3,7 +3,6 @@
+ import socket
+
+ import pylibmc
+-import MySQLdb
+
+
+ def test_memcached(request, memcached, memcached_socket):
+@@ -17,12 +16,6 @@
+ assert mc.get('some') is None
+
+
+-def test_mysql(mysql, mysql_connection, mysql_socket):
+- """Test mysql service."""
+- conn = MySQLdb.connect(user='root', unix_socket=mysql_socket)
+- assert conn
+-
+-
+ def test_xvfb(xvfb, xvfb_display):
+ """Test xvfb service."""
+ socket.create_connection(('127.0.0.1', 6000 + xvfb_display))
+Only in pytest-services-2.0.1/tests: .test_plugin.py.un~
diff --git a/dev-python/pytest-services/metadata.xml b/dev-python/pytest-services/metadata.xml
new file mode 100644
index 000000000000..5e95859f915a
--- /dev/null
+++ b/dev-python/pytest-services/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <stabilize-allarches />
+ <origin>baldeagleos-repo</origin>
+</pkgmetadata>
diff --git a/dev-python/pytest-services/pytest-services-2.2.2.ebuild b/dev-python/pytest-services/pytest-services-2.2.2.ebuild
new file mode 100644
index 000000000000..0aea572efca9
--- /dev/null
+++ b/dev-python/pytest-services/pytest-services-2.2.2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{13..14} )
+
+inherit distutils-r1
+
+DESCRIPTION="Collection of fixtures and utility functions to run service processes for pytest"
+HOMEPAGE="
+ https://github.com/pytest-dev/pytest-services/
+ https://pypi.org/project/pytest-services/
+"
+SRC_URI="
+ https://github.com/pytest-dev/pytest-services/archive/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86"
+
+RDEPEND="
+ dev-python/requests[${PYTHON_USEDEP}]
+ dev-python/psutil[${PYTHON_USEDEP}]
+ dev-python/pytest[${PYTHON_USEDEP}]
+ dev-python/zc-lockfile[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ dev-python/setuptools-scm[${PYTHON_USEDEP}]
+ test? (
+ dev-python/pylibmc[${PYTHON_USEDEP}]
+ x11-base/xorg-server[xvfb]
+ net-misc/memcached
+ !!dev-python/pytest-salt
+ )
+"
+
+EPYTEST_PLUGINS=( "${PN}" )
+distutils_enable_tests pytest
+
+PATCHES=(
+ "${FILESDIR}/pytest-services-2.0.1-no-mysql.patch"
+ "${FILESDIR}/pytest-services-2.0.1-lockdir.patch"
+)
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}