Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/time-machine/
Date: Wed, 30 Nov 2022 19:21:07
Message-Id: 1669835902.fd33418d5e8d53767590821706faa093eeb095b4.mgorny@gentoo
1 commit: fd33418d5e8d53767590821706faa093eeb095b4
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 30 19:05:30 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 30 19:18:22 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd33418d
7
8 dev-python/time-machine: New dep of dev-python/tox, v2.8.2
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/time-machine/Manifest | 1 +
13 dev-python/time-machine/metadata.xml | 12 ++++++++
14 dev-python/time-machine/time-machine-2.8.2.ebuild | 36 +++++++++++++++++++++++
15 3 files changed, 49 insertions(+)
16
17 diff --git a/dev-python/time-machine/Manifest b/dev-python/time-machine/Manifest
18 new file mode 100644
19 index 000000000000..a8fc15ce2551
20 --- /dev/null
21 +++ b/dev-python/time-machine/Manifest
22 @@ -0,0 +1 @@
23 +DIST time-machine-2.8.2.gh.tar.gz 27856 BLAKE2B 2669bacfc7fb9d10186d6053ee155ca7dd28ec3da688971baa371eb8e095a8694e955797bdf1b556056e79277d46c2382dd06979d8e960da5731c3710018e445 SHA512 f49442fe2b846676abca15a9e7231a4b59e8d520482a4ef2294eac9a4e2c0866836d6bd9bec42202bf5f9e94766e9c2a00d4f7c6eb76d5cbc8a702fceef4294c
24
25 diff --git a/dev-python/time-machine/metadata.xml b/dev-python/time-machine/metadata.xml
26 new file mode 100644
27 index 000000000000..00899fd664c4
28 --- /dev/null
29 +++ b/dev-python/time-machine/metadata.xml
30 @@ -0,0 +1,12 @@
31 +<?xml version="1.0" encoding="UTF-8"?>
32 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
33 +<pkgmetadata>
34 + <maintainer type="project">
35 + <email>python@g.o</email>
36 + <name>Python</name>
37 + </maintainer>
38 + <upstream>
39 + <remote-id type="github">adamchainz/time-machine</remote-id>
40 + <remote-id type="pypi">time-machine</remote-id>
41 + </upstream>
42 +</pkgmetadata>
43
44 diff --git a/dev-python/time-machine/time-machine-2.8.2.ebuild b/dev-python/time-machine/time-machine-2.8.2.ebuild
45 new file mode 100644
46 index 000000000000..5a263e14bd0d
47 --- /dev/null
48 +++ b/dev-python/time-machine/time-machine-2.8.2.ebuild
49 @@ -0,0 +1,36 @@
50 +# Copyright 2022 Gentoo Authors
51 +# Distributed under the terms of the GNU General Public License v2
52 +
53 +EAPI=8
54 +
55 +DISTUTILS_USE_PEP517=setuptools
56 +PYTHON_COMPAT=( python3_{8..11} )
57 +
58 +inherit distutils-r1
59 +
60 +DESCRIPTION="Travel through time in your tests"
61 +HOMEPAGE="
62 + https://github.com/adamchainz/time-machine/
63 + https://pypi.org/project/time-machine/
64 +"
65 +SRC_URI="
66 + https://github.com/adamchainz/time-machine/archive/${PV}.tar.gz
67 + -> ${P}.gh.tar.gz
68 +"
69 +
70 +LICENSE="MIT"
71 +SLOT="0"
72 +KEYWORDS="~amd64"
73 +
74 +RDEPEND="
75 + dev-python/python-dateutil[${PYTHON_USEDEP}]
76 +"
77 +BDEPEND="
78 + test? (
79 + $(python_gen_cond_dep '
80 + dev-python/backports-zoneinfo[${PYTHON_USEDEP}]
81 + ' 3.8)
82 + )
83 +"
84 +
85 +distutils_enable_tests pytest