1 |
commit: 0f887eb0d965989837dcc5d14b60027f34ba6fcf |
2 |
Author: Louis Sautier <sautier.louis <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Jun 2 12:21:16 2018 +0000 |
4 |
Commit: Aaron Bauman <bman <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 3 02:13:32 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f887eb0 |
7 |
|
8 |
dev-python/tempora: bump to 1.11, EAPI=7, cosmetic fixes |
9 |
|
10 |
This new version requires dev-python/freezegun to run tests. |
11 |
|
12 |
Package-Manager: Portage-2.3.38, Repoman-2.3.9 |
13 |
Closes: https://github.com/gentoo/gentoo/pull/8691 |
14 |
|
15 |
dev-python/tempora/Manifest | 1 + |
16 |
dev-python/tempora/tempora-1.11.ebuild | 54 ++++++++++++++++++++++++++++++++++ |
17 |
2 files changed, 55 insertions(+) |
18 |
|
19 |
diff --git a/dev-python/tempora/Manifest b/dev-python/tempora/Manifest |
20 |
index 2a8a8ed86e2..00666673b1a 100644 |
21 |
--- a/dev-python/tempora/Manifest |
22 |
+++ b/dev-python/tempora/Manifest |
23 |
@@ -1,3 +1,4 @@ |
24 |
+DIST tempora-1.11.tar.gz 14750 BLAKE2B d8e448f9cf363a49b30bc016faeaccf1e724c8887d179570b4e46e2eb8d7eaccf7837ffc43e02e956869caa22ac037507e2b17c11540fdb7e6610fd7607780b6 SHA512 cda47613cabefabb0c52e2f89f31b405a3b3f17c531a0b890a9ccfd3a3fcd5bc5bec19881ce726972ff61811654e8b5ec8048c9ebad6e87d72d7d98bfa4daeab |
25 |
DIST tempora-1.6.1.tar.gz 11423 BLAKE2B d549581d92d9205eaa9495cba251891a7c93859abf1d402b2e0b7f344f882acbe11578fd66a0f604dbff3458108f04582ce527148f0fa1b2d683872c17d32015 SHA512 9baf9162e304e59ae0a427a7a27d1fc66b0d4b98e016490317832ba2e7acec520ef2baeebeb26f7984ba7ace82413d15b96baef7dbdfcfdc94e29e7179769a01 |
26 |
DIST tempora-1.7.tar.gz 11645 BLAKE2B d354fb863a8d30bd9e603ad942d7c7f61a70c24e7f1fe94fffd59982431190e2807c2dc577ff83eb90ffc5fd2b2f8415965de1d77e4dca0dd02291733bfbb97c SHA512 2420e32a9b8c990609d8f09225004e0b1c445cad1fe3c3c74625cb8317b552469acf2d3b28aa56633a87260a93c77d73b02178cb662016c514bc740aa01399e5 |
27 |
DIST tempora-1.9.tar.gz 12469 BLAKE2B da18fc066cb9cf7ee0fa7eefb39ea2ac941760144c7efdea66a05780ced43d574757665dfad6088f98c135e7b14874aef0c8243ab338fcbaa5a515ec27507f52 SHA512 cb049675d7196738debca3dc0ddd8c5e72d0468bd1a853f77378cc5564b100cd94d23c63d7b06c6bed2827365d904a1582cf9d497618493b795600b6d476b91f |
28 |
|
29 |
diff --git a/dev-python/tempora/tempora-1.11.ebuild b/dev-python/tempora/tempora-1.11.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..f194bb50ce8 |
32 |
--- /dev/null |
33 |
+++ b/dev-python/tempora/tempora-1.11.ebuild |
34 |
@@ -0,0 +1,54 @@ |
35 |
+# Copyright 1999-2018 Gentoo Foundation |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=7 |
39 |
+ |
40 |
+PYTHON_COMPAT=( python{2_7,3_{4,5,6}} pypy{,3} ) |
41 |
+ |
42 |
+inherit distutils-r1 |
43 |
+ |
44 |
+MY_PN="${PN/-/.}" |
45 |
+DESCRIPTION="Objects and routines pertaining to date and time" |
46 |
+HOMEPAGE="https://github.com/jaraco/tempora" |
47 |
+SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz" |
48 |
+ |
49 |
+LICENSE="MIT" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~x86" |
52 |
+IUSE="doc test" |
53 |
+ |
54 |
+RDEPEND=" |
55 |
+ dev-python/pytz[${PYTHON_USEDEP}] |
56 |
+ dev-python/six[${PYTHON_USEDEP}] |
57 |
+" |
58 |
+# The calc-prorate binary used to be part of jaraco.utils |
59 |
+DEPEND=" |
60 |
+ !<=dev-python/jaraco-utils-10.0.2 |
61 |
+ >=dev-python/setuptools_scm-1.15.0[${PYTHON_USEDEP}] |
62 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
63 |
+ doc? ( |
64 |
+ >=dev-python/jaraco-packaging-3.2[${PYTHON_USEDEP}] |
65 |
+ >=dev-python/rst-linker-1.9[${PYTHON_USEDEP}] |
66 |
+ dev-python/sphinx[${PYTHON_USEDEP}] |
67 |
+ ) |
68 |
+ test? ( |
69 |
+ >=dev-python/pytest-2.8[${PYTHON_USEDEP}] |
70 |
+ dev-python/backports-unittest-mock[${PYTHON_USEDEP}] |
71 |
+ dev-python/freezegun[${PYTHON_USEDEP}] |
72 |
+ ) |
73 |
+" |
74 |
+ |
75 |
+S="${WORKDIR}/${MY_PN}-${PV}" |
76 |
+ |
77 |
+python_compile_all() { |
78 |
+ if use doc; then |
79 |
+ sphinx-build docs docs/_build/html || die |
80 |
+ HTML_DOCS=( docs/_build/html/. ) |
81 |
+ fi |
82 |
+} |
83 |
+ |
84 |
+python_test() { |
85 |
+ # Override pytest options to skip flake8 |
86 |
+ PYTHONPATH=. py.test --override-ini="addopts=--doctest-modules" \ |
87 |
+ || die "tests failed with ${EPYTHON}" |
88 |
+} |