From 9ee6d97c2883d42f204a533a8bc1f4562df778fb Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 16 Sep 2020 09:32:48 +0100 Subject: gentoo resync : 16.09.2020 --- dev-python/pyftpdlib/Manifest | 2 +- dev-python/pyftpdlib/pyftpdlib-1.5.6-r1.ebuild | 76 +++++++++++++++++++++++ dev-python/pyftpdlib/pyftpdlib-1.5.6.ebuild | 86 -------------------------- 3 files changed, 77 insertions(+), 87 deletions(-) create mode 100644 dev-python/pyftpdlib/pyftpdlib-1.5.6-r1.ebuild delete mode 100644 dev-python/pyftpdlib/pyftpdlib-1.5.6.ebuild (limited to 'dev-python/pyftpdlib') diff --git a/dev-python/pyftpdlib/Manifest b/dev-python/pyftpdlib/Manifest index 16a37c1a5f89..3b9296e1678b 100644 --- a/dev-python/pyftpdlib/Manifest +++ b/dev-python/pyftpdlib/Manifest @@ -1,3 +1,3 @@ DIST pyftpdlib-1.5.6.tar.gz 188099 BLAKE2B 508e94da6b27b4b1f15306df2916c176f07ca31944398e9ac580fca8d2cdc72ca0ee8e7db282de6745e2e401b23b1fa8cb8de400dc2ba998b93ac45772c78157 SHA512 a3c3c1cac221a8a3c090ee208c03134bb1b8de58099a23ca6ee422f06fb97a0ed561c96e62c62b21fa112dd0b3458651b9fc0c55d72dc0bed79d0583b319a50d -EBUILD pyftpdlib-1.5.6.ebuild 3087 BLAKE2B 59afa5e6d8c19a08011642bf1e2c3ec4226e95d9e9a579f577470a2bd829f01a0e806f786989ee317f93dd69730866122703d63112fd74b529a8f9aa042b5703 SHA512 85a508dc09f2b4050fac49d473e1027671a8d60b24e6f7a33d5b85fd247d8d59dd279fbf5d0f5aab47eb7ba10242fad01894a22619dbb73dec578872618a5c05 +EBUILD pyftpdlib-1.5.6-r1.ebuild 2732 BLAKE2B 3e88a21fb6c968d686c587b36eb2642a038beaa9f76210042a7368a07ff51a3f8291877f12ea716c2c1b1c53d9c9c248b1f212c07967b085bbcc6b2178b4775a SHA512 cdc40c132a64002a8d112c400180479ce436f9609e43c4ca8e70c1cc51221b363bdcf43efeb76036ca3dea5d45d3d8925cb383709eb0a643f63c54f8b48dafef MISC metadata.xml 438 BLAKE2B 0e0860eb9d885ec9b432b504bef6a9394cf4a2d6d99751c80fec8441d8910f8a17364e5f32782638ac689abf5cdd3ebcb5fa20e7da3d612a5e8844e8c8a34d76 SHA512 a748827370b53c94fed352cd6bbd7468a22c7ca2f15c4601c98a2689e3a7e652ed28434bcd125fe0f3018d5508600df03130c18d7d67834b28ac0c3480b16345 diff --git a/dev-python/pyftpdlib/pyftpdlib-1.5.6-r1.ebuild b/dev-python/pyftpdlib/pyftpdlib-1.5.6-r1.ebuild new file mode 100644 index 000000000000..c98a11ff0494 --- /dev/null +++ b/dev-python/pyftpdlib/pyftpdlib-1.5.6-r1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9} ) +PYTHON_REQ_USE="ssl(+)" + +inherit distutils-r1 + +DESCRIPTION="Python FTP server library" +HOMEPAGE="https://github.com/giampaolo/pyftpdlib https://pypi.org/project/pyftpdlib/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris" +IUSE="examples ssl test" +RESTRICT="!test? ( test )" + +RDEPEND=" + ssl? ( dev-python/pyopenssl[${PYTHON_USEDEP}] ) +" +BDEPEND=" + test? ( + ${RDEPEND} + dev-python/psutil[${PYTHON_USEDEP}] + dev-python/pyopenssl[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + ) +" + +distutils_enable_sphinx docs dev-python/sphinx_rtd_theme + +python_test() { + # These tests fail when passing additional options to pytest + # so we need to run them separately and not pass any args to pytest + pytest ${PN}/test/test_misc.py || die "Tests failed with ${EPYTHON}" + # Some of these tests tend to fail + local skipped_tests=( + # Those tests are run separately + pyftpdlib/test/test_misc.py + # https://github.com/giampaolo/pyftpdlib/issues/470 + # https://bugs.gentoo.org/659108 + pyftpdlib/test/test_functional_ssl.py::TestTimeouts::test_idle_data_timeout2 + pyftpdlib/test/test_functional_ssl.py::TestTimeoutsTLSMixin::test_idle_data_timeout2 + # https://github.com/giampaolo/pyftpdlib/issues/471 + # https://bugs.gentoo.org/636410 + pyftpdlib/test/test_functional.py::TestCallbacks::test_on_incomplete_file_received + # https://github.com/giampaolo/pyftpdlib/issues/466 + # https://bugs.gentoo.org/659786 + pyftpdlib/test/test_functional_ssl.py::TestFtpListingCmdsTLSMixin::test_nlst + # https://github.com/giampaolo/pyftpdlib/issues/512 + # https://bugs.gentoo.org/701146 + pyftpdlib/test/test_functional_ssl.py::TestFtpStoreDataTLSMixin::test_rest_on_stor + pyftpdlib/test/test_functional_ssl.py::TestFtpStoreDataTLSMixin::test_stor_ascii + # https://github.com/giampaolo/pyftpdlib/issues/513 + # https://bugs.gentoo.org/676232 + pyftpdlib/test/test_servers.py::TestFtpAuthentication::test_anon_auth + # https://github.com/giampaolo/pyftpdlib/issues/513 + # https://bugs.gentoo.org/702578 + pyftpdlib/test/test_servers.py::TestFtpAuthentication::test_auth_failed + ) + # Tests fail with TZ=GMT, see https://bugs.gentoo.org/666623 + TZ=UTC+1 pytest -vv ${skipped_tests[@]/#/--deselect } \ + || die "Tests failed with ${EPYTHON}" +} + +python_install_all() { + if use examples; then + docinto examples + dodoc -r demo/. + docompress -x /usr/share/doc/${PF}/examples + fi + distutils-r1_python_install_all +} diff --git a/dev-python/pyftpdlib/pyftpdlib-1.5.6.ebuild b/dev-python/pyftpdlib/pyftpdlib-1.5.6.ebuild deleted file mode 100644 index ef5525f50ada..000000000000 --- a/dev-python/pyftpdlib/pyftpdlib-1.5.6.ebuild +++ /dev/null @@ -1,86 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -PYTHON_COMPAT=( python3_{6,7,8} ) -PYTHON_REQ_USE="ssl(+)" - -inherit distutils-r1 - -DESCRIPTION="Python FTP server library" -HOMEPAGE="https://github.com/giampaolo/pyftpdlib https://pypi.org/project/pyftpdlib/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris" -IUSE="examples ssl test" -RESTRICT="!test? ( test )" - -RDEPEND=" - ssl? ( dev-python/pyopenssl[${PYTHON_USEDEP}] ) - dev-python/pysendfile[${PYTHON_USEDEP}] -" -DEPEND=" - dev-python/setuptools[${PYTHON_USEDEP}] - test? ( - ${RDEPEND} - dev-python/mock[${PYTHON_USEDEP}] - dev-python/psutil[${PYTHON_USEDEP}] - dev-python/pyopenssl[${PYTHON_USEDEP}] - dev-python/pytest[${PYTHON_USEDEP}] - ) -" - -distutils_enable_sphinx docs dev-python/sphinx_rtd_theme - -python_test() { - # These tests fail when passing additional options to pytest - # so we need to run them separately and not pass any args to pytest - pytest ${PN}/test/test_misc.py || die "Tests failed with ${EPYTHON}" - # Some of these tests tend to fail - local skipped_tests=( - # https://github.com/giampaolo/pyftpdlib/issues/470 - # https://bugs.gentoo.org/659108 - pyftpdlib/test/test_functional_ssl.py::TestTimeouts::test_idle_data_timeout2 - pyftpdlib/test/test_functional_ssl.py::TestTimeoutsTLSMixin::test_idle_data_timeout2 - # https://github.com/giampaolo/pyftpdlib/issues/471 - # https://bugs.gentoo.org/636410 - pyftpdlib/test/test_functional.py::TestCallbacks::test_on_incomplete_file_received - # https://github.com/giampaolo/pyftpdlib/issues/466 - # https://bugs.gentoo.org/659786 - pyftpdlib/test/test_functional_ssl.py::TestFtpListingCmdsTLSMixin::test_nlst - # https://github.com/giampaolo/pyftpdlib/issues/512 - # https://bugs.gentoo.org/701146 - pyftpdlib/test/test_functional_ssl.py::TestFtpStoreDataTLSMixin::test_rest_on_stor - pyftpdlib/test/test_functional_ssl.py::TestFtpStoreDataTLSMixin::test_stor_ascii - # https://github.com/giampaolo/pyftpdlib/issues/513 - # https://bugs.gentoo.org/676232 - pyftpdlib/test/test_servers.py::TestFtpAuthentication::test_anon_auth - # https://github.com/giampaolo/pyftpdlib/issues/513 - # https://bugs.gentoo.org/702578 - pyftpdlib/test/test_servers.py::TestFtpAuthentication::test_auth_failed - ) - # Tests fail with TZ=GMT, see https://bugs.gentoo.org/666623 - TZ=UTC+1 pytest -vv \ - --ignore ${PN}/test/test_misc.py ${skipped_tests[@]/#/--deselect } \ - || die "Tests failed with ${EPYTHON}" -} - -python_install_all() { - if use examples; then - docinto examples - dodoc -r demo/. - docompress -x /usr/share/doc/${PF}/examples - fi - distutils-r1_python_install_all -} - -pkg_postinst() { - if [[ -z ${REPLACING_VERSIONS} ]] && \ - [[ ${PYTHON_TARGETS} == *python2_7* ]] && \ - ! has_version dev-python/pysendfile ; then - elog "dev-python/pysendfile is not installed" - elog "It can considerably speed up file transfers for Python 2" - fi -} -- cgit v1.2.3