summaryrefslogtreecommitdiff
path: root/dev-python/nextinspace
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-09-21 12:11:53 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-09-21 12:11:53 +0100
commit1fd1215c62ee14dc2e94fa04d6e3622391c9ab57 (patch)
tree909630a900b1ac6b180d8af2e2345a171417d59f /dev-python/nextinspace
parentd60aa36cd97fb2193f756b45820d7c073a49229d (diff)
gentoo auto-resync : 21:09:2024 - 12:11:53
Diffstat (limited to 'dev-python/nextinspace')
-rw-r--r--dev-python/nextinspace/Manifest5
-rw-r--r--dev-python/nextinspace/files/nextinspace-2.0.5-lazy_fixtures.patch96
-rw-r--r--dev-python/nextinspace/nextinspace-2.0.5-r1.ebuild (renamed from dev-python/nextinspace/nextinspace-2.0.5.ebuild)10
-rw-r--r--dev-python/nextinspace/nextinspace-9999.ebuild10
4 files changed, 113 insertions, 8 deletions
diff --git a/dev-python/nextinspace/Manifest b/dev-python/nextinspace/Manifest
index 0b80e2f8361e..429293d12597 100644
--- a/dev-python/nextinspace/Manifest
+++ b/dev-python/nextinspace/Manifest
@@ -1,4 +1,5 @@
+AUX nextinspace-2.0.5-lazy_fixtures.patch 3050 BLAKE2B 7646d63df012528a9f2c55d9ce1cc54df654920879650d20b911710f6e23c04d16ccd12bd7ae1684e5c37bb6493f89babcc3b14f2ea83274650981b2da43de29 SHA512 010321c4375fee0a54f61e25e09497830d0a2cff6f5d895748ee64a46087c0ef60259afab88e8e1641cccb9c534a53a5284be8ada52df62504c259c668036045
DIST nextinspace-2.0.5.gh.tar.gz 48406 BLAKE2B 6f6e2c95fc1a5a8175faca4df0a51de9996ca24847926dc35b94d0e4bd5c9de880ad757606309f622f41c825d0c2e46c587f255573b4df70fe35c937148af9d7 SHA512 c8f55446d9eea0409afb8a8ddb41001b18b55d9105d007b306717a3d932ea1b03ecb2363d0deb42ec8da1cc245b77ffb18cee6ec3474121c15c4c9b79ff80405
-EBUILD nextinspace-2.0.5.ebuild 1001 BLAKE2B 8d6eea8c0c394693d107c21cb633c34b32fbbb158e69d9363ad5df9180d414c6578a06cf6a485ceb8189564f8578df2807cda568e25937d2820b4059698ab99e SHA512 6315d19de18662997775fdcea8b6b62121d120d93e314eacc1693c05a4dfdd65efade39e0726b845af86759a4afb472626ce256bfe53ba9181b41098f3df7c45
-EBUILD nextinspace-9999.ebuild 1003 BLAKE2B 342e643691026118f26c0982786397ee0cfb687cf0313450ecf991e679f8b6101628420cafecf2250005c099c8f5cd475b0bd7b088c90348654666ac2ad1b2c6 SHA512 d5ee45b0d2f3645823bbd64a1145d1d06aa2b441dd5656b0a1bdf475b2b0a7155592596f43ef36e9a6857d3357427c2494b98e805d312df68bddcecec0a76a36
+EBUILD nextinspace-2.0.5-r1.ebuild 1047 BLAKE2B 09178a3eb824ffec0b6b06b0365b59f8b1ee4f315814e8b75adc7449057286b26b2763e6212efba476759cf7fcda7c06029f22c36968e8aada0723baa7a4c36f SHA512 1dd66de23f2fee70ab0109eb1ec96423de7eeab100799aec48caa639c895838cbdb9426fd559cbbd4ae1c35233e1fd23626478ceee1df39d957a504b0a44a727
+EBUILD nextinspace-9999.ebuild 1056 BLAKE2B 06ee77916994bc6b5c8b000d854c0d94ad3c45418c4d65abfbf5f143624247b73fc5d619e5b76b35ccca5ac04b34762fb41172efbdf8f1f1a0cefc7328d091da SHA512 c7a7bf96f88ad8532a096bc13efae4cef06ef87733f9332bcdc51cc660ba28f0ddb8259f17c99442beac484a0b60e15b88b1ae7a33a4a119bbdc8f7d517cf609
MISC metadata.xml 842 BLAKE2B 474983307f5e6669ce25e6dc44c65597a59e0089a4c66ad0c531b2ab634c0505e0208c8b55ffe333af4641c227b1b3b5f71515cba441e91f2be3c53c5d53f2d7 SHA512 28aa458b6d9be33d07c615d842726789bb39ea0ed966b261417c33197e279474034e91afadeb2c91d9c9b80b4d54bd68d6ce5a89afc16891d3d8d007ee0e3d5e
diff --git a/dev-python/nextinspace/files/nextinspace-2.0.5-lazy_fixtures.patch b/dev-python/nextinspace/files/nextinspace-2.0.5-lazy_fixtures.patch
new file mode 100644
index 000000000000..92d94f7394f1
--- /dev/null
+++ b/dev-python/nextinspace/files/nextinspace-2.0.5-lazy_fixtures.patch
@@ -0,0 +1,96 @@
+commit 6d9b758075e756650b5a13ff3cf0852b21d6f1e7
+Author: Mario Haustein <mario.haustein@hrz.tu-chemnitz.de>
+Date: Fri Sep 20 23:13:24 2024 +0200
+Upstream: https://github.com/gideonshaked/nextinspace/pull/17
+
+ Migrate from pytest-lazy-fixture to pytest-lazy-fixtures
+
+--- a/tests/cli/test_viewer.py
++++ b/tests/cli/test_viewer.py
+@@ -1,6 +1,7 @@
+ # type: ignore
+
+ import pytest
++from pytest_lazy_fixtures import lf
+
+ from nextinspace.cli import viewer
+
+@@ -13,8 +14,8 @@ def test_dict_event(example_event, example_event_dict):
+ "launcher, dict_",
+ [
+ (
+- pytest.lazy_fixture("example_launcher"),
+- pytest.lazy_fixture("example_launcher_dict"),
++ lf("example_launcher"),
++ lf("example_launcher_dict"),
+ ),
+ (None, None),
+ ],
+@@ -27,12 +28,12 @@ def test_dict_launcher(launcher, dict_):
+ "launch, dict_",
+ [
+ (
+- pytest.lazy_fixture("example_launch_verbose"),
+- pytest.lazy_fixture("example_launch_verbose_dict"),
++ lf("example_launch_verbose"),
++ lf("example_launch_verbose_dict"),
+ ),
+ (
+- pytest.lazy_fixture("example_launch_normal"),
+- pytest.lazy_fixture("example_launch_normal_dict"),
++ lf("example_launch_normal"),
++ lf("example_launch_normal_dict"),
+ ),
+ ],
+ )
+@@ -44,12 +45,12 @@ def test_dict_launch(launch, dict_):
+ "item, dict_",
+ [
+ (
+- pytest.lazy_fixture("example_launch_normal"),
+- pytest.lazy_fixture("example_launch_normal_dict"),
++ lf("example_launch_normal"),
++ lf("example_launch_normal_dict"),
+ ),
+ (
+- pytest.lazy_fixture("example_event"),
+- pytest.lazy_fixture("example_event_dict"),
++ lf("example_event"),
++ lf("example_event_dict"),
+ ),
+ ],
+ )
+--- a/tests/test_nextinspace.py
++++ b/tests/test_nextinspace.py
+@@ -4,6 +4,7 @@ import copy
+ from datetime import MINYEAR, datetime, timedelta, timezone
+
+ import pytest
++from pytest_lazy_fixtures import lf
+
+ import nextinspace
+ from nextinspace import BASE_URL
+@@ -12,9 +13,9 @@ from nextinspace import BASE_URL
+ @pytest.mark.parametrize(
+ "example",
+ [
+- pytest.lazy_fixture("example_event"),
+- pytest.lazy_fixture("example_launcher"),
+- pytest.lazy_fixture("example_launch_verbose"),
++ lf("example_event"),
++ lf("example_launcher"),
++ lf("example_launch_verbose"),
+ ],
+ )
+ def test_eq(example):
+@@ -69,8 +70,8 @@ def test_date_str_to_datetime(datetime_str, result):
+ @pytest.mark.parametrize(
+ "launch, include_launcher",
+ [
+- (pytest.lazy_fixture("example_launch_verbose"), True),
+- (pytest.lazy_fixture("example_launch_normal"), False),
++ (lf("example_launch_verbose"), True),
++ (lf("example_launch_normal"), False),
+ ],
+ )
+ def test_next_launch(requests_mock, example_launch_text, launch, include_launcher, example_launcher_text):
diff --git a/dev-python/nextinspace/nextinspace-2.0.5.ebuild b/dev-python/nextinspace/nextinspace-2.0.5-r1.ebuild
index eae473198e24..bb014fe9d684 100644
--- a/dev-python/nextinspace/nextinspace-2.0.5.ebuild
+++ b/dev-python/nextinspace/nextinspace-2.0.5-r1.ebuild
@@ -1,10 +1,10 @@
-# Copyright 2022-2023 Gentoo Authors
+# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=poetry
-PYTHON_COMPAT=( python3_{10..12} )
+PYTHON_COMPAT=( python3_{10..13} )
inherit distutils-r1
DESCRIPTION="A command-line tool for seeing the latest in space"
@@ -28,11 +28,15 @@ RDEPEND="
BDEPEND="
test? (
${RDEPEND}
- >=dev-python/pytest-lazy-fixture-0.6.3[${PYTHON_USEDEP}]
+ dev-python/pytest-lazy-fixtures[${PYTHON_USEDEP}]
>=dev-python/requests-mock-1.8[${PYTHON_USEDEP}]
)
"
+PATCHES=(
+ "${FILESDIR}/${P}-lazy_fixtures.patch"
+)
+
distutils_enable_tests pytest
src_prepare() {
diff --git a/dev-python/nextinspace/nextinspace-9999.ebuild b/dev-python/nextinspace/nextinspace-9999.ebuild
index e944c1cc82a7..07ed06c31eb5 100644
--- a/dev-python/nextinspace/nextinspace-9999.ebuild
+++ b/dev-python/nextinspace/nextinspace-9999.ebuild
@@ -1,10 +1,10 @@
-# Copyright 2022-2023 Gentoo Authors
+# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=poetry
-PYTHON_COMPAT=( python3_{10..12} )
+PYTHON_COMPAT=( python3_{10..13} )
inherit distutils-r1
DESCRIPTION="A command-line tool for seeing the latest in space"
@@ -28,11 +28,15 @@ RDEPEND="
BDEPEND="
test? (
${RDEPEND}
- >=dev-python/pytest-lazy-fixture-0.6.3[${PYTHON_USEDEP}]
+ dev-python/pytest-lazy-fixtures[${PYTHON_USEDEP}]
>=dev-python/requests-mock-1.8[${PYTHON_USEDEP}]
)
"
+PATCHES=(
+ "${FILESDIR}/${PN}-2.0.5-lazy_fixtures.patch"
+)
+
distutils_enable_tests pytest
src_prepare() {