Gentoo Archives: gentoo-commits

From: Louis Sautier <sbraz@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/tempora/
Date: Tue, 31 Dec 2019 15:18:40
Message-Id: 1577805504.a5349e9210cc742d54142a1b4fdf138b3367af14.sbraz@gentoo
1 commit: a5349e9210cc742d54142a1b4fdf138b3367af14
2 Author: Louis Sautier <sbraz <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 31 14:39:15 2019 +0000
4 Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 31 15:18:24 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5349e92
7
8 dev-python/tempora: bump to 2.0.0, drops Py<3.6, re-add arm
9
10 Package-Manager: Portage-2.3.84, Repoman-2.3.20
11 Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org>
12
13 dev-python/tempora/Manifest | 1 +
14 dev-python/tempora/tempora-2.0.0.ebuild | 55 +++++++++++++++++++++++++++++++++
15 2 files changed, 56 insertions(+)
16
17 diff --git a/dev-python/tempora/Manifest b/dev-python/tempora/Manifest
18 index bfc547462d1..06d2d1290a9 100644
19 --- a/dev-python/tempora/Manifest
20 +++ b/dev-python/tempora/Manifest
21 @@ -2,3 +2,4 @@ DIST tempora-1.12.tar.gz 15208 BLAKE2B ced6e5d069780b516ff791ee598683f59d02588d4
22 DIST tempora-1.14.1.tar.gz 19383 BLAKE2B f65896391e839c3da43bb42715459b9ab870a724722bfc83c129f18032e731d69b2d12635a519226ef4ce99e77a3418e7e1a05a116a80c222b4e8138f9966f9e SHA512 4ecd5430d4d90959b0985908a1e4f239a56ce0026cd315ef6b8c204b645caccb135db76bb2ca9cb95bc65bdf337b61e7c31514eb9c85036771469b6a058edfbb
23 DIST tempora-1.14.tar.gz 16009 BLAKE2B 2f4c90da2aed42c2eaa24e5764c0ec163eeda3f5d7db908f5dfa9057eabaaa67654c100d049a389d43c0f8286c0dea12db3cc3cb9a8eea098925d2d7b011c1c5 SHA512 dea359fcb5eebda2db6b0de2e615ef6681860e9b8ecdb6041316623b9072067f08cd19d72d9a9e1fc792da7c5760f5e2382bedcbe09467109557448bae1fd8cf
24 DIST tempora-1.7.tar.gz 11645 BLAKE2B d354fb863a8d30bd9e603ad942d7c7f61a70c24e7f1fe94fffd59982431190e2807c2dc577ff83eb90ffc5fd2b2f8415965de1d77e4dca0dd02291733bfbb97c SHA512 2420e32a9b8c990609d8f09225004e0b1c445cad1fe3c3c74625cb8317b552469acf2d3b28aa56633a87260a93c77d73b02178cb662016c514bc740aa01399e5
25 +DIST tempora-2.0.0.tar.gz 19828 BLAKE2B af06f7cfd6742c41fa08333da30bd2b6173affe4d368024122d0464856fa3e2264c85d34505cae023167b4266ed0e927a5a8d620101c02c352cf08b269c8c6b4 SHA512 9f488ecca0673a0071503475378bc8f5ddcfabb32fcc548392434df45767fbeb8b914117622ec6f9dc6a8de90e5bfe6e5571a9a18ddecf7c25e94fc1f7fff102
26
27 diff --git a/dev-python/tempora/tempora-2.0.0.ebuild b/dev-python/tempora/tempora-2.0.0.ebuild
28 new file mode 100644
29 index 00000000000..cd400083854
30 --- /dev/null
31 +++ b/dev-python/tempora/tempora-2.0.0.ebuild
32 @@ -0,0 +1,55 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +PYTHON_COMPAT=( pypy3 python3_{6,7,8} )
39 +
40 +inherit distutils-r1
41 +
42 +MY_PN="${PN/-/.}"
43 +DESCRIPTION="Objects and routines pertaining to date and time"
44 +HOMEPAGE="https://github.com/jaraco/tempora"
45 +SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz"
46 +S="${WORKDIR}/${MY_PN}-${PV}"
47 +
48 +LICENSE="MIT"
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc64 ~sparc ~x86"
51 +IUSE="test"
52 +RESTRICT="!test? ( test )"
53 +
54 +RDEPEND="
55 + >=dev-python/jaraco-functools-1.20[${PYTHON_USEDEP}]
56 + dev-python/pytz[${PYTHON_USEDEP}]
57 +"
58 +BDEPEND="
59 + test? (
60 + ${RDEPEND}
61 + >=dev-python/pytest-2.8[${PYTHON_USEDEP}]
62 + dev-python/backports-unittest-mock[${PYTHON_USEDEP}]
63 + dev-python/freezegun[${PYTHON_USEDEP}]
64 + )
65 +"
66 +
67 +distutils_enable_sphinx docs \
68 + ">=dev-python/jaraco-packaging-3.2" \
69 + ">=dev-python/rst-linker-1.9"
70 +
71 +python_prepare_all() {
72 + # avoid a setuptools_scm dependency
73 + sed -i "s:use_scm_version=True:version='${PV}',name='${PN//-/.}':" setup.py || die
74 + sed -r -i "s:setuptools_scm[[:space:]]*([><=]{1,2}[[:space:]]*[0-9.a-zA-Z]+)[[:space:]]*::" \
75 + setup.cfg || die
76 +
77 + distutils-r1_python_prepare_all
78 +}
79 +
80 +python_test() {
81 + # Override pytest options to skip flake8
82 + # Skip a test that requires pytest-freezegun
83 + # because it seems to be poorly maintained
84 + PYTHONPATH=. pytest -vv --override-ini="addopts=--doctest-modules" \
85 + --deselect tempora/__init__.py::tempora.get_nearest_year_for_day \
86 + || die "tests failed with ${EPYTHON}"
87 +}