commit:     127b3aa88236ce75e341bd9234b716053a2c3028
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 31 14:57:39 2025 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Jan 31 14:59:36 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=127b3aa8

dev-python/pslab: treeclean

Closes: https://bugs.gentoo.org/947144 (pkgremoved)
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 dev-python/pslab/Manifest                          |  1 -
 .../files/pslab-2.5.0-ad9833_sys_version.patch     | 11 -----
 .../pslab/files/pslab-3.0.0-pytest_record.patch    | 36 ---------------
 dev-python/pslab/metadata.xml                      | 12 -----
 dev-python/pslab/pslab-3.0.0.ebuild                | 51 ----------------------
 profiles/package.mask                              |  6 ---
 profiles/updates/4Q-2023                           |  1 -
 7 files changed, 118 deletions(-)

diff --git a/dev-python/pslab/Manifest b/dev-python/pslab/Manifest
deleted file mode 100644
index 264fb2733c88..000000000000
--- a/dev-python/pslab/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST pslab-python-3.0.0.gh.tar.gz 357657 BLAKE2B 
34d8817dd47588a488359b53a7c3737afc0b3d14c5a751990a6030a17f30cb99d65f235a7eaf26b5a4f7f41931ea20bff086a5463563faa189e6cc46336366b6
 SHA512 
fdb5180e6fb55b2b6262997981c1d9b56652fbd902cfb4e8c347dff87d32d234a61f5a3ff50e5fb55eb0fecc6d2cb09df5cbc9e747df00e5973c19fba7f3c554

diff --git a/dev-python/pslab/files/pslab-2.5.0-ad9833_sys_version.patch 
b/dev-python/pslab/files/pslab-2.5.0-ad9833_sys_version.patch
deleted file mode 100644
index b34182266c4a..000000000000
--- a/dev-python/pslab/files/pslab-2.5.0-ad9833_sys_version.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/pslab/external/AD9833.py
-+++ b/pslab/external/AD9833.py
-@@ -2,7 +2,7 @@
- 
- 
- class AD9833:
--    if sys.version.major == 3:
-+    if sys.version_info.major == 3:
-         DDS_MAX_FREQ = 0xFFFFFFF - 1  # 24 bit resolution
-     else:
-         DDS_MAX_FREQ = eval("0xFFFFFFFL-1")  # 24 bit resolution

diff --git a/dev-python/pslab/files/pslab-3.0.0-pytest_record.patch 
b/dev-python/pslab/files/pslab-3.0.0-pytest_record.patch
deleted file mode 100644
index 90d5448998a8..000000000000
--- a/dev-python/pslab/files/pslab-3.0.0-pytest_record.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-Now that dev-python/pslab indirectly depends on pytest-reserial
-(it is a test dependency of dev-python/mcbootflash), the option name --record
-produces a collision.
-
---- a/tests/conftest.py
-+++ b/tests/conftest.py
-@@ -8,9 +8,9 @@
- Additionally, certain pins must be connected in a specific manner. Refer to 
the
- individual test modules in the tests package.
- 
--By calling pytest with the --record flag, the serial traffic generated by the
-+By calling pytest with the --record-serial flag, the serial traffic generated 
by the
- integration tests will be recorded to JSON files, which are played back during
--unit testing. The --record flag implies --integration.
-+unit testing. The --record-serial flag implies --integration.
- """
- 
- import json
-@@ -23,7 +23,7 @@
- 
- def pytest_addoption(parser):
-     parser.addoption("--integration", action="store_true", default=False)
--    parser.addoption("--record", action="store_true", default=False)
-+    parser.addoption("--record-serial", action="store_true", default=False)
- 
- 
- @pytest.fixture(scope="module")
-@@ -38,7 +38,7 @@
- 
-     When running unit tests, the SerialHandler is a MockHandler.
-     """
--    record = request.config.getoption("--record")
-+    record = request.config.getoption("--record-serial")
-     integration = request.config.getoption("--integration") or record
-     logfile = os.path.join(logdir, request.node.name + ".json")
- 

