1 |
commit: 89a574631f5ab9a124046f3ff5a85397802cdcb0 |
2 |
Author: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Apr 9 11:58:52 2019 +0000 |
4 |
Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 9 12:07:32 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89a57463 |
7 |
|
8 |
dev-python/pyftpdlib: bump to 1.5.5 |
9 |
|
10 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
11 |
Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org> |
12 |
|
13 |
dev-python/pyftpdlib/Manifest | 1 + |
14 |
dev-python/pyftpdlib/pyftpdlib-1.5.5.ebuild | 89 +++++++++++++++++++++++++++++ |
15 |
2 files changed, 90 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/pyftpdlib/Manifest b/dev-python/pyftpdlib/Manifest |
18 |
index b1ab75204bb..efcaf1bdeb9 100644 |
19 |
--- a/dev-python/pyftpdlib/Manifest |
20 |
+++ b/dev-python/pyftpdlib/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST pyftpdlib-1.5.1.tar.gz 127582 BLAKE2B 00233ab4acf5aae4902384f514de0d6da9a55b7312b7744ce3f16fd222b5abeae0c65f0f9309ff40d0cbd960baee2c269a1fc6ba72ed8f700c7dbfd47e646a8a SHA512 81bb634aef7190d97b5939b998c8dd8caf1ce77c2ca66d085826880590a03e7fe4aeefb5eb67f30f25b984962eaae740c4c8c1d5900909029702e37c36bb2b9b |
23 |
DIST pyftpdlib-1.5.3.tar.gz 183189 BLAKE2B dd563f59ff21b2059e1c6d6ac6015561d5e0de07b52ea212589afea61abe63a2a61deed86bb133969c8dc99b826b7e23ddf071e0b28ac7b84a066f3fa7f31d90 SHA512 f0e56f170fa77e0866cbbead52ad52276ee45b6c3244557bc59cd2bf599934ae4414a684661d4d47f76098b3da19e23c1a037aaa07a6a81f8d1be14b90191517 |
24 |
DIST pyftpdlib-1.5.4.tar.gz 184986 BLAKE2B 6973b1f7e0fc0c89eb5d79e082690a706b56553ad4b2ece68a8216bb99c185d770475e349402ec71baf1bb06e5ecca5be2a3c52512f0d8283c4cc249bc28a949 SHA512 6eb308021dad28c1c51a88b366947a71b7bc1802571dc14cedf3a264bd0cb8504ef990d7e3110d10709f971d4d5b0001bee859b58fb4d02a1b0d46532acc9295 |
25 |
+DIST pyftpdlib-1.5.5.tar.gz 184314 BLAKE2B 2d02839c6809674c7b7c4dfd610610a9231799802cc53ad0a05bfabc8985e77c64d9b239628f13bdc22942460b3e923067f084c3c5ac2b7be7671279a08e0351 SHA512 27427154f893812f689adf3a9ceb4ec2d8f0ea7a4bf7b08671dc146c95f09ddd596a27c85e009d8d6647277def48c0bf0a8b76fb3fba5818eda3dfdc6c10795e |
26 |
|
27 |
diff --git a/dev-python/pyftpdlib/pyftpdlib-1.5.5.ebuild b/dev-python/pyftpdlib/pyftpdlib-1.5.5.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..8b23d3a2fac |
30 |
--- /dev/null |
31 |
+++ b/dev-python/pyftpdlib/pyftpdlib-1.5.5.ebuild |
32 |
@@ -0,0 +1,89 @@ |
33 |
+# Copyright 1999-2019 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+PYTHON_COMPAT=( python{2_7,3_{4,5,6,7}} ) |
38 |
+PYTHON_REQ_USE="ssl(+)" |
39 |
+ |
40 |
+inherit distutils-r1 |
41 |
+ |
42 |
+DESCRIPTION="Python FTP server library" |
43 |
+HOMEPAGE="https://github.com/giampaolo/pyftpdlib https://pypi.org/project/pyftpdlib/" |
44 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="MIT" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris" |
49 |
+IUSE="doc examples ssl test" |
50 |
+ |
51 |
+RDEPEND=" |
52 |
+ ssl? ( dev-python/pyopenssl[${PYTHON_USEDEP}] ) |
53 |
+" |
54 |
+DEPEND=" |
55 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
56 |
+ doc? ( |
57 |
+ dev-python/sphinx[${PYTHON_USEDEP}] |
58 |
+ dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] |
59 |
+ ) |
60 |
+ test? ( |
61 |
+ ${RDEPEND} |
62 |
+ dev-python/mock[${PYTHON_USEDEP}] |
63 |
+ dev-python/psutil[${PYTHON_USEDEP}] |
64 |
+ dev-python/pyopenssl[${PYTHON_USEDEP}] |
65 |
+ dev-python/pysendfile[${PYTHON_USEDEP}] |
66 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
67 |
+ ) |
68 |
+" |
69 |
+ |
70 |
+python_prepare_all() { |
71 |
+ sed -i "s/'sphinx.ext.intersphinx'//" docs/conf.py || die |
72 |
+ distutils-r1_python_prepare_all |
73 |
+} |
74 |
+ |
75 |
+python_compile_all() { |
76 |
+ if use doc; then |
77 |
+ sphinx-build docs docs/_build/html || die |
78 |
+ HTML_DOCS=( docs/_build/html/. ) |
79 |
+ fi |
80 |
+} |
81 |
+ |
82 |
+python_test() { |
83 |
+ # These tests fail when passing additional options to pytest |
84 |
+ # so we need to run them separately and not pass any args to pytest |
85 |
+ pytest ${PN}/test/test_misc.py || die "Tests failed with ${EPYTHON}" |
86 |
+ # Some of these tests tend to fail |
87 |
+ local skipped_tests=( |
88 |
+ # https://github.com/giampaolo/pyftpdlib/issues/470 |
89 |
+ # https://bugs.gentoo.org/659108 |
90 |
+ test_idle_data_timeout2 |
91 |
+ # https://github.com/giampaolo/pyftpdlib/issues/471 |
92 |
+ # https://bugs.gentoo.org/636410 |
93 |
+ test_on_incomplete_file_received |
94 |
+ # https://github.com/giampaolo/pyftpdlib/issues/466 |
95 |
+ # https://bugs.gentoo.org/659786 |
96 |
+ test_nlst |
97 |
+ ) |
98 |
+ skipped_tests=${skipped_tests[@]/%/ or} |
99 |
+ # Tests fail with TZ=GMT, see https://bugs.gentoo.org/666623 |
100 |
+ TZ=UTC+1 pytest -vv \ |
101 |
+ --ignore ${PN}/test/test_misc.py -k "not (${skipped_tests% or})" \ |
102 |
+ || die "Tests failed with ${EPYTHON}" |
103 |
+} |
104 |
+ |
105 |
+python_install_all() { |
106 |
+ if use examples; then |
107 |
+ docinto examples |
108 |
+ dodoc -r demo/. |
109 |
+ docompress -x /usr/share/doc/${PF}/examples |
110 |
+ fi |
111 |
+ distutils-r1_python_install_all |
112 |
+} |
113 |
+ |
114 |
+pkg_postinst() { |
115 |
+ if [[ -z ${REPLACING_VERSIONS} ]] && \ |
116 |
+ [[ ${PYTHON_TARGETS} == *python2_7* ]] && \ |
117 |
+ ! has_version dev-python/pysendfile ; then |
118 |
+ elog "dev-python/pysendfile is not installed" |
119 |
+ elog "It can considerably speed up file transfers for Python 2" |
120 |
+ fi |
121 |
+} |