public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sys-power/throttled/
@ 2024-11-10  6:50 Yixun Lan
  0 siblings, 0 replies; 3+ messages in thread
From: Yixun Lan @ 2024-11-10  6:50 UTC (permalink / raw
  To: gentoo-commits

commit:     bafe53e916752f9fce091fb0282615db54f8ed1d
Author:     Violet Purcell <vimproved <AT> inventati <DOT> org>
AuthorDate: Fri Nov  8 17:32:23 2024 +0000
Commit:     Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Sun Nov 10 06:48:56 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bafe53e9

sys-power/throttled: wire up import-check tests

Closes: https://github.com/gentoo/gentoo/pull/39133
Signed-off-by: Violet Purcell <vimproved <AT> inventati.org>
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>

 sys-power/throttled/throttled-0.11.ebuild | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/sys-power/throttled/throttled-0.11.ebuild b/sys-power/throttled/throttled-0.11.ebuild
index 84d67fc45a29..955b3325dd7f 100644
--- a/sys-power/throttled/throttled-0.11.ebuild
+++ b/sys-power/throttled/throttled-0.11.ebuild
@@ -13,8 +13,9 @@ SRC_URI="https://github.com/erpalma/throttled/archive/refs/tags/v${PV}.tar.gz ->
 LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~amd64"
+IUSE="test"
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-RESTRICT="test"
+RESTRICT="!test? ( test )"
 
 CONFIG_CHECK="~X86_MSR ~DEVMEM"
 
@@ -25,6 +26,7 @@ RDEPEND="
 		dev-python/pygobject[${PYTHON_USEDEP}]
 	')
 	sys-apps/pciutils
+	test? ( dev-python/pytest-import-check )
 "
 
 pkg_setup() {
@@ -32,6 +34,10 @@ pkg_setup() {
 	python-single-r1_pkg_setup
 }
 
+src_test() {
+	epytest -p no:python --import-check mmio.py throttled.py
+}
+
 src_install() {
 	default
 	python_newscript throttled.py throttled


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sys-power/throttled/
@ 2024-11-10  6:50 Yixun Lan
  0 siblings, 0 replies; 3+ messages in thread
From: Yixun Lan @ 2024-11-10  6:50 UTC (permalink / raw
  To: gentoo-commits

commit:     64f3a710d35dee59337536d8e12e19fbcd0af9df
Author:     Violet Purcell <vimproved <AT> inventati <DOT> org>
AuthorDate: Sun Oct 27 23:58:24 2024 +0000
Commit:     Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Sun Nov 10 06:48:52 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64f3a710

sys-power/throttled: enable py3.13

Signed-off-by: Violet Purcell <vimproved <AT> inventati.org>
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>

 sys-power/throttled/throttled-0.11.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-power/throttled/throttled-0.11.ebuild b/sys-power/throttled/throttled-0.11.ebuild
index 4b0726246d1e..84d67fc45a29 100644
--- a/sys-power/throttled/throttled-0.11.ebuild
+++ b/sys-power/throttled/throttled-0.11.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-PYTHON_COMPAT=( python3_{10..12} )
+PYTHON_COMPAT=( python3_{10..13} )
 inherit linux-info python-single-r1 systemd
 
 DESCRIPTION="Daemon to work around throttling issues on some Intel laptops"


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sys-power/throttled/
@ 2024-11-10  6:50 Yixun Lan
  0 siblings, 0 replies; 3+ messages in thread
From: Yixun Lan @ 2024-11-10  6:50 UTC (permalink / raw
  To: gentoo-commits

commit:     ef2baeb851ef8161ecac97976334551edbca126b
Author:     Violet Purcell <vimproved <AT> inventati <DOT> org>
AuthorDate: Sun Oct 27 23:58:13 2024 +0000
Commit:     Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Sun Nov 10 06:48:48 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef2baeb8

sys-power/throttled: add 0.11

Signed-off-by: Violet Purcell <vimproved <AT> inventati.org>
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>

 sys-power/throttled/Manifest              |  1 +
 sys-power/throttled/throttled-0.11.ebuild | 43 +++++++++++++++++++++++++++++++
 2 files changed, 44 insertions(+)

diff --git a/sys-power/throttled/Manifest b/sys-power/throttled/Manifest
index 67d1fc89509a..466cd33cd682 100644
--- a/sys-power/throttled/Manifest
+++ b/sys-power/throttled/Manifest
@@ -1 +1,2 @@
 DIST throttled-0.10.0.gh.tar.gz 22191 BLAKE2B c301ee070ff462acd613c90525209eb5237c57e7171bf25133535f9c9a50d226b919065d8f6999f95b45f7f0d4c30e63abb5e04ec768d76b3c82dd19f092a693 SHA512 b89c467295bfc592d7b3ce0c4a41fedf436acf8067f8ef63d8596b92343ed8e04d371d065a9e35fdddba40772f12255c30960c2c46f0cbd5093bfc5e72fb4e18
+DIST throttled-0.11.gh.tar.gz 22195 BLAKE2B d45b8fe04c92dfd2903c1777a3d2bd017cfa4d4f740fa7f7dfc384b4ca902552b386f3e92112dcc57bd6b25644c9bf63a987f9ad4d7c81d3bcfa0a445c1cedfa SHA512 f60ce27d17abd6ddd7db6b77a80ac80e129fba24bbc2d21608d1cc8ed2b0131dac2f53d3fea07ac24f994850146e553c6d4c7fc0dedffee109a1aa6df8684c7a

diff --git a/sys-power/throttled/throttled-0.11.ebuild b/sys-power/throttled/throttled-0.11.ebuild
new file mode 100644
index 000000000000..4b0726246d1e
--- /dev/null
+++ b/sys-power/throttled/throttled-0.11.ebuild
@@ -0,0 +1,43 @@
+# Copyright 2023-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+inherit linux-info python-single-r1 systemd
+
+DESCRIPTION="Daemon to work around throttling issues on some Intel laptops"
+HOMEPAGE="https://github.com/erpalma/throttled"
+SRC_URI="https://github.com/erpalma/throttled/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+RESTRICT="test"
+
+CONFIG_CHECK="~X86_MSR ~DEVMEM"
+
+RDEPEND="
+	${PYTHON_DEPS}
+	$(python_gen_cond_dep '
+		dev-python/dbus-python[${PYTHON_USEDEP}]
+		dev-python/pygobject[${PYTHON_USEDEP}]
+	')
+	sys-apps/pciutils
+"
+
+pkg_setup() {
+	linux-info_pkg_setup
+	python-single-r1_pkg_setup
+}
+
+src_install() {
+	default
+	python_newscript throttled.py throttled
+	python_domodule mmio.py
+	newinitd "${FILESDIR}/throttled.initd" throttled
+	systemd_dounit "${FILESDIR}/throttled.service"
+	insinto /etc
+	doins etc/throttled.conf
+}


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-11-10  6:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-10  6:50 [gentoo-commits] repo/gentoo:master commit in: sys-power/throttled/ Yixun Lan
  -- strict thread matches above, loose matches on Subject: below --
2024-11-10  6:50 Yixun Lan
2024-11-10  6:50 Yixun Lan

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