add (old) aioftp-0.10.1

This commit is contained in:
2019-01-08 15:49:11 +01:00
parent 2e87e27d86
commit 225f39cca7
2 changed files with 78 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
DIST aioftp-0.10.1.tar.gz 44933 BLAKE2B 89627c65ded7b50441cd2bae59090e91735be1c5d80764c7d0fafeeaf978f9ee58388e6b9184a7dce5f782f23731a2b544ef8fc79070ad92654d32cff90ca421 SHA512 869176c495ee7a48933b69fed6528ace06f8f3273f588710e2bb917a8fa5e1813348401bb30206c9cdd1d5735d7c99e2e16bd41d3f64f48b37a0e37d2b96dd41
DIST aioftp-0.12.0.tar.gz 48099 BLAKE2B 1947f01781c7faee23cbcca12350e2a4b809be84382d172b29da1970b7e5bf60e2ca3aac4fa4a05ab4caeba55c98a6186baaa61abb7cc54e7683de5f2f08fecc SHA512 8e9787f8761dc72d3581fc551e4648018bd0a244fc58d179c15008bd8893194801a39f3109ce0232f47c79def16862e60e4190c197c3ef19a4d80a82643492db
EBUILD aioftp-0.10.1.ebuild 2116 BLAKE2B 4daaf2335534f226fd673148f26f0aeb094c37dc8a5b72f8f5fa805b105640489b42bac5bd5ef9d593e521049f7087aedcf5738aca90c04ed902b37eafba793d SHA512 94f5c8ce70ae523ce433b53c267c9146261de5e431d5da9dcf9b98e2f2663ac13d6ca52d3f6ddd1cb0531c2262148d7add807568284055e91a94a5e99f120cbb
EBUILD aioftp-0.12.0.ebuild 2116 BLAKE2B 4daaf2335534f226fd673148f26f0aeb094c37dc8a5b72f8f5fa805b105640489b42bac5bd5ef9d593e521049f7087aedcf5738aca90c04ed902b37eafba793d SHA512 94f5c8ce70ae523ce433b53c267c9146261de5e431d5da9dcf9b98e2f2663ac13d6ca52d3f6ddd1cb0531c2262148d7add807568284055e91a94a5e99f120cbb
MISC metadata.xml 252 BLAKE2B 507e0ddc9d50b879ff374b903b142f85d020dfd6c486aba2af84fe082c878e780edbb79188ae10104d57db0eb775c86814cc8c06891a3854c9da840a4d377050 SHA512 9470ac9c8a5a4f80e3f767e7aa198addc7b21866c63b2a310e9f41ce65817672fb77423117bdd619e99cb62322025aeadf50717e23eafabf99080fcc106820af

View File

@@ -0,0 +1,76 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} pypy pypy3 )
inherit distutils-r1
DESCRIPTION="ftp client/server for asyncio"
HOMEPAGE="https://pypi.org/project/aioftp/"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc test"
CDEPEND="
>=dev-python/async_timeout-3.0.0[${PYTHON_USEDEP}]
>=dev-python/attrs-17.3.0[${PYTHON_USEDEP}]
dev-python/chardet[${PYTHON_USEDEP}]
>=dev-python/multidict-4.0.0[${PYTHON_USEDEP}]
>=dev-python/yarl-1.0[${PYTHON_USEDEP}]
dev-python/idna-ssl[${PYTHON_USEDEP}]
"
DEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
dev-python/cython[${PYTHON_USEDEP}]
doc? (
>=dev-python/alabaster-0.6.2[${PYTHON_USEDEP}]
dev-python/sphinxcontrib-asyncio[${PYTHON_USEDEP}]
dev-python/sphinxcontrib-blockdiag[${PYTHON_USEDEP}]
dev-python/sphinxcontrib-newsfeed[${PYTHON_USEDEP}]
dev-python/sphinxcontrib-spelling[${PYTHON_USEDEP}]
dev-python/sphinx[${PYTHON_USEDEP}]
dev-python/sphinx-aiohttp-theme[${PYTHON_USEDEP}]
)
test? (
${CDEPEND}
dev-python/async_generator[${PYTHON_USEDEP}]
>=dev-python/pytest-3.4.0[${PYTHON_USEDEP}]
dev-python/pytest-mock[${PYTHON_USEDEP}]
dev-python/pytest-timeout[${PYTHON_USEDEP}]
www-servers/gunicorn[${PYTHON_USEDEP}]
)
"
RDEPEND="${CDEPEND}"
DOCS=( CHANGES.rst CONTRIBUTING.rst CONTRIBUTORS.txt HISTORY.rst README.rst )
PATCHES=( "${FILESDIR}"/${PN}-3.0.5-tests.patch )
python_prepare_all() {
# skip failing tests until cause is determined
rm tests/{test_pytest_plugin.py,test_worker.py} || die
# AttributeError: 'brotli.Decompressor' object has no attribute 'flush'
sed -e 's:test_compression_brotli:_\0:' \
-e 's:test_feed_eof_no_err_brotli:_\0:' \
-i tests/test_http_parser.py || die
distutils-r1_python_prepare_all
}
python_compile_all() {
use doc && emake -C docs html
}
python_test() {
esetup.py test
}
python_install_all() {
use doc && local HTML_DOCS=( docs/_build/html/. )
distutils-r1_python_install_all
}