From d5e2803e89dc0c1682820b7df2dd26b9a226b585 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Sun, 29 Mar 2020 11:03:53 +0200 Subject: [PATCH 01/31] dev-python/pytest-sugar: new package Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Alessandro Barbieri --- dev-python/pytest-sugar/Manifest | 1 + dev-python/pytest-sugar/metadata.xml | 19 ++++++++++++ .../pytest-sugar/pytest-sugar-0.9.2.ebuild | 29 +++++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 dev-python/pytest-sugar/Manifest create mode 100644 dev-python/pytest-sugar/metadata.xml create mode 100644 dev-python/pytest-sugar/pytest-sugar-0.9.2.ebuild diff --git a/dev-python/pytest-sugar/Manifest b/dev-python/pytest-sugar/Manifest new file mode 100644 index 0000000000..123b31e5eb --- /dev/null +++ b/dev-python/pytest-sugar/Manifest @@ -0,0 +1 @@ +DIST pytest-sugar-0.9.2.tar.gz 12677 BLAKE2B 9ef5119479ce1333bf86844e8f959d5e50f1f656fff7a871acb9aa5bd7478bafa34819c4db8ad8a8f105807cf444544846bf02049fbd6802636e5a3f123a11ab SHA512 9a1f30e35cb503f1afec6a1e18ad2d013b005627891021171ccc6f94d3aebe45a724db0615ba75e2befc074e7b77dd0627b5ffb8876906d434bd95cf5984b5ad diff --git a/dev-python/pytest-sugar/metadata.xml b/dev-python/pytest-sugar/metadata.xml new file mode 100644 index 0000000000..c1fe544d05 --- /dev/null +++ b/dev-python/pytest-sugar/metadata.xml @@ -0,0 +1,19 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + +pytest-sugar changes the look and feel of pytest, Python testing tool, by adding a progressbar and instafailing tests + + + Teemu/pytest-sugar + pytest-sugar + + janne.vanhala@gmail.com + Janne Vanhala + + + diff --git a/dev-python/pytest-sugar/pytest-sugar-0.9.2.ebuild b/dev-python/pytest-sugar/pytest-sugar-0.9.2.ebuild new file mode 100644 index 0000000000..e3f00c37c6 --- /dev/null +++ b/dev-python/pytest-sugar/pytest-sugar-0.9.2.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit distutils-r1 + +DESCRIPTION="Plugin for pytest that changes the default look and feel of pytest" +HOMEPAGE=" + https://pivotfinland.com/pytest-sugar + https://github.com/Teemu/pytest-sugar + https://pypi.org/project/pytest-sugar +" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=dev-python/packaging-14.1[${PYTHON_USEDEP}] + >=dev-python/pytest-xdist-1.14[${PYTHON_USEDEP}] + >=dev-python/termcolor-1.1.0[${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND}" + +distutils_enable_tests pytest From 69dd05e63464ed5b753374543cf0e7d4b268e409 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Sun, 29 Mar 2020 11:05:15 +0200 Subject: [PATCH 02/31] dev-python/pytest-sanic: new package Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Alessandro Barbieri --- dev-python/pytest-sanic/Manifest | 1 + dev-python/pytest-sanic/metadata.xml | 22 ++++++++++++ .../pytest-sanic/pytest-sanic-1.6.0.ebuild | 34 +++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 dev-python/pytest-sanic/Manifest create mode 100644 dev-python/pytest-sanic/metadata.xml create mode 100644 dev-python/pytest-sanic/pytest-sanic-1.6.0.ebuild diff --git a/dev-python/pytest-sanic/Manifest b/dev-python/pytest-sanic/Manifest new file mode 100644 index 0000000000..8993220818 --- /dev/null +++ b/dev-python/pytest-sanic/Manifest @@ -0,0 +1 @@ +DIST pytest-sanic-1.6.0.tar.gz 30185 BLAKE2B 737779cfbf850d511194c843f8fa83cb6a69ac5fb46195b2f9f5537f581bd41626de5a4cca35acf942f3dbb0560020d762026255387c3a7bcd7f7afaec5de5ad SHA512 efd284fba92c202036f1c28e91e671954b948243bd847f092e72bcda5ac4d734dbe7007f9beb0d60aa353843731891680e3c3bc7d2bf211fc34f42f6e1a92373 diff --git a/dev-python/pytest-sanic/metadata.xml b/dev-python/pytest-sanic/metadata.xml new file mode 100644 index 0000000000..cef449007d --- /dev/null +++ b/dev-python/pytest-sanic/metadata.xml @@ -0,0 +1,22 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + +A pytest plugin for Sanic. It helps you to test your code asynchronously. + +This plugin provides: + + very easy testing with async coroutines + common and useful fixtures + asynchronous fixture support + test_client/sanic_client for Sanic application + test_server for Sanic application + + + yunstanford/pytest-sanic + + diff --git a/dev-python/pytest-sanic/pytest-sanic-1.6.0.ebuild b/dev-python/pytest-sanic/pytest-sanic-1.6.0.ebuild new file mode 100644 index 0000000000..2f4dd3a247 --- /dev/null +++ b/dev-python/pytest-sanic/pytest-sanic-1.6.0.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_6 ) + +inherit distutils-r1 + +DESCRIPTION="a Pytest Plugin for Sanic" +HOMEPAGE=" + https://pypi.python.org/pypi/pytest-sanic + https://github.com/yunstanford/pytest-sanic +" +SRC_URI="https://github.com/yunstanford/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-python/aiohttp[${PYTHON_USEDEP}] + dev-python/async_generator[${PYTHON_USEDEP}] +" +BDEPEND=" + ${RDEPEND} + test? ( + dev-python/sanic[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest +distutils_enable_sphinx docs From 6cc71c8656ff2348ed5e7971baac62e4189c87bd Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Sun, 29 Mar 2020 11:08:57 +0200 Subject: [PATCH 03/31] dev-python/pytest-instafail: new package Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Alessandro Barbieri --- dev-python/pytest-instafail/Manifest | 1 + dev-python/pytest-instafail/metadata.xml | 13 ++++++++ .../pytest-instafail-0.4.1.ebuild | 32 +++++++++++++++++++ 3 files changed, 46 insertions(+) create mode 100644 dev-python/pytest-instafail/Manifest create mode 100644 dev-python/pytest-instafail/metadata.xml create mode 100644 dev-python/pytest-instafail/pytest-instafail-0.4.1.ebuild diff --git a/dev-python/pytest-instafail/Manifest b/dev-python/pytest-instafail/Manifest new file mode 100644 index 0000000000..002fbd866c --- /dev/null +++ b/dev-python/pytest-instafail/Manifest @@ -0,0 +1 @@ +DIST pytest-instafail-0.4.1.tar.gz 5237 BLAKE2B 697aca533e3654204d5c7cdee245c7c2f7811b7941f195923983be8a30d76b0a132d1eff984c86070a9c4a5463adb6143d1f8915a105c2c75d59e8ca92149e86 SHA512 f043a1a58a2fc92c740e916008fe3e8bb66d3086f2c518f34ef8d63362169cd1b4f4a5f39b70382329cda837e0fd6c02cbb7504292d0aed95994d473c6430488 diff --git a/dev-python/pytest-instafail/metadata.xml b/dev-python/pytest-instafail/metadata.xml new file mode 100644 index 0000000000..450c13e407 --- /dev/null +++ b/dev-python/pytest-instafail/metadata.xml @@ -0,0 +1,13 @@ + + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + pytest-dev/pytest-instafail + pytest-instafail + + diff --git a/dev-python/pytest-instafail/pytest-instafail-0.4.1.ebuild b/dev-python/pytest-instafail/pytest-instafail-0.4.1.ebuild new file mode 100644 index 0000000000..7defbbd226 --- /dev/null +++ b/dev-python/pytest-instafail/pytest-instafail-0.4.1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7} ) + +inherit distutils-r1 + +DESCRIPTION="Plugin for py.test that shows failures and errors instantly instead of waiting until the end of test session" +HOMEPAGE=" + https://github.com/pytest-dev/pytest-instafail + https://pypi.org/project/pytest-instafail +" +SRC_URI="https://github.com/pytest-dev/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=dev-python/pytest-2.9[${PYTHON_USEDEP}] +" +DEPEND=" + ${RDEPEND} + test? ( + dev-python/pexpect[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest From de89d7e0f74414f4b254c4f6ea091cf16c0744e4 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Sun, 29 Mar 2020 11:11:27 +0200 Subject: [PATCH 04/31] dev-python/pytest-travis-fold: new package Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Alessandro Barbieri --- dev-python/pytest-travis-fold/Manifest | 1 + dev-python/pytest-travis-fold/metadata.xml | 13 +++++++++ .../pytest-travis-fold-1.3.0.ebuild | 28 +++++++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 dev-python/pytest-travis-fold/Manifest create mode 100644 dev-python/pytest-travis-fold/metadata.xml create mode 100644 dev-python/pytest-travis-fold/pytest-travis-fold-1.3.0.ebuild diff --git a/dev-python/pytest-travis-fold/Manifest b/dev-python/pytest-travis-fold/Manifest new file mode 100644 index 0000000000..e078951d96 --- /dev/null +++ b/dev-python/pytest-travis-fold/Manifest @@ -0,0 +1 @@ +DIST pytest-travis-fold-1.3.0.tar.gz 7787 BLAKE2B 1ccecca18312d85b4bec0fcd6398a4b8aa19053c18799eb5bd4bb59a1e33e5eaa45bb952e4f3b356ba985cb81ef4753c474ebbfd901d57bce8e8521f16541768 SHA512 18b551690a526330a7ed3846c4ecb123e5ecbd6edb91ba145525b48391c5226b6e5ff44ba4e5c46487ca3716120a2d0d0518c2ef4cab5ee3419496124a5f2ffa diff --git a/dev-python/pytest-travis-fold/metadata.xml b/dev-python/pytest-travis-fold/metadata.xml new file mode 100644 index 0000000000..ec09803fab --- /dev/null +++ b/dev-python/pytest-travis-fold/metadata.xml @@ -0,0 +1,13 @@ + + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + abusalimov/pytest-travis-fold + pytest-travis-fold + + diff --git a/dev-python/pytest-travis-fold/pytest-travis-fold-1.3.0.ebuild b/dev-python/pytest-travis-fold/pytest-travis-fold-1.3.0.ebuild new file mode 100644 index 0000000000..98822960b9 --- /dev/null +++ b/dev-python/pytest-travis-fold/pytest-travis-fold-1.3.0.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_{6,7} ) + +inherit distutils-r1 + +DESCRIPTION="Pytest plugin that folds captured output sections in Travis CI build log" +HOMEPAGE=" + https://github.com/abusalimov/pytest-travis-fold + https://pypi.org/project/pytest-travis-fold +" +SRC_URI="https://github.com/abusalimov/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=dev-python/pytest-2.6.0[${PYTHON_USEDEP}] + Date: Sun, 29 Mar 2020 11:13:05 +0200 Subject: [PATCH 05/31] dev-python/pygaljs: new package Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Alessandro Barbieri --- dev-python/pygaljs/Manifest | 1 + dev-python/pygaljs/metadata.xml | 13 +++++++++++++ dev-python/pygaljs/pygaljs-1.0.0.ebuild | 24 ++++++++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 dev-python/pygaljs/Manifest create mode 100644 dev-python/pygaljs/metadata.xml create mode 100644 dev-python/pygaljs/pygaljs-1.0.0.ebuild diff --git a/dev-python/pygaljs/Manifest b/dev-python/pygaljs/Manifest new file mode 100644 index 0000000000..0b99fb23aa --- /dev/null +++ b/dev-python/pygaljs/Manifest @@ -0,0 +1 @@ +DIST pygaljs-1.0.0.tar.gz 3322 BLAKE2B 247c911b98cfdefd987745f606ad691be4c3d99a66ce6c03789aa298777d6623f56e47f8211b702b4d2b3fdf39dbdcfdac547b9623186f793898b0b3906b5aa9 SHA512 bcb3e9b741901d491926024bbb89c224db4fbeddf1868119691442754c7089e7a8464f9d91e8c2f25c01718e827518efd4614056cdbe4fedd63341feee1d9ecc diff --git a/dev-python/pygaljs/metadata.xml b/dev-python/pygaljs/metadata.xml new file mode 100644 index 0000000000..112a28df0f --- /dev/null +++ b/dev-python/pygaljs/metadata.xml @@ -0,0 +1,13 @@ + + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + ionelmc/python-pygaljs + pygaljs + + diff --git a/dev-python/pygaljs/pygaljs-1.0.0.ebuild b/dev-python/pygaljs/pygaljs-1.0.0.ebuild new file mode 100644 index 0000000000..20c5ad17f7 --- /dev/null +++ b/dev-python/pygaljs/pygaljs-1.0.0.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7} ) + +inherit distutils-r1 + +DESCRIPTION="Python package providing assets from https://github.com/Kozea/pygal.js" +HOMEPAGE=" + https://github.com/ionelmc/python-pygaljs + https://pypi.org/project/pygaljs +" +SRC_URI="https://github.com/ionelmc/python-${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="" +DEPEND="" + +distutils_enable_tests pytest From 31bf152ba6cc3ebc667013e190e26a6d415b1c78 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Sun, 29 Mar 2020 11:17:09 +0200 Subject: [PATCH 06/31] dev-python/manhole: new package Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Alessandro Barbieri --- dev-python/manhole/Manifest | 1 + dev-python/manhole/manhole-1.6.0.ebuild | 47 +++++++++++++++++++++++++ dev-python/manhole/metadata.xml | 20 +++++++++++ 3 files changed, 68 insertions(+) create mode 100644 dev-python/manhole/Manifest create mode 100644 dev-python/manhole/manhole-1.6.0.ebuild create mode 100644 dev-python/manhole/metadata.xml diff --git a/dev-python/manhole/Manifest b/dev-python/manhole/Manifest new file mode 100644 index 0000000000..2d8dd7fb8f --- /dev/null +++ b/dev-python/manhole/Manifest @@ -0,0 +1 @@ +DIST manhole-1.6.0.tar.gz 30111 BLAKE2B e6cffb465d72d579d3c901b5f163248ea28f3a208d2b487207a4f2d949994b7b778808b19a3bde0047bc71c2fe1865a12f9dcc5ac4f5407745879c8648df6c89 SHA512 179a87529e371c4480b6ab0ad6cc6cc9e3942f4be339cacaf1f1b100e447b8b1f2903a03879e9df3376c86ced4421aa5a16d934c9b250f91715b28d03dca000a diff --git a/dev-python/manhole/manhole-1.6.0.ebuild b/dev-python/manhole/manhole-1.6.0.ebuild new file mode 100644 index 0000000000..37db2bb6ea --- /dev/null +++ b/dev-python/manhole/manhole-1.6.0.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7} ) + +inherit distutils-r1 + +MYPN="python-${PN}" + +DESCRIPTION="Debugging manhole for python application" +HOMEPAGE=" + https://github.com/ionelmc/python-manhole + https://pypi.org/project/python-manhole +" +SRC_URI="https://github.com/ionelmc/${MYPN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="" +DEPEND=" + ${RDEPEND} + test? ( + dev-python/eventlet[${PYTHON_USEDEP}] + dev-python/gevent[${PYTHON_USEDEP}] + dev-python/process-tests[${PYTHON_USEDEP}] + dev-python/pytest-travis-fold[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + www-servers/uwsgi[${PYTHON_USEDEP}] + ) +" + +S="${WORKDIR}/${MYPN}-${PV}" + +python_prepare_all() { + #no coverage + #sed -i 's|--cov-report term-missing||' setup.cfg || die + #sed -i 's|nocover: false|nocover: true|' setup.cfg || die + distutils-r1_python_prepare_all +} + +distutils_enable_tests pytest +distutils_enable_sphinx docs \ + dev-python/sphinx-py3doc-enhanced-theme \ + dev-python/sphinxcontrib-napoleon diff --git a/dev-python/manhole/metadata.xml b/dev-python/manhole/metadata.xml new file mode 100644 index 0000000000..e407498953 --- /dev/null +++ b/dev-python/manhole/metadata.xml @@ -0,0 +1,20 @@ + + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + +Manhole is in-process service that will accept unix domain socket connections and present the stacktraces for all threads and an interactive prompt. It can either work as a python daemon thread waiting for connections at all times or a signal handler (stopping your application and waiting for a connection). + +Access to the socket is restricted to the application's effective user id or root. + +This is just like Twisted's manhole. It's simpler (no dependencies), it only runs on Unix domain sockets (in contrast to Twisted's manhole which can run on telnet or ssh) and it integrates well with various types of applications. + + + ionelmc/python-manhole + manhole + + From 71130a3c9ee2b47fb5819040a2bcecdc3e64e275 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Sun, 29 Mar 2020 11:18:27 +0200 Subject: [PATCH 07/31] dev-python/aspectlib: new package Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Alessandro Barbieri --- dev-python/aspectlib/Manifest | 1 + dev-python/aspectlib/aspectlib-1.4.2.ebuild | 37 +++++++++++++++++++++ dev-python/aspectlib/metadata.xml | 16 +++++++++ 3 files changed, 54 insertions(+) create mode 100644 dev-python/aspectlib/Manifest create mode 100644 dev-python/aspectlib/aspectlib-1.4.2.ebuild create mode 100644 dev-python/aspectlib/metadata.xml diff --git a/dev-python/aspectlib/Manifest b/dev-python/aspectlib/Manifest new file mode 100644 index 0000000000..849dd79b3f --- /dev/null +++ b/dev-python/aspectlib/Manifest @@ -0,0 +1 @@ +DIST aspectlib-1.4.2.tar.gz 154888 BLAKE2B 0194c2f911126caf5949cf6f0acb5a14c260a7824e456a3e3ba9b150331818dc832469798e89dd3cb3fba549b17098115354aabbc66931365475e53598c0bc96 SHA512 fadb90b625ce2faac8f6d29ee28efaee09b4338c3c516c79d9e8753b7fb2ff45e0033174c5c5302f47f1f9e332824f37d56667fb05e66f85b808e8aa3a086f57 diff --git a/dev-python/aspectlib/aspectlib-1.4.2.ebuild b/dev-python/aspectlib/aspectlib-1.4.2.ebuild new file mode 100644 index 0000000000..27cc072a19 --- /dev/null +++ b/dev-python/aspectlib/aspectlib-1.4.2.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_6 ) + +inherit distutils-r1 + +DESCRIPTION="An aspect-oriented programming, monkey-patch and decorators library" +HOMEPAGE=" + https://github.com/ionelmc/python-aspectlib + https://pypi.org/project/python-aspectlib +" +SRC_URI="https://github.com/ionelmc/python-${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-python/fields[${PYTHON_USEDEP}] +" +DEPEND=" + ${RDEPEND} + test? ( + dev-python/mock[${PYTHON_USEDEP}] + dev-python/nose[${PYTHON_USEDEP}] + dev-python/process-tests[${PYTHON_USEDEP}] + dev-python/pytest-travis-fold[${PYTHON_USEDEP}] + dev-python/pytest-catchlog[${PYTHON_USEDEP}] + www-servers/tornado[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest +distutils_enable_sphinx docs dev-python/sphinx-py3doc-enhanced-theme diff --git a/dev-python/aspectlib/metadata.xml b/dev-python/aspectlib/metadata.xml new file mode 100644 index 0000000000..c1f3f9c017 --- /dev/null +++ b/dev-python/aspectlib/metadata.xml @@ -0,0 +1,16 @@ + + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + +An aspect-oriented programming, monkey-patch and decorators library. It is useful when changing behavior in existing code is desired. It includes tools for debugging and testing: simple mock/record and a complete capture/replay framework. + + + ionelmc/python-aspectlib + aspectlib + + From 853d6212365a0203373062f8b7e97290e551fa15 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Sun, 29 Mar 2020 11:19:07 +0200 Subject: [PATCH 08/31] dev-python/hunter: new package Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Alessandro Barbieri --- dev-python/hunter/Manifest | 1 + dev-python/hunter/hunter-3.1.3.ebuild | 40 +++++++++++++++ dev-python/hunter/metadata.xml | 73 +++++++++++++++++++++++++++ 3 files changed, 114 insertions(+) create mode 100644 dev-python/hunter/Manifest create mode 100644 dev-python/hunter/hunter-3.1.3.ebuild create mode 100644 dev-python/hunter/metadata.xml diff --git a/dev-python/hunter/Manifest b/dev-python/hunter/Manifest new file mode 100644 index 0000000000..18d23646ba --- /dev/null +++ b/dev-python/hunter/Manifest @@ -0,0 +1 @@ +DIST hunter-3.1.3.tar.gz 422149 BLAKE2B 2834b3daa6be461b78d468aa331a587a476b7109f5ff9c70b27bb51b26f6a390d2074425f4d98ddc692d4e11f1ee14a77f5066650e82687ebaa586051afab4c8 SHA512 ea9cc935240526d2942568073cecfb2bef32d7caedd0b370850b208a56c652bf356ba0e5675281946419aafd966cbff148490f6f4439d0d808335a3e831adbf7 diff --git a/dev-python/hunter/hunter-3.1.3.ebuild b/dev-python/hunter/hunter-3.1.3.ebuild new file mode 100644 index 0000000000..ed9012f0f6 --- /dev/null +++ b/dev-python/hunter/hunter-3.1.3.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_6 ) + +inherit distutils-r1 + +DESCRIPTION="Hunter is a flexible code tracing toolkit" +HOMEPAGE=" + https://github.com/ionelmc/python-hunter + https://pypi.org/project/hunter +" +SRC_URI="https://github.com/ionelmc/python-${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-python/colorama[${PYTHON_USEDEP}] +" +DEPEND=" + ${RDEPEND} + test? ( + dev-python/aspectlib[${PYTHON_USEDEP}] + dev-python/manhole[${PYTHON_USEDEP}] + dev-python/process-tests[${PYTHON_USEDEP}] + dev-python/pytest-benchmark[${PYTHON_USEDEP}] + dev-python/pytest-travis-fold[${PYTHON_USEDEP}] + ) +" +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] + >=dev-python/setuptools_scm-3.3.1[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest +distutils_enable_sphinx docs ">=dev-python/sphinx-py3doc-enhanced-theme-2.3.2" diff --git a/dev-python/hunter/metadata.xml b/dev-python/hunter/metadata.xml new file mode 100644 index 0000000000..0fd2af6ea4 --- /dev/null +++ b/dev-python/hunter/metadata.xml @@ -0,0 +1,73 @@ + + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + +Hunter is a flexible code tracing toolkit, not for measuring coverage, but for debugging, logging, inspection and other nefarious purposes. It has a simple Python API, a convenient terminal API and a CLI tool to attach to processes. +Design notes + +Hunter doesn't do everything. As a design goal of this library some things are made intentionally austere and verbose (to avoid complexity, confusion and inconsistency). This has few consequences: + + There are Operators but there's no negation operator. Instead you're expected to negate a Query object, eg: ~Q(module='re'). + There are no specialized operators or filters - all filters behave exactly the same. For example: + No filter for packages. You're expected to filter by module with an operator. + No filter for arguments, return values or variables. You're expected to write your own filter function and deal with the problems of poking into objects. + Layering is minimal. There's are some helpers that do some argument processing and conversions to save you some typing but that's about it. + The library doesn't try to hide the mechanics of tracing in Python - it's 1:1 regarding what Python sends to a trace function if you'd be using sys.settrace. + Doesn't have any storage. You are expected to redirect output to a file. + +You should look at it like it's a tool to help you understand and debug big applications, or a framework ridding you of the boring parts of settrace, not something that helps you learn Python. +FAQ +Why not Smiley? + +There's some obvious overlap with smiley but there are few fundamental differences: + + Complexity. Smiley is simply over-engineered: + It uses IPC and a SQL database. + It has a webserver. Lots of dependencies. + It uses threads. Side-effects and subtle bugs are introduced in your code. + It records everything. Tries to dump any variable. Often fails and stops working. + + Why do you need all that just to debug some stuff in a terminal? Simply put, it's a nice idea but the design choices work against you when you're already neck-deep into debugging your own code. In my experience Smiley has been very buggy and unreliable. Your mileage may vary of course. + + Tracing long running code. This will make Smiley record lots of data, making it unusable. + + Now because Smiley records everything, you'd think it's better suited for short programs. But alas, if your program runs quickly then it's pointless to record the execution. You can just run it again. + + It seems there's only one situation where it's reasonable to use Smiley: tracing io-bound apps remotely. Those apps don't execute lots of code, they just wait on network so Smiley's storage won't blow out of proportion and tracing overhead might be acceptable. + + Use-cases. It seems to me Smiley's purpose is not really debugging code, but more of a "non interactive monitoring" tool. + +In contrast, Hunter is very simple: + + Few dependencies. + + Low overhead (tracing/filtering code has an optional Cython extension). + + No storage. This simplifies lots of things. + + The only cost is that you might need to run the code multiple times to get the filtering/actions right. This means Hunter is not really suited for "post-mortem" debugging. If you can't reproduce the problem anymore then Hunter won't be of much help. + +Why not pytrace? + +Pytrace is another tracer tool. It seems quite similar to Smiley - it uses a sqlite database for the events, threads and IPC, thus it's reasonable to expect the same kind of problems. +Why not PySnooper or snoop? + +snoop is a refined version of PySnooper. Both are more suited to tracing small programs or functions as the output is more verbose and less suited to the needs of tracing a big application where Hunter provides more flexible setup, filtering capabilities, speed and brevity. +Why not coverage? + +For purposes of debugging coverage is a great tool but only as far as "debugging by looking at what code is (not) run". Checking branch coverage is good but it will only get you as far. + +From the other perspective, you'd be wondering if you could use Hunter to measure coverage-like things. You could do it but for that purpose Hunter is very "rough": it has no builtin storage. You'd have to implement your own storage. You can do it but it wouldn't give you any advantage over making your own tracer if you don't need to "pre-filter" whatever you're recording. + +In other words, filtering events is the main selling point of Hunter - it's fast (cython implementation) and the query API is flexible enough. + + + python-hyper/hyper-h2 + h2 + + From 8a000ba421740a784b25c855bcf4b89e0df9766e Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Sun, 29 Mar 2020 11:20:02 +0200 Subject: [PATCH 09/31] dev-python/pytest-benchmark: new package Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Alessandro Barbieri --- dev-python/pytest-benchmark/Manifest | 1 + dev-python/pytest-benchmark/metadata.xml | 23 +++++++++++ .../pytest-benchmark-3.2.3.ebuild | 41 +++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 dev-python/pytest-benchmark/Manifest create mode 100644 dev-python/pytest-benchmark/metadata.xml create mode 100644 dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild diff --git a/dev-python/pytest-benchmark/Manifest b/dev-python/pytest-benchmark/Manifest new file mode 100644 index 0000000000..e0224b5286 --- /dev/null +++ b/dev-python/pytest-benchmark/Manifest @@ -0,0 +1 @@ +DIST pytest-benchmark-3.2.3.tar.gz 321127 BLAKE2B a9fb3a01ac9850d813f9b72d1975010b63b4f9d35d48c683b8dfa5d0020b17c59339135ff63b6152efab3ac33fecbc09aacbe6bcc3a7b0b260a00da317db00bf SHA512 952dbe2a9af1ae5de966543eae3b4523a5418c8441785714cbb7a5d17697046f060befb4a40cf216526e2a9a63d91c598d65e65618bd78fc2d889c92cecbbe53 diff --git a/dev-python/pytest-benchmark/metadata.xml b/dev-python/pytest-benchmark/metadata.xml new file mode 100644 index 0000000000..707882f3b0 --- /dev/null +++ b/dev-python/pytest-benchmark/metadata.xml @@ -0,0 +1,23 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + This plugin tightly integrates into pytest. To use this effectively you should know a thing or two about pytest first. Take a look at the introductory material or watch talks. + + Few notes: + + This plugin benchmarks functions and only that. If you want to measure block of code or whole programs you will need to write a wrapper function. + In a test you can only benchmark one function. If you want to benchmark many functions write more tests or use parametrization http://docs.pytest.org/en/latest/parametrize.html. + To run the benchmarks you simply use pytest to run your "tests". The plugin will automatically do the benchmarking and generate a result table. Run pytest --help for more details. + +This plugin provides a benchmark fixture. This fixture is a callable object that will benchmark any function passed to it. + + + ionelm/pytest-benchmark + pytest-benchmark + + diff --git a/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild b/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild new file mode 100644 index 0000000000..82b9e642bb --- /dev/null +++ b/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +#DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_6 ) + +inherit distutils-r1 + +DESCRIPTION="py.test fixture for benchmarking code " +HOMEPAGE=" + https://pypi.python.org/pypi/pytest-benchmark + https://github.com/ionelmc/pytest-benchmark +" +SRC_URI="https://github.com/ionelmc/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-python/py-cpuinfo[${PYTHON_USEDEP}] +" +BDEPEND=" + ${RDEPEND} + test? ( + dev-python/aspectlib[${PYTHON_USEDEP}] + dev-python/elasticsearch-py[${PYTHON_USEDEP}] + dev-python/freezegun[${PYTHON_USEDEP}] + dev-python/hunter[${PYTHON_USEDEP}] + dev-python/pygal[${PYTHON_USEDEP}] + dev-python/pygaljs[${PYTHON_USEDEP}] + dev-python/pytest-instafail[${PYTHON_USEDEP}] + dev-python/pytest-travis-fold[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest +distutils_enable_sphinx docs dev-python/sphinx-py3doc-enhanced-theme From 7395f995d7a506f91b79614047067cf60642dc5c Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Sun, 29 Mar 2020 11:23:26 +0200 Subject: [PATCH 10/31] dev-python/trio-asyncio: new package Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Alessandro Barbieri --- dev-python/trio-asyncio/Manifest | 1 + dev-python/trio-asyncio/metadata.xml | 27 ++++++++++++ .../trio-asyncio/trio-asyncio-0.11.0.ebuild | 41 +++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 dev-python/trio-asyncio/Manifest create mode 100644 dev-python/trio-asyncio/metadata.xml create mode 100644 dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild diff --git a/dev-python/trio-asyncio/Manifest b/dev-python/trio-asyncio/Manifest new file mode 100644 index 0000000000..7d22a12341 --- /dev/null +++ b/dev-python/trio-asyncio/Manifest @@ -0,0 +1 @@ +DIST trio-asyncio-0.11.0.tar.gz 67424 BLAKE2B 2d38b621eb5698521ba58c06295f6e2337821c64a35c4938ed9ffd4a01285c95df9c512d9922e88afbdff7c6fc0ef028784a1f189fbc9255ea46ee346b2f892c SHA512 718098f7ab18b168dd6a926d9bb64b636e06e6a1ea8e557ba4bf7782db16bb7fcccf226412284bfbc5183ff6df7624fc1a7ac73dd20bc841ffffd5e766e84d0a diff --git a/dev-python/trio-asyncio/metadata.xml b/dev-python/trio-asyncio/metadata.xml new file mode 100644 index 0000000000..cc48483642 --- /dev/null +++ b/dev-python/trio-asyncio/metadata.xml @@ -0,0 +1,27 @@ + + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + +Rationale + +Trio has native concepts of tasks and task cancellation. Asyncio is based on callbacks and chaining Futures, albeit with nicer syntax, which make handling of failures and timeouts fundamentally less reliable, especially in larger programs. Thus, you really want to base your async project on Trio. + +On the other hand, there are quite a few asyncio-enhanced libraries. You really don't want to re-invent any wheels in your project. + +Thus, being able to use asyncio libraries from Trio is useful. trio-asyncio enables you to do that, and more. +Transparent vs. explicit translation + +trio_asyncio does not try to magically allow calling await trio_code() from asyncio or vice versa. There are multiple reasons for this; the executive summary is that cross-domain calls can't be made to work correctly, and any such call is likely to result in an irrecoverable error. You need to keep your code's asyncio and trio domains rigidly separate. + +Fortunately, this is not difficult. + + + python-trio/trio-asyncio + trio-asyncio + + diff --git a/dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild b/dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild new file mode 100644 index 0000000000..eac15498bf --- /dev/null +++ b/dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_6 ) + +inherit distutils-r1 + +DESCRIPTION="a re-implementation of the asyncio mainloop on top of Trio" +HOMEPAGE=" + https://github.com/python-trio/trio-asyncio + https://pypi.org/project/trio-asyncio +" +SRC_URI="https://github.com/python-trio/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE=" || ( Apache-2.0 MIT )" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=dev-python/async_generator-1.6[${PYTHON_USEDEP}] + dev-python/outcome[${PYTHON_USEDEP}] + >=dev-python/trio-0.12.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep '>=dev-python/contextvars-2.1[${PYTHON_USEDEP}]' python3_6) +" +DEPEND=" + ${RDEPEND} + dev-python/pytest-runner[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest +distutils_enable_sphinx docs/source + +src_prepare() { + #remove tests from installed packages + #TODO: remove hardcoded + sed -i 's|packages=find_packages()|packages=["trio_asyncio"]|' setup.py || die + + default +} From edaa10335b543e4785f75ba1c1fc39fd7f4f14e7 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Sun, 29 Mar 2020 11:24:47 +0200 Subject: [PATCH 11/31] dev-python/pytest-trio: new package Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Alessandro Barbieri --- dev-python/pytest-trio/Manifest | 1 + dev-python/pytest-trio/metadata.xml | 12 ++++++ .../pytest-trio/pytest-trio-0.5.2.ebuild | 37 +++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 dev-python/pytest-trio/Manifest create mode 100644 dev-python/pytest-trio/metadata.xml create mode 100644 dev-python/pytest-trio/pytest-trio-0.5.2.ebuild diff --git a/dev-python/pytest-trio/Manifest b/dev-python/pytest-trio/Manifest new file mode 100644 index 0000000000..f6eebccf3b --- /dev/null +++ b/dev-python/pytest-trio/Manifest @@ -0,0 +1 @@ +DIST pytest-trio-0.5.2.tar.gz 35372 BLAKE2B 158e59d81fab6b56e37e92e28f8fdabb5d330dfc57b7774dcde4156165e3f5336647c9382268b50a5f70806449107ab2c7ec6d1a34f6bc773825b4fbb50b03a1 SHA512 0ab0bcfd3b1ef4859a49fa9d5dacbc698882f4f95ee113f241b49d8a7f000dbae1d982a13a87e18f96d51af1278b20298dd1af8d2ab1f563e91e74f7232f46a5 diff --git a/dev-python/pytest-trio/metadata.xml b/dev-python/pytest-trio/metadata.xml new file mode 100644 index 0000000000..ada609b9aa --- /dev/null +++ b/dev-python/pytest-trio/metadata.xml @@ -0,0 +1,12 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + python-trio/pytest-trio + pytest-trio + + diff --git a/dev-python/pytest-trio/pytest-trio-0.5.2.ebuild b/dev-python/pytest-trio/pytest-trio-0.5.2.ebuild new file mode 100644 index 0000000000..b35afa2685 --- /dev/null +++ b/dev-python/pytest-trio/pytest-trio-0.5.2.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +PYTHON_COMPAT=( python3_6 ) + +inherit distutils-r1 + +DESCRIPTION="This is a pytest plugin to help you test projects that use Trio" +HOMEPAGE=" + https://github.com/python-trio/pytest-trio + https://pypi.org/project/pytest-trio +" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="|| ( MIT Apache-2.0 )" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=dev-python/async_generator-1.9[${PYTHON_USEDEP}] + dev-python/outcome[${PYTHON_USEDEP}] + >=dev-python/trio-0.11[${PYTHON_USEDEP}] +" +DEPEND=" + ${RDEPEND} + test? ( + >=dev-python/hypothesis-3.64[${PYTHON_USEDEP}] + !~dev-python/pytest-3.7.0[${PYTHON_USEDEP}] + !~dev-python/pytest-3.7.1[${PYTHON_USEDEP}] + dev-python/trio-asyncio[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest +distutils_enable_sphinx docs/source From 6c6ff2e8415071b9f2ce776a5619e271f84e75a4 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Sun, 29 Mar 2020 11:27:19 +0200 Subject: [PATCH 12/31] dev-python/autoflake: new package Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Alessandro Barbieri --- dev-python/autoflake/Manifest | 1 + dev-python/autoflake/autoflake-1.3.1.ebuild | 31 +++++++++++++++++++++ dev-python/autoflake/metadata.xml | 20 +++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 dev-python/autoflake/Manifest create mode 100644 dev-python/autoflake/autoflake-1.3.1.ebuild create mode 100644 dev-python/autoflake/metadata.xml diff --git a/dev-python/autoflake/Manifest b/dev-python/autoflake/Manifest new file mode 100644 index 0000000000..a55e724edd --- /dev/null +++ b/dev-python/autoflake/Manifest @@ -0,0 +1 @@ +DIST autoflake-1.3.1.tar.gz 19756 BLAKE2B 8a172888a8c44483b8771b59bebda841e55455f544197e2f1bce08dfb7cb3dd54e8a616a15a3712609480bc484561ffa27aaa93d9b5e1a573bb1960df96ea9cf SHA512 763bcfc824412129901106ddcaf7104a2bfa5ee86b43d2822b51af5532ea0ac46466b64a004c099dc6fa2a96b23ae959e1ef1eb68c6be0c1e4c08ab9bf174e08 diff --git a/dev-python/autoflake/autoflake-1.3.1.ebuild b/dev-python/autoflake/autoflake-1.3.1.ebuild new file mode 100644 index 0000000000..752b394e89 --- /dev/null +++ b/dev-python/autoflake/autoflake-1.3.1.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +PYTHON_COMPAT=( python3_{6,7} ) +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 + +DESCRIPTION="Removes unused imports and unused variables as reported by pyflakes" +HOMEPAGE=" + https://github.com/myint/autoflake + https://pypi.org/project/autoflake +" +SRC_URI="https://github.com/myint/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND=" + >=dev-python/pyflakes-1.1.0[${PYTHON_USEDEP}] +" +RDEPEND="${DEPEND}" + +python_test() { + "${EPYTHON}" test_autoflake.py || die +} diff --git a/dev-python/autoflake/metadata.xml b/dev-python/autoflake/metadata.xml new file mode 100644 index 0000000000..3fe5b4fdc4 --- /dev/null +++ b/dev-python/autoflake/metadata.xml @@ -0,0 +1,20 @@ + + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + +autoflake removes unused imports and unused variables from Python code. It makes use of pyflakes to do this. + +By default, autoflake only removes unused imports for modules that are part of the standard library. (Other modules may have side effects that make them unsafe to remove automatically.) Removal of unused variables is also disabled by default. + +autoflake also removes useless pass statements. + + + myint/autoflake + autoflake + + From 261df3eb62bc415489e08cbb84ab8cc5401df969 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Sun, 29 Mar 2020 11:28:02 +0200 Subject: [PATCH 13/31] dev-python/httpcore: new package Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Alessandro Barbieri --- dev-python/httpcore/Manifest | 1 + dev-python/httpcore/httpcore-0.7.0.ebuild | 49 +++++++++++++++++++++++ dev-python/httpcore/metadata.xml | 26 ++++++++++++ 3 files changed, 76 insertions(+) create mode 100644 dev-python/httpcore/Manifest create mode 100644 dev-python/httpcore/httpcore-0.7.0.ebuild create mode 100644 dev-python/httpcore/metadata.xml diff --git a/dev-python/httpcore/Manifest b/dev-python/httpcore/Manifest new file mode 100644 index 0000000000..82c23f38ef --- /dev/null +++ b/dev-python/httpcore/Manifest @@ -0,0 +1 @@ +DIST httpcore-0.7.0.tar.gz 24689 BLAKE2B 5a7fa8eab6dc166f96c1a71d2ce1980155c37e286421fe10ff17315680d5a1ba5a6b52a8e0bcf8f727cdb146971ea82942327a900408ab72f8c82e2bfc9f9f83 SHA512 4999900e23aa9750f830e0d521db51e606c5b43e254cad8b98c17c2d3e4b2bd59020308954f5411ad766bff1759e2812a5b5e313273be22002dd87a75ea2413a diff --git a/dev-python/httpcore/httpcore-0.7.0.ebuild b/dev-python/httpcore/httpcore-0.7.0.ebuild new file mode 100644 index 0000000000..acaa8e18e9 --- /dev/null +++ b/dev-python/httpcore/httpcore-0.7.0.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_6 ) + +inherit distutils-r1 + +DESCRIPTION="A minimal HTTP client" +HOMEPAGE=" + https://github.com/encode/httpcore + https://pypi.org/project/httpcore +" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc test" + +RDEPEND=" + dev-python/h11[${PYTHON_USEDEP}] + dev-python/hyper-h2[${PYTHON_USEDEP}] + dev-python/sniffio[${PYTHON_USEDEP}] + dev-python/trio[${PYTHON_USEDEP}] +" +BDEPEND=" + doc? ( + dev-python/mkautodoc + dev-python/mkdocs + dev-python/mkdocs-material + ) +" +DEPEND=" + ${RDEPEND} + test? ( + dev-python/autoflake[${PYTHON_USEDEP}] + dev-python/black[${PYTHON_USEDEP}] + dev-python/isort[${PYTHON_USEDEP}] + dev-python/mypy[${PYTHON_USEDEP}] + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/pytest-trio[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest +#todo doc diff --git a/dev-python/httpcore/metadata.xml b/dev-python/httpcore/metadata.xml new file mode 100644 index 0000000000..8b1dc83620 --- /dev/null +++ b/dev-python/httpcore/metadata.xml @@ -0,0 +1,26 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + +The HTTP Core package provides a minimal low-level HTTP client, which does one thing only. Sending HTTP requests. + +It does not provide any high level model abstractions over the API, does not handle redirects, multipart uploads, building authentication headers, transparent HTTP caching, URL parsing, session cookie handling, content or charset decoding, handling JSON, environment based configuration defaults, or any of that Jazz. + +Some things HTTP Core does do: + + Sending HTTP requests. + Provides both sync and async interfaces. + Supports HTTP/1.1 and HTTP/2. + Async backend support for asyncio and trio. + Automatic connection pooling. + HTTP(S) proxy support. + + + https://github.com/encode/httpcore + httpcore + + From 9bb5a5bd7f3cd870b669e8336d8d7fd19369aebf Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Sun, 29 Mar 2020 11:36:20 +0200 Subject: [PATCH 14/31] dev-python/sanic: new package Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Alessandro Barbieri --- dev-python/sanic/Manifest | 1 + dev-python/sanic/metadata.xml | 15 ++++++++ dev-python/sanic/sanic-19.12.2.ebuild | 51 +++++++++++++++++++++++++++ 3 files changed, 67 insertions(+) create mode 100644 dev-python/sanic/Manifest create mode 100644 dev-python/sanic/metadata.xml create mode 100644 dev-python/sanic/sanic-19.12.2.ebuild diff --git a/dev-python/sanic/Manifest b/dev-python/sanic/Manifest new file mode 100644 index 0000000000..c4f1f4dd7d --- /dev/null +++ b/dev-python/sanic/Manifest @@ -0,0 +1 @@ +DIST sanic-19.12.2.tar.gz 195755 BLAKE2B 0d903b06403f28a901d21bfc685219064d0ec2b11576baf714aa3250cc3474928da03c34f0a5a25bf92191242b0a41f76d41aabe92a805bea1801e569c892e9a SHA512 93e416ceea5577db4c443dd6dd03cc5e990d4f987d49821b70d5602421d38401e155e2aad166c88ec57fc5361350c641f087b461a6d92acde34455db81429c5c diff --git a/dev-python/sanic/metadata.xml b/dev-python/sanic/metadata.xml new file mode 100644 index 0000000000..2208048e8e --- /dev/null +++ b/dev-python/sanic/metadata.xml @@ -0,0 +1,15 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + +Sanic is a Python 3.6+ web server and web framework that’s written to go fast. It allows the usage of the async/await syntax added in Python 3.5, which makes your code non-blocking and speedy. + +The goal of the project is to provide a simple way to get up and running a highly performant HTTP server that is easy to build, to expand, and ultimately to scale. + + huge-success/sanic + + diff --git a/dev-python/sanic/sanic-19.12.2.ebuild b/dev-python/sanic/sanic-19.12.2.ebuild new file mode 100644 index 0000000000..a9e22ccf1c --- /dev/null +++ b/dev-python/sanic/sanic-19.12.2.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +PYTHON_COMPAT=( python3_6 ) + +inherit distutils-r1 + +DESCRIPTION="Async Python 3.6+ web server/framework | Build fast. Run fast." +HOMEPAGE=" + https://pypi.python.org/pypi/sanic + https://github.com/huge-success/sanic +" +SRC_URI="https://github.com/huge-success/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-python/aiofiles[${PYTHON_USEDEP}] + ~dev-python/httpx-0.9.3[${PYTHON_USEDEP}] + >=dev-python/httptools-0.0.10[${PYTHON_USEDEP}] + >=dev-python/multidict-4.0[${PYTHON_USEDEP}] + =dev-python/websockets-7.0[${PYTHON_USEDEP}] + =dev-python/sphinx-2.1.2" \ + dev-python/sphinx_rtd_theme \ + ">=dev-python/recommonmark-0.5.0" From 6f497ce1aa1d2f8695793b1767cf1575aec9f406 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Sun, 29 Mar 2020 12:32:20 +0200 Subject: [PATCH 15/31] dev-python/pytest-sugar: tests fail, RESTRICTing for now Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Andrew Ammerlaan --- dev-python/pytest-sugar/pytest-sugar-0.9.2.ebuild | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dev-python/pytest-sugar/pytest-sugar-0.9.2.ebuild b/dev-python/pytest-sugar/pytest-sugar-0.9.2.ebuild index e3f00c37c6..ddb03f931b 100644 --- a/dev-python/pytest-sugar/pytest-sugar-0.9.2.ebuild +++ b/dev-python/pytest-sugar/pytest-sugar-0.9.2.ebuild @@ -5,6 +5,8 @@ EAPI="7" PYTHON_COMPAT=( python3_{6,7,8} ) +DISTUTILS_USE_SETUPTOOLS=rdepend + inherit distutils-r1 DESCRIPTION="Plugin for pytest that changes the default look and feel of pytest" @@ -19,6 +21,8 @@ LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" +RESTRICT="test" + RDEPEND=" >=dev-python/packaging-14.1[${PYTHON_USEDEP}] >=dev-python/pytest-xdist-1.14[${PYTHON_USEDEP}] From 6614668c68f0205cac440337c267b797d27cda3b Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Sun, 29 Mar 2020 12:58:14 +0200 Subject: [PATCH 16/31] dev-python/pytest-instafail: tests fail, RESTRICTing for now Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Andrew Ammerlaan --- dev-python/pytest-instafail/pytest-instafail-0.4.1.ebuild | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dev-python/pytest-instafail/pytest-instafail-0.4.1.ebuild b/dev-python/pytest-instafail/pytest-instafail-0.4.1.ebuild index 7defbbd226..cb089396ce 100644 --- a/dev-python/pytest-instafail/pytest-instafail-0.4.1.ebuild +++ b/dev-python/pytest-instafail/pytest-instafail-0.4.1.ebuild @@ -3,11 +3,11 @@ EAPI=7 -PYTHON_COMPAT=( python3_{6,7} ) +PYTHON_COMPAT=( python3_{6,7,8} ) inherit distutils-r1 -DESCRIPTION="Plugin for py.test that shows failures and errors instantly instead of waiting until the end of test session" +DESCRIPTION="Plugin for pytest that shows failures and errors instantly" HOMEPAGE=" https://github.com/pytest-dev/pytest-instafail https://pypi.org/project/pytest-instafail @@ -18,6 +18,8 @@ LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" +RESTRICT="test" + RDEPEND=" >=dev-python/pytest-2.9[${PYTHON_USEDEP}] " From 9bcc2d4a15ce8d2c0caf2386d8566245eefc38e2 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Sun, 29 Mar 2020 12:59:31 +0200 Subject: [PATCH 17/31] dev-python/pytest-instafail: add DISTUTILS_USE_SETUPTOOLS=rdepend Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Andrew Ammerlaan --- dev-python/pytest-instafail/pytest-instafail-0.4.1.ebuild | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dev-python/pytest-instafail/pytest-instafail-0.4.1.ebuild b/dev-python/pytest-instafail/pytest-instafail-0.4.1.ebuild index cb089396ce..118d3e2d4b 100644 --- a/dev-python/pytest-instafail/pytest-instafail-0.4.1.ebuild +++ b/dev-python/pytest-instafail/pytest-instafail-0.4.1.ebuild @@ -5,6 +5,8 @@ EAPI=7 PYTHON_COMPAT=( python3_{6,7,8} ) +DISTUTILS_USE_SETUPTOOLS=rdepend + inherit distutils-r1 DESCRIPTION="Plugin for pytest that shows failures and errors instantly" From df0bb14c5a50220aa22eb38fadb2ca98a2a9d6d8 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Sun, 29 Mar 2020 13:04:01 +0200 Subject: [PATCH 18/31] dev-python/pytest-travis-fold: tests require package to be already installed thus, depend on itself, repoman doesn't complain about it so apperently we can do this Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Andrew Ammerlaan --- .../pytest-travis-fold/pytest-travis-fold-1.3.0.ebuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dev-python/pytest-travis-fold/pytest-travis-fold-1.3.0.ebuild b/dev-python/pytest-travis-fold/pytest-travis-fold-1.3.0.ebuild index 98822960b9..5b7322f20d 100644 --- a/dev-python/pytest-travis-fold/pytest-travis-fold-1.3.0.ebuild +++ b/dev-python/pytest-travis-fold/pytest-travis-fold-1.3.0.ebuild @@ -23,6 +23,10 @@ RDEPEND=" >=dev-python/pytest-2.6.0[${PYTHON_USEDEP}] Date: Sun, 29 Mar 2020 13:09:03 +0200 Subject: [PATCH 19/31] dev-python/pygaljs: RESTRICT test, requires file not in release tar Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Andrew Ammerlaan --- dev-python/pygaljs/pygaljs-1.0.0.ebuild | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dev-python/pygaljs/pygaljs-1.0.0.ebuild b/dev-python/pygaljs/pygaljs-1.0.0.ebuild index 20c5ad17f7..1a20132957 100644 --- a/dev-python/pygaljs/pygaljs-1.0.0.ebuild +++ b/dev-python/pygaljs/pygaljs-1.0.0.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{6,7} ) +PYTHON_COMPAT=( python3_{6,7,8} ) inherit distutils-r1 @@ -18,7 +18,12 @@ LICENSE="LGPL-3+" SLOT="0" KEYWORDS="~amd64 ~x86" +# requires file in src/pygaljs/static that is not in release tarballs +RESTRICT="test" + RDEPEND="" DEPEND="" +S="${WORKDIR}/python-${P}" + distutils_enable_tests pytest From 5233bd3233ec6cc3874c7d643d55e1b2d9183d0f Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Sun, 29 Mar 2020 13:41:58 +0200 Subject: [PATCH 20/31] dev-python/aspectlib: tried and failed to get tests working Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Andrew Ammerlaan --- dev-python/aspectlib/aspectlib-1.4.2.ebuild | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dev-python/aspectlib/aspectlib-1.4.2.ebuild b/dev-python/aspectlib/aspectlib-1.4.2.ebuild index 27cc072a19..f38deef24e 100644 --- a/dev-python/aspectlib/aspectlib-1.4.2.ebuild +++ b/dev-python/aspectlib/aspectlib-1.4.2.ebuild @@ -5,6 +5,8 @@ EAPI=7 PYTHON_COMPAT=( python3_6 ) +DISTUTILS_USE_SETUPTOOLS=rdepend + inherit distutils-r1 DESCRIPTION="An aspect-oriented programming, monkey-patch and decorators library" @@ -18,6 +20,10 @@ LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" +# could not get this working, it tries to do all sorts of weird things +# it calls a tests outside the tests folder, which then fails, removing the file results in import error +RESTRICT="test" + RDEPEND=" dev-python/fields[${PYTHON_USEDEP}] " @@ -33,5 +39,7 @@ DEPEND=" ) " +S="${WORKDIR}/python-${P}" + distutils_enable_tests pytest distutils_enable_sphinx docs dev-python/sphinx-py3doc-enhanced-theme From c8d765c23c399e7b194530423a6df7fa4c2565a7 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Sun, 29 Mar 2020 13:50:56 +0200 Subject: [PATCH 21/31] dev-python/hunter: fix tests Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Andrew Ammerlaan --- dev-python/hunter/hunter-3.1.3.ebuild | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dev-python/hunter/hunter-3.1.3.ebuild b/dev-python/hunter/hunter-3.1.3.ebuild index ed9012f0f6..a60f8837a6 100644 --- a/dev-python/hunter/hunter-3.1.3.ebuild +++ b/dev-python/hunter/hunter-3.1.3.ebuild @@ -5,6 +5,8 @@ EAPI=7 PYTHON_COMPAT=( python3_6 ) +DISTUTILS_USE_SETUPTOOLS=rdepend + inherit distutils-r1 DESCRIPTION="Hunter is a flexible code tracing toolkit" @@ -36,5 +38,14 @@ BDEPEND=" >=dev-python/setuptools_scm-3.3.1[${PYTHON_USEDEP}] " +S="${WORKDIR}/python-${P}" + distutils_enable_tests pytest distutils_enable_sphinx docs ">=dev-python/sphinx-py3doc-enhanced-theme-2.3.2" + +python_prepare_all() { + # all tests in this file fail + rm tests/test_remote.py || die + + distutils-r1_python_prepare_all +} From 57fe81e30629df5f2bee32aa4cf834022fe67fbe Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Sun, 29 Mar 2020 14:01:46 +0200 Subject: [PATCH 22/31] dev-python/pytest-benchmark: tried and failed to fix tests Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Andrew Ammerlaan --- .../pytest-benchmark/pytest-benchmark-3.2.3.ebuild | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild b/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild index 82b9e642bb..5652413a39 100644 --- a/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild +++ b/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild @@ -3,7 +3,7 @@ EAPI="7" -#DISTUTILS_USE_SETUPTOOLS=rdepend +DISTUTILS_USE_SETUPTOOLS=rdepend PYTHON_COMPAT=( python3_6 ) inherit distutils-r1 @@ -19,6 +19,11 @@ LICENSE="BSD-2" SLOT="0" KEYWORDS="~amd64 ~x86" +# during tests import fails because conflict with the already installed files +# not sure how to fix, it would require setting some python variables but that would +# probably lead to all other packages being unfindable by the tests +RESTRICT="test" + RDEPEND=" dev-python/py-cpuinfo[${PYTHON_USEDEP}] " @@ -39,3 +44,10 @@ BDEPEND=" distutils_enable_tests pytest distutils_enable_sphinx docs dev-python/sphinx-py3doc-enhanced-theme + +python_test() { + # has to be run in source dir + PYTHONPATH="${S}" + cd "${S}" || die + pytest -vv || die "Tests fail with ${EPYTHON}" +} From dca19a33d24a3f5ced4d4513e52dfb0ded73acce Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Sun, 29 Mar 2020 14:07:12 +0200 Subject: [PATCH 23/31] dev-python/outcome: add missing dep sphinxcontrib_trio Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Andrew Ammerlaan --- dev-python/outcome/outcome-1.0.1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-python/outcome/outcome-1.0.1.ebuild b/dev-python/outcome/outcome-1.0.1.ebuild index 1b5812726c..6a5ecc6614 100644 --- a/dev-python/outcome/outcome-1.0.1.ebuild +++ b/dev-python/outcome/outcome-1.0.1.ebuild @@ -24,4 +24,4 @@ BDEPEND="test? ( dev-python/async_generator[${PYTHON_USEDEP}] dev-python/pytest-asyncio[${PYTHON_USEDEP}] )" distutils_enable_tests pytest -distutils_enable_sphinx docs/source +distutils_enable_sphinx docs/source dev-python/sphinxcontrib-trio From 753fddeb8ad024ecf4d363ff836e9db1673b38ec Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Sun, 29 Mar 2020 14:08:02 +0200 Subject: [PATCH 24/31] dev-python/manhole: tried and failed to get tests working Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Andrew Ammerlaan --- dev-python/manhole/manhole-1.6.0.ebuild | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/dev-python/manhole/manhole-1.6.0.ebuild b/dev-python/manhole/manhole-1.6.0.ebuild index 37db2bb6ea..24175bac7e 100644 --- a/dev-python/manhole/manhole-1.6.0.ebuild +++ b/dev-python/manhole/manhole-1.6.0.ebuild @@ -3,7 +3,9 @@ EAPI=7 -PYTHON_COMPAT=( python3_{6,7} ) +PYTHON_COMPAT=( python3_6 ) + +DISTUTILS_USE_SETUPTOOLS=rdepend inherit distutils-r1 @@ -17,8 +19,11 @@ HOMEPAGE=" SRC_URI="https://github.com/ionelmc/${MYPN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="BSD-2" SLOT="0" + KEYWORDS="~amd64 ~x86" +RESTRICT="test" + RDEPEND="" DEPEND=" ${RDEPEND} @@ -28,19 +33,12 @@ DEPEND=" dev-python/process-tests[${PYTHON_USEDEP}] dev-python/pytest-travis-fold[${PYTHON_USEDEP}] dev-python/requests[${PYTHON_USEDEP}] - www-servers/uwsgi[${PYTHON_USEDEP}] + www-servers/uwsgi[python,python_gevent,${PYTHON_USEDEP}] ) " S="${WORKDIR}/${MYPN}-${PV}" -python_prepare_all() { - #no coverage - #sed -i 's|--cov-report term-missing||' setup.cfg || die - #sed -i 's|nocover: false|nocover: true|' setup.cfg || die - distutils-r1_python_prepare_all -} - distutils_enable_tests pytest distutils_enable_sphinx docs \ dev-python/sphinx-py3doc-enhanced-theme \ From 85fc0b78ff7d13c73b7c45bb920ca160a2f0cbcf Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Sun, 29 Mar 2020 14:11:36 +0200 Subject: [PATCH 25/31] dev-python/trio: fix tests Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Andrew Ammerlaan --- dev-python/trio/trio-0.13.0.ebuild | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dev-python/trio/trio-0.13.0.ebuild b/dev-python/trio/trio-0.13.0.ebuild index 092b394131..ce3ef2e87b 100644 --- a/dev-python/trio/trio-0.13.0.ebuild +++ b/dev-python/trio/trio-0.13.0.ebuild @@ -51,5 +51,10 @@ python_prepare_all() { -e "/test_getaddrinfo/i@pytest.mark.skip(reason='no IPv6')" \ trio/tests/test_socket.py || die "sed failed for test_socket.py" fi + + # these tests require internet access + rm trio/tests/test_ssl.py || die + rm trio/tests/test_highlevel_ssl_helpers.py || die + distutils-r1_python_prepare_all } From c48bde4ac7f7100d139e8b5136bc20c8e364b716 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Sun, 29 Mar 2020 14:21:09 +0200 Subject: [PATCH 26/31] dev-python/pytest-marks: Allow to set 'marks' on pytest methods Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Andrew Ammerlaan --- dev-python/pytest-marks/Manifest | 1 + dev-python/pytest-marks/metadata.xml | 9 +++++++++ .../pytest-marks/pytest-marks-0.4.ebuild | 20 +++++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 dev-python/pytest-marks/Manifest create mode 100644 dev-python/pytest-marks/metadata.xml create mode 100644 dev-python/pytest-marks/pytest-marks-0.4.ebuild diff --git a/dev-python/pytest-marks/Manifest b/dev-python/pytest-marks/Manifest new file mode 100644 index 0000000000..d42a0fd946 --- /dev/null +++ b/dev-python/pytest-marks/Manifest @@ -0,0 +1 @@ +DIST pytest-marks-0.4.tar.gz 1978 BLAKE2B 1f9898d860734e940b77f926bc7513e9c1d26d4dc45b9f876378974db393b41f8e9c24073306c6d299d3a70d60d40ecea35efdf4e50aa861678837cf4626c46f SHA512 4c1b6bb88c022661705e31cdf0b2d25c4e6fe09a4f8632662410d0c7ab3e436c6091ee88620b7c6660c4194f7afaedeb11ae4eac6476e447b6653c6ac7668d7b diff --git a/dev-python/pytest-marks/metadata.xml b/dev-python/pytest-marks/metadata.xml new file mode 100644 index 0000000000..628ab20176 --- /dev/null +++ b/dev-python/pytest-marks/metadata.xml @@ -0,0 +1,9 @@ + + + + + + andrewammerlaan@riseup.net + Andrew Ammerlaan + + diff --git a/dev-python/pytest-marks/pytest-marks-0.4.ebuild b/dev-python/pytest-marks/pytest-marks-0.4.ebuild new file mode 100644 index 0000000000..13c75e281a --- /dev/null +++ b/dev-python/pytest-marks/pytest-marks-0.4.ebuild @@ -0,0 +1,20 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 + +DESCRIPTION="Allow to set 'marks' on pytest methods" +HOMEPAGE="https://github.com/adamgoucher/pytest-marks" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="GPL-3" +KEYWORDS="~amd64 ~x86" +SLOT="0" + +RDEPEND="dev-python/pytest[${PYTHON_USEDEP}]" From 5809afe66f9d0a59bcb35f6f894e3874b62bf78c Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Sun, 29 Mar 2020 14:25:29 +0200 Subject: [PATCH 27/31] dev-python/trio-asyncio: do not depend on pytest-runner it is deprecated also tired to fix tests should probably depend on pytest-marks Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Andrew Ammerlaan --- .../trio-asyncio/trio-asyncio-0.11.0.ebuild | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild b/dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild index eac15498bf..ccf267cb0b 100644 --- a/dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild +++ b/dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_6 ) +PYTHON_COMPAT=( python3_{6,7} ) inherit distutils-r1 @@ -18,24 +18,31 @@ LICENSE=" || ( Apache-2.0 MIT )" SLOT="0" KEYWORDS="~amd64 ~x86" +# ImportError: cannot import name 'MarkInfo' +# might be an issue in pytest-marks +RESTRICT="test" + RDEPEND=" >=dev-python/async_generator-1.6[${PYTHON_USEDEP}] dev-python/outcome[${PYTHON_USEDEP}] >=dev-python/trio-0.12.0[${PYTHON_USEDEP}] $(python_gen_cond_dep '>=dev-python/contextvars-2.1[${PYTHON_USEDEP}]' python3_6) " -DEPEND=" - ${RDEPEND} - dev-python/pytest-runner[${PYTHON_USEDEP}] -" + +DEPEND="test? ( + dev-python/pytest-marks[${PYTHON_USEDEP}] +)" distutils_enable_tests pytest distutils_enable_sphinx docs/source -src_prepare() { +python_prepare_all() { + # do not depend on deprecated dep + sed -i -e '/pytest-runner/d' setup.py || die + #remove tests from installed packages #TODO: remove hardcoded sed -i 's|packages=find_packages()|packages=["trio_asyncio"]|' setup.py || die - default + distutils-r1_python_prepare_all } From be0208ec654fa3530ae5a848feaf10fe33125c39 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Sun, 29 Mar 2020 14:35:39 +0200 Subject: [PATCH 28/31] dev-python/pytest-trio: made some progress with the tests Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Andrew Ammerlaan --- .../pytest-trio/pytest-trio-0.5.2.ebuild | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/dev-python/pytest-trio/pytest-trio-0.5.2.ebuild b/dev-python/pytest-trio/pytest-trio-0.5.2.ebuild index b35afa2685..8232fa52c8 100644 --- a/dev-python/pytest-trio/pytest-trio-0.5.2.ebuild +++ b/dev-python/pytest-trio/pytest-trio-0.5.2.ebuild @@ -3,7 +3,9 @@ EAPI="7" -PYTHON_COMPAT=( python3_6 ) +PYTHON_COMPAT=( python3_{6,7} ) + +DISTUTILS_USE_SETUPTOOLS=rdepend inherit distutils-r1 @@ -18,6 +20,9 @@ LICENSE="|| ( MIT Apache-2.0 )" SLOT="0" KEYWORDS="~amd64 ~x86" +# lots of different errors +RESTRICT="test" + RDEPEND=" >=dev-python/async_generator-1.9[${PYTHON_USEDEP}] dev-python/outcome[${PYTHON_USEDEP}] @@ -35,3 +40,17 @@ DEPEND=" distutils_enable_tests pytest distutils_enable_sphinx docs/source + +python_prepare_all() { + # AttributeError("module 'pytest' has no attribute 'RemovedInPytest4Warning'",) + rm pytest_trio/_tests/conftest.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + # has to be run in source dir + PYTHONPATH="${S}" + cd "${S}" || die + pytest -vv || die "Tests fail with ${EPYTHON}" +} From 5e03ed82c94af28ea6e94abd22d984673932b898 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Sun, 29 Mar 2020 15:04:39 +0200 Subject: [PATCH 29/31] dev-python/httpcore: doc can't find material even though theme mkdocs-material is installed Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Andrew Ammerlaan --- dev-python/httpcore/Manifest | 2 +- dev-python/httpcore/httpcore-0.7.0.ebuild | 35 +++++++++++++++-------- 2 files changed, 24 insertions(+), 13 deletions(-) diff --git a/dev-python/httpcore/Manifest b/dev-python/httpcore/Manifest index 82c23f38ef..60b92b6aaf 100644 --- a/dev-python/httpcore/Manifest +++ b/dev-python/httpcore/Manifest @@ -1 +1 @@ -DIST httpcore-0.7.0.tar.gz 24689 BLAKE2B 5a7fa8eab6dc166f96c1a71d2ce1980155c37e286421fe10ff17315680d5a1ba5a6b52a8e0bcf8f727cdb146971ea82942327a900408ab72f8c82e2bfc9f9f83 SHA512 4999900e23aa9750f830e0d521db51e606c5b43e254cad8b98c17c2d3e4b2bd59020308954f5411ad766bff1759e2812a5b5e313273be22002dd87a75ea2413a +DIST httpcore-0.7.0.tar.gz 27932 BLAKE2B f3258a9f83a37bcf62422c6f6c5a911712afa1038378ef64aeda45c9b3e700d0e809e3526f2bc33633ce4dc827465d99298597a8b26b6cb13696f9663fcd5a87 SHA512 f5419ebbe6ff42e782bea127ca778de1d42637a15e0152d69e6b58ca7e3687d560a4b132781390a853595ec7d18a0fa567d5b752debbb7be7f5cc822a5eac3fd diff --git a/dev-python/httpcore/httpcore-0.7.0.ebuild b/dev-python/httpcore/httpcore-0.7.0.ebuild index acaa8e18e9..a0b354c278 100644 --- a/dev-python/httpcore/httpcore-0.7.0.ebuild +++ b/dev-python/httpcore/httpcore-0.7.0.ebuild @@ -3,8 +3,7 @@ EAPI=7 -DISTUTILS_USE_SETUPTOOLS=rdepend -PYTHON_COMPAT=( python3_6 ) +PYTHON_COMPAT=( python3_{6,7} ) inherit distutils-r1 @@ -13,12 +12,17 @@ HOMEPAGE=" https://github.com/encode/httpcore https://pypi.org/project/httpcore " -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" +SRC_URI="https://github.com/encode/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="doc test" + +# Temporary failure in name resolution +RESTRICT="test" + +# ERROR - Config value: 'theme'. Error: Unrecognised theme name: 'material'. The available installed themes are: mkdocs, readthedocs +#IUSE="doc" RDEPEND=" dev-python/h11[${PYTHON_USEDEP}] @@ -26,13 +30,13 @@ RDEPEND=" dev-python/sniffio[${PYTHON_USEDEP}] dev-python/trio[${PYTHON_USEDEP}] " -BDEPEND=" - doc? ( - dev-python/mkautodoc - dev-python/mkdocs - dev-python/mkdocs-material - ) -" +#BDEPEND=" +# doc? ( +# dev-python/mkautodoc +# dev-python/mkdocs +# dev-python/mkdocs-material +# ) +#" DEPEND=" ${RDEPEND} test? ( @@ -46,4 +50,11 @@ DEPEND=" " distutils_enable_tests pytest -#todo doc + +#python_compile_all() { +# default +# if use doc; then +# mkdocs build || die "failed to make docs" +# HTML_DOCS="site" +# fi +#} From 9e1e32f6166287573bbd421ebe18d9293e55862e Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Sun, 29 Mar 2020 15:18:27 +0200 Subject: [PATCH 30/31] dev-python/pytest-sanic: should depend on sanic otherwise all tests on all packages with pytest will fail Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Andrew Ammerlaan --- dev-python/pytest-sanic/pytest-sanic-1.6.0.ebuild | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/dev-python/pytest-sanic/pytest-sanic-1.6.0.ebuild b/dev-python/pytest-sanic/pytest-sanic-1.6.0.ebuild index 2f4dd3a247..292a3dcd11 100644 --- a/dev-python/pytest-sanic/pytest-sanic-1.6.0.ebuild +++ b/dev-python/pytest-sanic/pytest-sanic-1.6.0.ebuild @@ -22,13 +22,9 @@ KEYWORDS="~amd64 ~x86" RDEPEND=" dev-python/aiohttp[${PYTHON_USEDEP}] dev-python/async_generator[${PYTHON_USEDEP}] -" -BDEPEND=" - ${RDEPEND} - test? ( - dev-python/sanic[${PYTHON_USEDEP}] - ) + dev-python/sanic[${PYTHON_USEDEP}] " distutils_enable_tests pytest -distutils_enable_sphinx docs +# where is the conf.py file? make html can't find it either +#distutils_enable_sphinx docs From 886519adea3251e7a0f72bfa9862ffadeccaa895 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Sun, 29 Mar 2020 15:19:12 +0200 Subject: [PATCH 31/31] dev-python/sanic: tests need uvicorn Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Andrew Ammerlaan --- dev-python/sanic/sanic-19.12.2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-python/sanic/sanic-19.12.2.ebuild b/dev-python/sanic/sanic-19.12.2.ebuild index a9e22ccf1c..45084503c4 100644 --- a/dev-python/sanic/sanic-19.12.2.ebuild +++ b/dev-python/sanic/sanic-19.12.2.ebuild @@ -34,10 +34,10 @@ DEPEND=" test? ( dev-python/beautifulsoup[${PYTHON_USEDEP}] dev-python/httpcore[${PYTHON_USEDEP}] - dev-python/pytest[${PYTHON_USEDEP}] dev-python/pytest-benchmark[${PYTHON_USEDEP}] dev-python/pytest-sanic[${PYTHON_USEDEP}] dev-python/pytest-sugar[${PYTHON_USEDEP}] + dev-python/uvicorn[${PYTHON_USEDEP}] www-servers/gunicorn[${PYTHON_USEDEP}] ) "