1 |
commit: 03a2e1c97a5c7f2d418fbe2bb6de7d78d46213eb |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 3 06:25:13 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 3 07:03:05 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03a2e1c9 |
7 |
|
8 |
dev-python/dogpile-cache: Bump to 1.0.1 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/dogpile-cache/Manifest | 1 + |
13 |
.../dogpile-cache/dogpile-cache-1.0.1.ebuild | 35 ++++++++++++++++++++++ |
14 |
.../files/dogpile-cache-1.0.1-install-tests.patch | 28 +++++++++++++++++ |
15 |
dev-python/dogpile-cache/metadata.xml | 2 +- |
16 |
4 files changed, 65 insertions(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/dev-python/dogpile-cache/Manifest b/dev-python/dogpile-cache/Manifest |
19 |
index 00c8f21f7d0..3dc3c535215 100644 |
20 |
--- a/dev-python/dogpile-cache/Manifest |
21 |
+++ b/dev-python/dogpile-cache/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST dogpile.cache-0.9.1.tar.gz 329015 BLAKE2B 23a33ccf024153e39bdccebefc33c866990733432abd2bdd715a0f180f0059a2ff8315024d59d3ad9c79a01561fda3a802a867d359961d7655bdf790556c7a2f SHA512 7d84325dd7ec2d85027472f07cddd51f495b75dc9dbbcbf26bad7aaabfee8c2da99e0c247851282b228528a87e54d98e04d8451a3ca3a571e84a4a2bb33e72f2 |
24 |
+DIST dogpile.cache-1.0.1.tar.gz 339926 BLAKE2B bb6bf3c4908920bdbf4b5b2f23f1bae2f201eb0ee2e05e7e403f732f244aede94c01acc337c519b41157ac0090770694a7794c3530b001455f046d32db1351d1 SHA512 bd50ea84d8a8b3573d5fbd8953110180fc91d703383f7574a40731cf7e0bb6ceb9165ef93e5598f14d5509d39791c05e9e8607014dfad417fa826502c0240902 |
25 |
|
26 |
diff --git a/dev-python/dogpile-cache/dogpile-cache-1.0.1.ebuild b/dev-python/dogpile-cache/dogpile-cache-1.0.1.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..05b79bc35d5 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/dogpile-cache/dogpile-cache-1.0.1.ebuild |
31 |
@@ -0,0 +1,35 @@ |
32 |
+# Copyright 1999-2020 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
38 |
+PYTHON_COMPAT=( python3_{6..9} ) |
39 |
+ |
40 |
+inherit distutils-r1 |
41 |
+ |
42 |
+DESCRIPTION="A locking API for expiring values while a single thread generates a new value." |
43 |
+HOMEPAGE="https://github.com/sqlalchemy/dogpile.cache" |
44 |
+SRC_URI="mirror://pypi/${PN:0:1}/dogpile.cache/dogpile.cache-${PV}.tar.gz" |
45 |
+S="${WORKDIR}/dogpile.cache-${PV}" |
46 |
+ |
47 |
+LICENSE="Apache-2.0" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
50 |
+ |
51 |
+RDEPEND=" |
52 |
+ >=dev-python/decorator-4.0.0[${PYTHON_USEDEP}] |
53 |
+ >=dev-python/stevedore-3.0.0[${PYTHON_USEDEP}] |
54 |
+" |
55 |
+BDEPEND=" |
56 |
+ test? ( |
57 |
+ dev-python/mock[${PYTHON_USEDEP}] |
58 |
+ dev-python/mako[${PYTHON_USEDEP}] |
59 |
+ ) |
60 |
+" |
61 |
+ |
62 |
+distutils_enable_tests pytest |
63 |
+ |
64 |
+PATCHES=( |
65 |
+ "${FILESDIR}"/${P}-install-tests.patch |
66 |
+) |
67 |
|
68 |
diff --git a/dev-python/dogpile-cache/files/dogpile-cache-1.0.1-install-tests.patch b/dev-python/dogpile-cache/files/dogpile-cache-1.0.1-install-tests.patch |
69 |
new file mode 100644 |
70 |
index 00000000000..f00d5a15538 |
71 |
--- /dev/null |
72 |
+++ b/dev-python/dogpile-cache/files/dogpile-cache-1.0.1-install-tests.patch |
73 |
@@ -0,0 +1,28 @@ |
74 |
+From 559a5c57c922741461d419b73f1aa547e3231110 Mon Sep 17 00:00:00 2001 |
75 |
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@g.o> |
76 |
+Date: Mon, 3 Aug 2020 08:50:33 +0200 |
77 |
+Subject: [PATCH] Exclude installing "tests" package from setup.py |
78 |
+ |
79 |
+--- |
80 |
+ setup.cfg | 5 +++++ |
81 |
+ 1 file changed, 5 insertions(+) |
82 |
+ |
83 |
+diff --git a/setup.cfg b/setup.cfg |
84 |
+index ab4008f..2f43889 100644 |
85 |
+--- a/setup.cfg |
86 |
++++ b/setup.cfg |
87 |
+@@ -30,6 +30,11 @@ python_requires = >=3.6 |
88 |
+ package_dir = |
89 |
+ =. |
90 |
+ |
91 |
++[options.packages.find] |
92 |
++exclude = |
93 |
++ tests |
94 |
++ tests.* |
95 |
++ |
96 |
+ [options.exclude_package_data] |
97 |
+ '' = tests* |
98 |
+ |
99 |
+-- |
100 |
+2.28.0 |
101 |
+ |
102 |
|
103 |
diff --git a/dev-python/dogpile-cache/metadata.xml b/dev-python/dogpile-cache/metadata.xml |
104 |
index efaf9c68ce9..4d8e2abb2a2 100644 |
105 |
--- a/dev-python/dogpile-cache/metadata.xml |
106 |
+++ b/dev-python/dogpile-cache/metadata.xml |
107 |
@@ -21,6 +21,6 @@ |
108 |
<stabilize-allarches/> |
109 |
<upstream> |
110 |
<remote-id type="pypi">dogpile.cache</remote-id> |
111 |
- <remote-id type="bitbucket">zzzeek/dogpile.cache</remote-id> |
112 |
+ <remote-id type="github">sqlalchemy/dogpile.cache</remote-id> |
113 |
</upstream> |
114 |
</pkgmetadata> |