diff --git a/dev-python/pslab/metadata.xml b/dev-python/pslab/metadata.xml
deleted file mode 100644
index e5bdcb7d844b..000000000000
--- a/dev-python/pslab/metadata.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
-<pkgmetadata>
-       <maintainer type="project">
-               <email>[email protected]</email>
-               <name>Python</name>
-       </maintainer>
-       <upstream>
-               <remote-id type="github">fossasia/pslab-python</remote-id>
-               <remote-id type="pypi">pslab</remote-id>
-       </upstream>
-</pkgmetadata>

diff --git a/dev-python/pslab/pslab-3.0.0.ebuild 
b/dev-python/pslab/pslab-3.0.0.ebuild
deleted file mode 100644
index b6eeddaed923..000000000000
--- a/dev-python/pslab/pslab-3.0.0.ebuild
+++ /dev/null
@@ -1,51 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=flit
-PYTHON_COMPAT=( python3_{10..12} )
-
-inherit distutils-r1
-
-MY_P=pslab-python-${PV}
-DESCRIPTION="Python library for communicating with Pocket Science Lab"
-HOMEPAGE="
-       https://pslab.io/
-       https://github.com/fossasia/pslab-python/
-       https://pypi.org/project/pslab/
-"
-SRC_URI="
-       https://github.com/fossasia/pslab-python/archive/v${PV}.tar.gz
-               -> ${MY_P}.gh.tar.gz
-"
-S=${WORKDIR}/${MY_P}
-
-LICENSE="GPL-3+"
-SLOT="0"
-KEYWORDS="amd64"
-
-RDEPEND="
-       >=dev-python/mcbootflash-8.0.0[${PYTHON_USEDEP}]
-       >=dev-python/numpy-1.16.3[${PYTHON_USEDEP}]
-       >=dev-python/pyserial-3.4[${PYTHON_USEDEP}]
-       >=dev-python/scipy-1.3.0[${PYTHON_USEDEP}]
-"
-BDEPEND="
-       test? (
-               dev-python/pytest-mock[${PYTHON_USEDEP}]
-       )
-"
-
-PATCHES=(
-       "${FILESDIR}"/${PN}-2.5.0-ad9833_sys_version.patch
-       "${FILESDIR}"/${PN}-3.0.0-pytest_record.patch
-)
-
-EPYTEST_DESELECT=(
-       # Flaky in 2.5.0
-       tests/test_logic_analyzer.py::test_stop
-)
-
-distutils_enable_sphinx docs dev-python/recommonmark
-distutils_enable_tests pytest

diff --git a/profiles/package.mask b/profiles/package.mask
index 097e6a6a2e29..507a87ed572d 100644
--- a/profiles/package.mask
+++ b/profiles/package.mask
@@ -312,12 +312,6 @@ net-misc/lyricwikia
 # Removal on 2025-01-30. bug #924174 and friends.
 dev-libs/dmalloc
 
-# Michał Górny <[email protected]> (2024-12-29)
-# As of 3.1.0, upstream has removed all mocking and made it impossible
-# to test the package locally.  As such, we cannot maintain it going
-# forward.  Removal on 2025-01-28.  Bug #947144.
-dev-python/pslab
-
 # Michał Górny <[email protected]> (2024-12-05)
 # 6.12.2 does not boot for me.
 =sys-kernel/gentoo-kernel-6.12.2

diff --git a/profiles/updates/4Q-2023 b/profiles/updates/4Q-2023
index 173fb6a27ff4..c5afcd49c6a0 100644
--- a/profiles/updates/4Q-2023
+++ b/profiles/updates/4Q-2023
@@ -12,7 +12,6 @@ move dev-libs/Imath dev-libs/imath
 move dev-python/cli_helpers dev-python/cli-helpers
 move dev-python/python-cstruct dev-python/cstruct
 move dev-python/swagger_spec_validator dev-python/swagger-spec-validator
-move dev-python/pslab-python dev-python/pslab
 move dev-python/python-discid dev-python/discid
 move dev-python/py-amqp dev-python/amqp
 move dev-python/python-sshpubkeys dev-python/sshpubkeys

Reply via email to