1 |
commit: 7d33c7974578c291da715a1ca47ed9902a3b8da7 |
2 |
Author: Chris Mayo <aklhfex <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Apr 7 18:31:57 2021 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 3 22:39:41 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d33c797 |
7 |
|
8 |
dev-python/typogrify: new ebuild |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/20186 |
11 |
Closes: https://github.com/gentoo/gentoo/pull/20670 |
12 |
Signed-off-by: Chris Mayo <aklhfex <AT> gmail.com> |
13 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
14 |
|
15 |
dev-python/typogrify/Manifest | 1 + |
16 |
dev-python/typogrify/metadata.xml | 14 ++++++++++++++ |
17 |
dev-python/typogrify/typogrify-2.0.7.ebuild | 27 +++++++++++++++++++++++++++ |
18 |
3 files changed, 42 insertions(+) |
19 |
|
20 |
diff --git a/dev-python/typogrify/Manifest b/dev-python/typogrify/Manifest |
21 |
new file mode 100644 |
22 |
index 00000000000..f55f3ea5ae7 |
23 |
--- /dev/null |
24 |
+++ b/dev-python/typogrify/Manifest |
25 |
@@ -0,0 +1 @@ |
26 |
+DIST typogrify-2.0.7.tar.gz 12903 BLAKE2B e08b27a531f21e99d5a35c47c1deb94bc7f67e31a47789ba4750520c893633966b1319a731c81ab2435e7024aea1e8fd0b46a52bbb73a050cdf83a1588644d18 SHA512 6212024a88372f1b14e5932c0541ec4d5a2ada7514c1327dc8f3775cd7adf3372cae0037c4310ed4a03fd0657a91eb4c0d114b74172190f7f84d82908441ddd0 |
27 |
|
28 |
diff --git a/dev-python/typogrify/metadata.xml b/dev-python/typogrify/metadata.xml |
29 |
new file mode 100644 |
30 |
index 00000000000..288c408a5ef |
31 |
--- /dev/null |
32 |
+++ b/dev-python/typogrify/metadata.xml |
33 |
@@ -0,0 +1,14 @@ |
34 |
+<?xml version="1.0" encoding="UTF-8"?> |
35 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
36 |
+<pkgmetadata> |
37 |
+ <maintainer type="project"> |
38 |
+ <email>python@g.o</email> |
39 |
+ <name>Python</name> |
40 |
+ </maintainer> |
41 |
+ <stabilize-allarches/> |
42 |
+ <upstream> |
43 |
+ <remote-id type="pypi">typogrify</remote-id> |
44 |
+ <remote-id type="github">mintchaos/typogrify</remote-id> |
45 |
+ <bugs-to>https://github.com/mintchaos/typogrify/issues/</bugs-to> |
46 |
+ </upstream> |
47 |
+</pkgmetadata> |
48 |
|
49 |
diff --git a/dev-python/typogrify/typogrify-2.0.7.ebuild b/dev-python/typogrify/typogrify-2.0.7.ebuild |
50 |
new file mode 100644 |
51 |
index 00000000000..9b24bf19f43 |
52 |
--- /dev/null |
53 |
+++ b/dev-python/typogrify/typogrify-2.0.7.ebuild |
54 |
@@ -0,0 +1,27 @@ |
55 |
+# Copyright 2021 Gentoo Authors |
56 |
+# Distributed under the terms of the GNU General Public License v2 |
57 |
+ |
58 |
+EAPI=7 |
59 |
+ |
60 |
+PYTHON_COMPAT=( python3_{7..9} ) |
61 |
+inherit distutils-r1 |
62 |
+ |
63 |
+DESCRIPTION="Filters for web typography, supporting Django & Jinja templates" |
64 |
+HOMEPAGE="https://github.com/mintchaos/typogrify/ https://pypi.org/project/typogrify/" |
65 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
66 |
+ |
67 |
+LICENSE="BSD" |
68 |
+SLOT="0" |
69 |
+KEYWORDS="~amd64 ~x86" |
70 |
+ |
71 |
+DEPEND=" |
72 |
+ ${PYTHON_DEPS} |
73 |
+ >=dev-python/smartypants-1.8.3[${PYTHON_USEDEP}] |
74 |
+" |
75 |
+RDEPEND="${DEPEND}" |
76 |
+ |
77 |
+distutils_enable_tests pytest |
78 |
+ |
79 |
+python_test() { |
80 |
+ epytest --doctest-modules typogrify/filters.py typogrify/packages/titlecase/tests.py |
81 |
+} |