diff --git a/dev-python/outcome/Manifest b/dev-python/outcome/Manifest new file mode 100644 index 0000000000..35b2d2ff90 --- /dev/null +++ b/dev-python/outcome/Manifest @@ -0,0 +1 @@ +DIST outcome-1.0.1.tar.gz 18684 BLAKE2B bf9878c0dc45e8278693cff8bd1fc398b90a61e71aab68ed21cdfe4576519d42488962b0aea0823d248062532cbdeabfb3253046e847bbfad8adcc960245c509 SHA512 69e9ec8f38cf03c66b96c3dd739814d9507bcd843993fc82e16ba492d56e19a437c7d1dca9594c4ffdda4f2eba80ceb5872602601885a0705d3fc13a5cae0af8 diff --git a/dev-python/outcome/metadata.xml b/dev-python/outcome/metadata.xml new file mode 100644 index 0000000000..628ab20176 --- /dev/null +++ b/dev-python/outcome/metadata.xml @@ -0,0 +1,9 @@ + + + + + + andrewammerlaan@riseup.net + Andrew Ammerlaan + + diff --git a/dev-python/outcome/outcome-1.0.1.ebuild b/dev-python/outcome/outcome-1.0.1.ebuild new file mode 100644 index 0000000000..ed502c17ee --- /dev/null +++ b/dev-python/outcome/outcome-1.0.1.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="Capture the outcome of Python function calls" +HOMEPAGE="https://github.com/python-trio/outcome" +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/attrs[${PYTHON_USEDEP}]" + +BDEPEND="test? ( dev-python/async_generator[${PYTHON_USEDEP}] + dev-python/pytest-asyncio[${PYTHON_USEDEP}] )" + +distutils_enable_tests pytest +distutils_enable_sphinx docs/source diff --git a/dev-python/tekore/tekore-1.4.0.ebuild b/dev-python/tekore/tekore-1.4.0.ebuild index 88c60d073f..a61bf2ad87 100644 --- a/dev-python/tekore/tekore-1.4.0.ebuild +++ b/dev-python/tekore/tekore-1.4.0.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_7 ) +PYTHON_COMPAT=( python3_{6,7} ) inherit distutils-r1 @@ -16,25 +16,19 @@ LICENSE="MIT" KEYWORDS="~amd64 ~x86" SLOT="0" -distutils_enable_sphinx docs/src +# tests fail with py3_6 +RESTRICT="python_targets_python3_6? ( test )" -# the enable_sphinx fucntion seems to act strange when there is only 1 PYTHON_COMPAT -# repoman says: -# dev-python/tekore/tekore-1.1.0.ebuild: BDEPEND: ~x86(default/linux/x86/17.0/systemd) -# [ 'dev-python/sphinx[python_targets_python3_7(-),python_single_target_python3_7(+)]'] -# therefore we overwrite the deps that the function adds here: -BDEPEND="doc? ( - dev-python/sphinx[${PYTHON_USEDEP}] - dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] - dev-python/sphinx-autodoc-typehints[${PYTHON_USEDEP}] )" - -RDEPEND="dev-python/requests[${PYTHON_USEDEP}] - dev-python/httpx[${PYTHON_USEDEP}] - media-sound/spotify" +RDEPEND=" + dev-python/requests[${PYTHON_USEDEP}] + ~dev-python/httpx-0.11.1[${PYTHON_USEDEP}] + media-sound/spotify + python_targets_python3_6? ( dev-python/dataclasses[python_targets_python3_6] )" DOCS="readme.rst" distutils_enable_tests pytest +distutils_enable_sphinx docs/src dev-python/sphinx_rtd_theme dev-python/sphinx-autodoc-typehints python_test() { pytest -vv tests/* || die "Tests fail with ${EPYTHON}" diff --git a/dev-python/trio/Manifest b/dev-python/trio/Manifest new file mode 100644 index 0000000000..cf28569927 --- /dev/null +++ b/dev-python/trio/Manifest @@ -0,0 +1 @@ +DIST trio-0.13.0.tar.gz 441925 BLAKE2B c452a0d91d44c651d33399cf5cb64ae05283466732df5332a3319b02fdf9ed73e88fc105b65aeeea39f923c0eecafe842a9e328cbea88424304a7708f8ec703d SHA512 c2f64e71aa59ed0ba5878fda56e5be2c7c434324fa0ace33caf1487fd990dfc63ffda8a20f1586e2175b6b41db51e9b9023e44c367337526263c9a32d98f7ce6 diff --git a/dev-python/trio/metadata.xml b/dev-python/trio/metadata.xml new file mode 100644 index 0000000000..628ab20176 --- /dev/null +++ b/dev-python/trio/metadata.xml @@ -0,0 +1,9 @@ + + + + + + andrewammerlaan@riseup.net + Andrew Ammerlaan + + diff --git a/dev-python/trio/trio-0.13.0.ebuild b/dev-python/trio/trio-0.13.0.ebuild new file mode 100644 index 0000000000..1f0862d3bd --- /dev/null +++ b/dev-python/trio/trio-0.13.0.ebuild @@ -0,0 +1,44 @@ +# 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 linux-info + +DESCRIPTION="Python library for async concurrency and I/O" +HOMEPAGE="https://github.com/python-trio/trio" +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" + +DEPEND="dev-python/async_generator[${PYTHON_USEDEP}] + >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}] + dev-python/idna[${PYTHON_USEDEP}] + dev-python/outcome[${PYTHON_USEDEP}] + dev-python/sniffio[${PYTHON_USEDEP}] + dev-python/sortedcontainers[${PYTHON_USEDEP}]" + +RDEPEND="${DEPEND} + $(python_gen_cond_dep 'dev-python/contextvars[${PYTHON_USEDEP}]' python3_6)" + +BDEPEND="test? ( >=dev-python/astor-0.8.0[${PYTHON_USEDEP}] + dev-python/jedi[${PYTHON_USEDEP}] + dev-python/trustme[${PYTHON_USEDEP}] + dev-python/yapf[${PYTHON_USEDEP}] )" + +distutils_enable_tests pytest +distutils_enable_sphinx docs/source + +python_prepare_all() { + # Disable tests require IPv6 + if ! linux_config_exists || ! linux_chkconfig_present IPV6; then + sed -i -e "/for family in/s/, AF_INET6//" \ + -e "/test_getaddrinfo/i@pytest.mark.skip(reason='no IPv6')" \ + trio/tests/test_socket.py || die "sed failed for test_socket.py" + fi + distutils-r1_python_prepare_all +}