From ffe910e129da5362318efdc5cc819064aedbce6d Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Sat, 19 Jun 2021 13:45:42 +0000 Subject: Adding metadata --- dev-python/aiohttp/aiohttp-3.7.4-r1.ebuild | 99 ++++++++++++++++++++++ dev-python/aiohttp/aiohttp-3.7.4.ebuild | 88 ------------------- .../aiohttp/files/aiohttp-3.7.4-brotli.patch | 97 +++++++++++++++++++++ dev-python/httpx/Manifest | 4 - dev-python/httpx/httpx-0.16.1.ebuild | 45 ---------- dev-python/httpx/httpx-0.17.0.ebuild | 45 ---------- dev-python/httpx/httpx-0.17.1.ebuild | 46 ---------- dev-python/httpx/httpx-0.18.0.ebuild | 52 ------------ dev-python/liblarch/Manifest | 1 + dev-python/liblarch/liblarch-3.1.0.ebuild | 31 +++++++ dev-python/pytest-httpx/Manifest | 2 - dev-python/pytest-httpx/pytest-httpx-0.10.1.ebuild | 30 ------- dev-python/pytest-httpx/pytest-httpx-0.11.0.ebuild | 30 ------- dev-python/tekore/metadata.xml | 4 + dev-python/tekore/tekore-3.7.1.ebuild | 3 +- dev-python/thrift/thrift-0.14.1.ebuild | 2 +- 16 files changed, 235 insertions(+), 344 deletions(-) create mode 100644 dev-python/aiohttp/aiohttp-3.7.4-r1.ebuild delete mode 100644 dev-python/aiohttp/aiohttp-3.7.4.ebuild create mode 100644 dev-python/aiohttp/files/aiohttp-3.7.4-brotli.patch delete mode 100644 dev-python/httpx/httpx-0.16.1.ebuild delete mode 100644 dev-python/httpx/httpx-0.17.0.ebuild delete mode 100644 dev-python/httpx/httpx-0.17.1.ebuild delete mode 100644 dev-python/httpx/httpx-0.18.0.ebuild create mode 100644 dev-python/liblarch/liblarch-3.1.0.ebuild delete mode 100644 dev-python/pytest-httpx/pytest-httpx-0.10.1.ebuild delete mode 100644 dev-python/pytest-httpx/pytest-httpx-0.11.0.ebuild (limited to 'dev-python') diff --git a/dev-python/aiohttp/aiohttp-3.7.4-r1.ebuild b/dev-python/aiohttp/aiohttp-3.7.4-r1.ebuild new file mode 100644 index 000000000000..7aa65be5acf7 --- /dev/null +++ b/dev-python/aiohttp/aiohttp-3.7.4-r1.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) + +inherit distutils-r1 multiprocessing + +DESCRIPTION="http client/server for asyncio" +HOMEPAGE="https://pypi.org/project/aiohttp/" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 ~riscv sparc x86" + +RDEPEND=" + >=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.5.0[${PYTHON_USEDEP}] + >=dev-python/yarl-1.0[${PYTHON_USEDEP}] + dev-python/typing-extensions[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] + test? ( + !!dev-python/pytest-aiohttp + app-arch/brotli[python,${PYTHON_USEDEP}] + dev-python/async_generator[${PYTHON_USEDEP}] + dev-python/freezegun[${PYTHON_USEDEP}] + www-servers/gunicorn[${PYTHON_USEDEP}] + dev-python/pytest-forked[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + dev-python/pytest-timeout[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + dev-python/re-assert[${PYTHON_USEDEP}] + dev-python/trustme[${PYTHON_USEDEP}] + ) +" + +PATCHES=( + "${FILESDIR}"/aiohttp-3.7.4-brotli.patch +) + +DOCS=( CHANGES.rst CONTRIBUTORS.txt README.rst ) + +distutils_enable_tests pytest +distutils_enable_sphinx docs \ + '>=dev-python/alabaster-0.6.2' \ + 'dev-python/sphinxcontrib-asyncio' \ + 'dev-python/sphinxcontrib-blockdiag' \ + 'dev-python/sphinxcontrib-newsfeed' \ + 'dev-python/sphinxcontrib-spelling' \ + 'dev-python/sphinx' \ + 'dev-python/sphinx-aiohttp-theme' + +python_prepare_all() { + # newer chardet works too + sed -e 's|chardet>=2.0,<4.0|chardet>=2.0|' \ + -i setup.py aiohttp.egg-info/requires.txt || die + + # takes a very long time, then fails + rm tests/test_pytest_plugin.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + local deselect=( + # fails with a 'runtime warning' + 'tests/test_client_functional.py::test_aiohttp_request_coroutine[pyloop]' + + # fragile to test paths + tests/test_route_def.py::test_static + + # requires Internet + tests/test_formdata.py::test_mark_formdata_as_processed + + # 'Event loop is closed' -- probably broken by old age + 'tests/test_streams.py::TestDataQueue::test_read[pyloop]' + 'tests/test_streams.py::TestDataQueue::test_read_eof[pyloop]' + 'tests/test_streams.py::TestDataQueue::test_read_cancelled[pyloop]' + 'tests/test_streams.py::TestDataQueue::test_read_until_eof[pyloop]' + 'tests/test_streams.py::TestDataQueue::test_read_exc[pyloop]' + 'tests/test_streams.py::TestDataQueue::test_read_exception[pyloop]' + 'tests/test_streams.py::TestDataQueue::test_read_exception_with_data[pyloop]' + 'tests/test_streams.py::TestDataQueue::test_read_exception_on_wait[pyloop]' + 'tests/test_streams.py::TestDataQueue::test_exception_waiter[pyloop]' + ) + + pushd "${BUILD_DIR}/lib" >/dev/null || die + ln -snf "${S}"/{LICENSE.txt,tests} . || die + epytest -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" --forked \ + ${deselect[@]/#/--deselect } tests + rm -rf .hypothesis .pytest_cache tests || die + popd >/dev/null || die +} diff --git a/dev-python/aiohttp/aiohttp-3.7.4.ebuild b/dev-python/aiohttp/aiohttp-3.7.4.ebuild deleted file mode 100644 index c93c546dff1b..000000000000 --- a/dev-python/aiohttp/aiohttp-3.7.4.ebuild +++ /dev/null @@ -1,88 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{6,7,8,9,10} ) - -inherit distutils-r1 multiprocessing - -DESCRIPTION="http client/server for asyncio" -HOMEPAGE="https://pypi.org/project/aiohttp/" -SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 ~riscv sparc x86" - -RDEPEND=" - >=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.5.0[${PYTHON_USEDEP}] - >=dev-python/yarl-1.0[${PYTHON_USEDEP}] - dev-python/typing-extensions[${PYTHON_USEDEP}] -" -BDEPEND=" - dev-python/cython[${PYTHON_USEDEP}] - test? ( - !!dev-python/pytest-aiohttp - dev-python/async_generator[${PYTHON_USEDEP}] - dev-python/brotlipy[${PYTHON_USEDEP}] - dev-python/freezegun[${PYTHON_USEDEP}] - www-servers/gunicorn[${PYTHON_USEDEP}] - dev-python/pytest-forked[${PYTHON_USEDEP}] - dev-python/pytest-mock[${PYTHON_USEDEP}] - dev-python/pytest-timeout[${PYTHON_USEDEP}] - dev-python/pytest-xdist[${PYTHON_USEDEP}] - dev-python/re-assert[${PYTHON_USEDEP}] - dev-python/trustme[${PYTHON_USEDEP}] - ) -" - -DOCS=( CHANGES.rst CONTRIBUTORS.txt README.rst ) - -distutils_enable_tests pytest -distutils_enable_sphinx docs \ - '>=dev-python/alabaster-0.6.2' \ - 'dev-python/sphinxcontrib-asyncio' \ - 'dev-python/sphinxcontrib-blockdiag' \ - 'dev-python/sphinxcontrib-newsfeed' \ - 'dev-python/sphinxcontrib-spelling' \ - 'dev-python/sphinx' \ - 'dev-python/sphinx-aiohttp-theme' - -python_prepare_all() { - # Fails due to a warning - sed -e 's:test_read_boundary_with_incomplete_chunk:_&:' \ - -i tests/test_multipart.py || die - # with py3.7+ - sed -e 's:test_aiohttp_request_coroutine:_&:' \ - -i tests/test_client_functional.py || die - - # Fails due to path mismatch - sed -e 's:test_static:_&:' \ - -i tests/test_route_def.py || die - - # Internet - sed -e 's:test_mark_formdata_as_processed:_&:' \ - -i tests/test_formdata.py || die - - # newer chardet works too - sed -e 's|chardet>=2.0,<4.0|chardet>=2.0|' \ - -i setup.py aiohttp.egg-info/requires.txt || die - - # takes a very long time, then fails - rm tests/test_pytest_plugin.py || die - - distutils-r1_python_prepare_all -} - -python_test() { - pushd "${BUILD_DIR}/lib" >/dev/null || die - ln -snf "${S}"/{LICENSE.txt,tests} . || die - pytest -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" --forked \ - -vv tests || die "Tests fail with ${EPYTHON}" - rm -rf .pytest_cache tests || die - popd >/dev/null || die -} diff --git a/dev-python/aiohttp/files/aiohttp-3.7.4-brotli.patch b/dev-python/aiohttp/files/aiohttp-3.7.4-brotli.patch new file mode 100644 index 000000000000..1e8add007999 --- /dev/null +++ b/dev-python/aiohttp/files/aiohttp-3.7.4-brotli.patch @@ -0,0 +1,97 @@ +From a7424ddf490fc51244d427543cc9683b5427102b Mon Sep 17 00:00:00 2001 +From: Felix Yan +Date: Fri, 19 Jul 2019 21:32:55 +0800 +Subject: [PATCH] Use Brotli instead of brotlipy (#3803) +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +brotlipy is stuck at brotli 0.6 and upstream is inactive. Let's switch +to the official binding which is up-to-date. + +(rebased for 3.7.x by Michał Górny) +--- + aiohttp/http_parser.py | 25 +++++++++++++++++++++---- + docs/client_quickstart.rst | 2 +- + docs/index.rst | 2 +- + setup.py | 2 +- + 4 files changed, 24 insertions(+), 7 deletions(-) + +diff --git a/aiohttp/http_parser.py b/aiohttp/http_parser.py +index 71ba815a..56ecead4 100644 +--- a/aiohttp/http_parser.py ++++ b/aiohttp/http_parser.py +@@ -821,10 +821,27 @@ class DeflateBuffer: + if encoding == "br": + if not HAS_BROTLI: # pragma: no cover + raise ContentEncodingError( +- "Can not decode content-encoding: brotli (br). " +- "Please install `brotlipy`" +- ) +- self.decompressor = brotli.Decompressor() ++ 'Can not decode content-encoding: brotli (br). ' ++ 'Please install `Brotli`') ++ ++ class BrotliDecoder: ++ # Supports both 'brotlipy' and 'Brotli' packages ++ # since they share an import name. The top branches ++ # are for 'brotlipy' and bottom branches for 'Brotli' ++ def __init__(self) -> None: ++ self._obj = brotli.Decompressor() ++ ++ def decompress(self, data: bytes) -> bytes: ++ if hasattr(self._obj, "decompress"): ++ return self._obj.decompress(data) ++ return self._obj.process(data) ++ ++ def flush(self) -> bytes: ++ if hasattr(self._obj, "flush"): ++ return self._obj.flush() ++ return b"" ++ ++ self.decompressor = BrotliDecoder() # type: Any + else: + zlib_mode = 16 + zlib.MAX_WBITS if encoding == "gzip" else zlib.MAX_WBITS + self.decompressor = zlib.decompressobj(wbits=zlib_mode) +diff --git a/docs/client_quickstart.rst b/docs/client_quickstart.rst +index 95588cb6..b9146584 100644 +--- a/docs/client_quickstart.rst ++++ b/docs/client_quickstart.rst +@@ -174,7 +174,7 @@ The ``gzip`` and ``deflate`` transfer-encodings are automatically + decoded for you. + + You can enable ``brotli`` transfer-encodings support, +-just install `brotlipy `_. ++just install `Brotli `_. + + JSON Request + ============ +diff --git a/docs/index.rst b/docs/index.rst +index 13fe723b..4091c001 100644 +--- a/docs/index.rst ++++ b/docs/index.rst +@@ -52,7 +52,7 @@ Installing speedups altogether + ------------------------------ + + The following will get you ``aiohttp`` along with :term:`chardet`, +-:term:`aiodns` and ``brotlipy`` in one bundle. No need to type ++:term:`aiodns` and ``Brotli`` in one bundle. No need to type + separate commands anymore! + + .. code-block:: bash +diff --git a/setup.py b/setup.py +index 54462ba7..7a184817 100644 +--- a/setup.py ++++ b/setup.py +@@ -137,7 +137,7 @@ args = dict( + extras_require={ + "speedups": [ + "aiodns", +- "brotlipy", ++ "Brotli", + "cchardet", + ], + }, +-- +2.32.0 + diff --git a/dev-python/httpx/Manifest b/dev-python/httpx/Manifest index 0f841ab39b0e..0aa0aa899740 100644 --- a/dev-python/httpx/Manifest +++ b/dev-python/httpx/Manifest @@ -1,6 +1,2 @@ -DIST httpx-0.16.1.tar.gz 965347 BLAKE2B a6c5bcdda595ffcfb824194564ebd93760a9180e60665a9540fc6a2822b1be4273b940fee61cb4b49c2d97a5f4d71b1caf32deddec18d2fb636465b3868aece4 SHA512 d76b2c94c655c187ab150f20b16906034574d017a67c4a06c456d55071434cc0ba7752bdceda86aa6b1a1fe9109fa11594e4ea679cd7d2a77898fb40fa5153d3 -DIST httpx-0.17.0.tar.gz 1651681 BLAKE2B 46eec46d5f2006667ab51e5e4d98c1a22783351d9e2fa50ccab2431bf6e52dd9b124d50b32f151fc171561c913d879cfec4f717ea22fd2a333c13190368ab505 SHA512 9471c404c02481a10d42e10e36a55cd55cdecd2cd98a8f3ca1f453a7f1ad7f1ce3b292b8fe583b1c95119f27c0b2eefc756b4e4ed353e3383c12009f3bde21cd -DIST httpx-0.17.1.tar.gz 1651788 BLAKE2B 445e61dba5a2648191f57352b664a33785af01bb9ca29c7f553d10111894d0b4011a6987bdea880dd3fc87a60ddee7813a2d51e12178277b60ac27ac6fa930ef SHA512 260040e266144f56b8d1cd085e0d97f2b570c685560fd2bc6baca633e8c9e88a666d0ba072048d63f826dd380df7116ce676dcfb48406e39a7480c44f73368c6 -DIST httpx-0.18.0.tar.gz 1663878 BLAKE2B 968ac2a3bd1d150d1adb7e7de5c9dd3aba2ec549feecefdec040d7be1ed54c96b439eff65a4a0d36ebbe77f71af610fc7a0e774fd8dd494a7e80df4e8d0d96c0 SHA512 9648729dbac37500fc828a7cae98a705fa811ae2df0d4abb4bd13a97e03f1ef73b062112c24e7c3edf60140ed5342498a85b46e8cb6b999521ee5d4869656e84 DIST httpx-0.18.1.tar.gz 1663996 BLAKE2B dcbfcb4a452b47b643d5114a535005f7f92170392202dedc6c152546430231d20fd8b94b7ecc1d2abacbc9d76acb14cbfdc268109b171cc40812504e696dcaab SHA512 954b020d117dd1064262f3ac2d3137d01bba344b1a061e5713c3889283334d9ca92d9ed3d23f6ce79d684e31bae2d83fca6993178ef55e5a91353b812ad489e3 DIST httpx-0.18.2.tar.gz 1666756 BLAKE2B 3d1e25d503ae5306150c157bc83afdac9a475110d042e041b58de448a0dcfd75de3f4c15836b838dc799cd5f8b7e0d646e43bbe107ffad87d51ff016afe585cd SHA512 727974e5d5924fdd653987dd4f528d27bb2653085b01ef5efcdac39dc92ef2ed586f872c202349aa31105ad970cff914de4315c2d79338a6aa18bebb8126f392 diff --git a/dev-python/httpx/httpx-0.16.1.ebuild b/dev-python/httpx/httpx-0.16.1.ebuild deleted file mode 100644 index 5fbcd07d4e1f..000000000000 --- a/dev-python/httpx/httpx-0.16.1.ebuild +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{6,7,8,9,10} ) - -inherit distutils-r1 - -DESCRIPTION="Fully-featured HTTP client which provides sync and async APIs" -HOMEPAGE="https://www.python-httpx.org/" -SRC_URI="https://github.com/encode/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -RDEPEND=" - dev-python/certifi[${PYTHON_USEDEP}] - dev-python/sniffio[${PYTHON_USEDEP}] - =dev-python/httpcore-0.12*[${PYTHON_USEDEP}] - >=dev-python/rfc3986-1.3[${PYTHON_USEDEP}] - andrewammerlaan@gentoo.org Andrew Ammerlaan + + python@gentoo.org + Python + felix-hilden/tekore tekore diff --git a/dev-python/tekore/tekore-3.7.1.ebuild b/dev-python/tekore/tekore-3.7.1.ebuild index 2ea21aa3ee79..a246c0f45090 100644 --- a/dev-python/tekore/tekore-3.7.1.ebuild +++ b/dev-python/tekore/tekore-3.7.1.ebuild @@ -20,7 +20,6 @@ SLOT="0" RDEPEND=" >=dev-python/httpx-0.11[${PYTHON_USEDEP}] -