summaryrefslogtreecommitdiff
path: root/dev-python/time-machine
diff options
context:
space:
mode:
authorCrucible <crucible@localhost>2026-10-19 21:49:31 -0500
committerCrucible <crucible@localhost>2026-10-19 21:49:31 -0500
commit7381ef26a3e14a703da91508b2cc8606c34b804d (patch)
tree1ded3c74a64f9591c982f01ed71ab968a8bfad24 /dev-python/time-machine
parent3b4c7e627726016d50653b6dd2e06020a1915eac (diff)
downloadsrcux-7381ef26a3e14a703da91508b2cc8606c34b804d.tar.gz
srcux-7381ef26a3e14a703da91508b2cc8606c34b804d.tar.xz
srcux-7381ef26a3e14a703da91508b2cc8606c34b804d.zip
Publish srcux candidate 0000000740-20261019-200200
Diffstat (limited to 'dev-python/time-machine')
-rw-r--r--dev-python/time-machine/Manifest2
-rw-r--r--dev-python/time-machine/time-machine-3.3.1.ebuild36
-rw-r--r--dev-python/time-machine/time-machine-3.4.0.ebuild36
-rw-r--r--dev-python/time-machine/time-machine-3.5.1.ebuild20
4 files changed, 18 insertions, 76 deletions
diff --git a/dev-python/time-machine/Manifest b/dev-python/time-machine/Manifest
index 64d6fdf5ddf0..58d401cbb357 100644
--- a/dev-python/time-machine/Manifest
+++ b/dev-python/time-machine/Manifest
@@ -1,5 +1,3 @@
DIST time-machine-3.2.0.gh.tar.gz 85884 BLAKE2B dc771f17c8089a6f121cf99ad8dcf5f0e9aaec345dbdfb0be4ccfc9123b10561cebc116dd9db6d1b4c939cf49fa80e16d8be75e9adfe394ad5392dc1dfe2c12c SHA512 84ff8d2e9c9bdde90efe3548bc151f38f812a4ba624cc9556dd2a89f72d664d73dca8be64a65ca2a5019393e5a8f91e130804313685b23dccc4932a9e05f973b
-DIST time-machine-3.3.1.gh.tar.gz 106731 BLAKE2B 2bfa1278325a8e09b5ce98b9b16fcbe6bc783d0ee45713f341815c12fb0e573d52d5595b2e542139b940cc1136d173c2260523193eaa8a653da5288ab5136904 SHA512 29db83914ffdce0a00a6f84bf4638c1ccaf7d4a3d85e9423cb0b9c5700ee89d11710e754bfb448fde5e9a4cb8acb455143c0896af8ca34919296c06cd1380fe6
-DIST time-machine-3.4.0.gh.tar.gz 112256 BLAKE2B 08a915d2e72b1d416d4b8a629bad5de29e9b96166af397d31b47669531b59cf710d8276c2bb2b77799d7f28506b287628bcaef17837190c9a17903f19f159bcf SHA512 539c6be5ed35331698ccd9d95beb969c201c9e8427f19ddd4db0e5edc1a6d22c63960674115964e40bfd59d03cade800a581d68b01f63b927c819042bf5a404d
DIST time-machine-3.5.0.gh.tar.gz 134115 BLAKE2B c7b23c0efcb6e179416bd44d245bcc7bd235f4d46a601c3db3cd0afd5bba01790369f1341ff717549c73326cd4883674ee001231c3aac9a394709186b62bafc7 SHA512 418e5d868995448624dbb63dcb0032801b368d43bb43027e51b5b737b752e879c6bb10029efe302c63018fef290b92148e6925f4aa6e0567c50b54a6166b4d7c
DIST time-machine-3.5.1.gh.tar.gz 146210 BLAKE2B dddcc578bb23cb038b46c7a37640ce769369febe7d64d97f6ace4293c776b6cb374388bcd5705d7ccfd42000311e86fa214429c07655d1e15f2ac3c73d85c70a SHA512 04b365a010cb1a604a3ea214855bc016890c00795214c1bd09b1ec3d4b858e9428284a6c94308a7510fd3018f4c8974f2dba6836983807975d2994c30eb06be9
diff --git a/dev-python/time-machine/time-machine-3.3.1.ebuild b/dev-python/time-machine/time-machine-3.3.1.ebuild
deleted file mode 100644
index 907484072dbc..000000000000
--- a/dev-python/time-machine/time-machine-3.3.1.ebuild
+++ /dev/null
@@ -1,36 +0,0 @@
-# Copyright 2022-2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_EXT=1
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{13..14} )
-
-inherit distutils-r1
-
-DESCRIPTION="Travel through time in your tests"
-HOMEPAGE="
- https://github.com/adamchainz/time-machine/
- https://pypi.org/project/time-machine/
-"
-SRC_URI="
- https://github.com/adamchainz/time-machine/archive/${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"
-
-BDEPEND="
- test? (
- dev-python/freezegun[${PYTHON_USEDEP}]
- dev-python/python-dateutil[${PYTHON_USEDEP}]
- dev-python/tokenize-rt[${PYTHON_USEDEP}]
- )
-"
-
-EPYTEST_PLUGIN_LOAD_VIA_ENV=1
-EPYTEST_PLUGINS=( "${PN}" hypothesis )
-distutils_enable_tests pytest
diff --git a/dev-python/time-machine/time-machine-3.4.0.ebuild b/dev-python/time-machine/time-machine-3.4.0.ebuild
deleted file mode 100644
index 907484072dbc..000000000000
--- a/dev-python/time-machine/time-machine-3.4.0.ebuild
+++ /dev/null
@@ -1,36 +0,0 @@
-# Copyright 2022-2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_EXT=1
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{13..14} )
-
-inherit distutils-r1
-
-DESCRIPTION="Travel through time in your tests"
-HOMEPAGE="
- https://github.com/adamchainz/time-machine/
- https://pypi.org/project/time-machine/
-"
-SRC_URI="
- https://github.com/adamchainz/time-machine/archive/${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"
-
-BDEPEND="
- test? (
- dev-python/freezegun[${PYTHON_USEDEP}]
- dev-python/python-dateutil[${PYTHON_USEDEP}]
- dev-python/tokenize-rt[${PYTHON_USEDEP}]
- )
-"
-
-EPYTEST_PLUGIN_LOAD_VIA_ENV=1
-EPYTEST_PLUGINS=( "${PN}" hypothesis )
-distutils_enable_tests pytest
diff --git a/dev-python/time-machine/time-machine-3.5.1.ebuild b/dev-python/time-machine/time-machine-3.5.1.ebuild
index 11af38908765..83acf3506841 100644
--- a/dev-python/time-machine/time-machine-3.5.1.ebuild
+++ b/dev-python/time-machine/time-machine-3.5.1.ebuild
@@ -7,7 +7,7 @@ DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{13..14} )
-inherit distutils-r1
+inherit distutils-r1 toolchain-funcs
DESCRIPTION="Travel through time in your tests"
HOMEPAGE="
@@ -21,7 +21,7 @@ SRC_URI="
LICENSE="MIT"
SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ppc64 ~riscv ~s390 ~sparc ~x86"
BDEPEND="
test? (
@@ -34,3 +34,19 @@ BDEPEND="
EPYTEST_PLUGIN_LOAD_VIA_ENV=1
EPYTEST_PLUGINS=( "${PN}" hypothesis )
distutils_enable_tests pytest
+
+src_test() {
+ local EPYTEST_DESELECT=()
+
+ if ! tc-has-64bit-time_t; then
+ EPYTEST_DESELECT+=(
+ tests/test_fuzz.py::test_travel_to_aware_datetime
+ tests/test_fuzz.py::TestTravelMachine::runTest
+ tests/test_time_machine.py::test_datetime_today_exact_far_future
+ tests/test_time_machine.py::test_datetime_today_subclass_exact_far_future
+ tests/test_time_machine.py::test_date_today_exact_far_future
+ )
+ fi
+
+ distutils-r1_src_test
+}