[gentoo-commits] repo/proj/guru:dev commit in: dev-python/trio-asyncio/, dev-python/pytest-trio/, ...

2021-06-27 Thread Andrew Ammerlaan
commit: b7524220f5cc44d0d0c690b2bcb1f93872ab6188
Author: Andrew Ammerlaan  gentoo  org>
AuthorDate: Sun Jun 27 15:37:59 2021 +
Commit: Andrew Ammerlaan  gentoo  org>
CommitDate: Sun Jun 27 15:38:20 2021 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b7524220

dev-python/trio-asyncio: move to ::gentoo

Signed-off-by: Andrew Ammerlaan  gentoo.org>

 dev-python/pytest-trio/Manifest|  1 -
 dev-python/pytest-trio/metadata.xml| 13 -
 dev-python/pytest-trio/pytest-trio-0.7.0.ebuild| 55 --
 dev-python/trio-asyncio/Manifest   |  1 -
 .../trio-asyncio/files/no-pytest-runner.patch  | 10 
 dev-python/trio-asyncio/metadata.xml   | 27 ---
 dev-python/trio-asyncio/trio-asyncio-0.12.0.ebuild | 36 --
 7 files changed, 143 deletions(-)

diff --git a/dev-python/pytest-trio/Manifest b/dev-python/pytest-trio/Manifest
deleted file mode 100644
index e39be86a7..0
--- a/dev-python/pytest-trio/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST pytest-trio-0.7.0.tar.gz 47784 BLAKE2B 
59b28df45e87804e0b6eb557a0cf259fdc3636cc7a03d78248fb814d55904ed01d00a530b194b2bfe93ccfb9de528d70a372faf1f6db24531c230319122db2e5
 SHA512 
547036c94f33cf8e755c88d608c5fddfa5c583fdaa7e604598d470e250a006c571702a81bac4f273b74450a8c10e4be404bad74d4104403fe1c9c70e872dff53

diff --git a/dev-python/pytest-trio/metadata.xml 
b/dev-python/pytest-trio/metadata.xml
deleted file mode 100644
index 0cc4d7f61..0
--- a/dev-python/pytest-trio/metadata.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-http://www.gentoo.org/dtd/metadata.dtd;>
-
-  
-co-maintainers welcome
-lssndrbarbi...@gmail.com
-Alessandro Barbieri
-  
-  
-python-trio/pytest-trio
-pytest-trio
-  
-

diff --git a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild 
b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
deleted file mode 100644
index a56157c2f..0
--- a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
+++ /dev/null
@@ -1,55 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="7"
-
-PYTHON_COMPAT=( python3_{7,8,9} )
-DISTUTILS_USE_SETUPTOOLS=bdepend
-DOCS_BUILDER="sphinx"
-DOCS_DIR="${S}/docs/source"
-DOCS_DEPEND="
-   >=dev-python/attrs-17.4.0
-   >=dev-python/sphinx-1.6.1
-   dev-python/sphinx_rtd_theme
-   dev-python/sphinxcontrib-trio
-"
-
-inherit distutils-r1 docs
-
-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"
-#too many errors
-RESTRICT="test"
-
-RDEPEND="
-   >=dev-python/async_generator-1.9[${PYTHON_USEDEP}]
-   dev-python/outcome[${PYTHON_USEDEP}]
-   >=dev-python/trio-0.15[${PYTHON_USEDEP}]
-"
-DEPEND="
-   ${RDEPEND}
-   test? (
-   >=dev-python/hypothesis-3.64[${PYTHON_USEDEP}]
-   https://github.com/python-trio/pytest-trio/issues/84
-   #"Our CI is still passing AFAIK"
-   PYTHONPATH="${S}"
-   cd "${S}" || die
-   pytest -vv --pyargs pytest_trio || die "Tests fail with ${EPYTHON}"
-}

diff --git a/dev-python/trio-asyncio/Manifest b/dev-python/trio-asyncio/Manifest
deleted file mode 100644
index a4fd46342..0
--- a/dev-python/trio-asyncio/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST trio-asyncio-0.12.0.tar.gz 72508 BLAKE2B 
f2dad48e20dadb81f603f8e7edf5d108f5c1dec332e65599e06495a9e3b919d20a15e3cb0d4f06c46a0e844cd79a88c172043b5cae2bc632661679a9ac854c04
 SHA512 
da630bf95d0736efd419a7b84d3fcb55f4440ef5f3ac584f36b2eca9188145d4581b20d4842b1322b07f176822f7c76e32ae57ac71899ea2445ce1783bcd382c

diff --git a/dev-python/trio-asyncio/files/no-pytest-runner.patch 
b/dev-python/trio-asyncio/files/no-pytest-runner.patch
deleted file mode 100644
index 6eec59da4..0
--- a/dev-python/trio-asyncio/files/no-pytest-runner.patch
+++ /dev/null
@@ -1,10 +0,0 @@
 a/setup.py 2021-03-27 18:54:07.104800689 +0100
-+++ b/setup.py 2021-03-27 18:54:23.197091635 +0100
-@@ -77,7 +77,6 @@
- include_package_data=True,
- python_requires=">=3.6",  # temporary, for RTD
- keywords=["async", "io", "trio", "asyncio", "trio-asyncio"],
--setup_requires=['pytest-runner'],
- tests_require=['pytest >= 5.4', 'pytest-trio >= 0.6', 'outcome'],
- classifiers=[
- "Development Status :: 4 - Beta",

diff --git a/dev-python/trio-asyncio/metadata.xml 
b/dev-python/trio-asyncio/metadata.xml
deleted file mode 100644
index f34dda2d3..0
--- a/dev-python/trio-asyncio/metadata.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-
-http://www.gentoo.org/dtd/metadata.dtd;>
-
-
-  
-lssndrbarbi...@gmail.com
-Alessandro Barbieri
-  
-  
-Rationale
-
-Trio has native concepts of tasks and task cancellation. Asyncio is 

[gentoo-commits] repo/proj/guru:dev commit in: dev-python/trio-asyncio/

2021-06-14 Thread Alessandro Barbieri
commit: e90f46595b2a1068b09051083798c7c98a09a424
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Mon Jun 14 22:46:58 2021 +
Commit: Alessandro Barbieri  gmail  com>
CommitDate: Mon Jun 14 23:09:42 2021 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e90f4659

dev-python/trio-asyncio: drop 0.11.0

Signed-off-by: Alessandro Barbieri  gmail.com>

 dev-python/trio-asyncio/Manifest   |  1 -
 dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild | 43 --
 2 files changed, 44 deletions(-)

diff --git a/dev-python/trio-asyncio/Manifest b/dev-python/trio-asyncio/Manifest
index d7fbc9f78..a4fd46342 100644
--- a/dev-python/trio-asyncio/Manifest
+++ b/dev-python/trio-asyncio/Manifest
@@ -1,2 +1 @@
-DIST trio-asyncio-0.11.0.tar.gz 67424 BLAKE2B 
2d38b621eb5698521ba58c06295f6e2337821c64a35c4938ed9ffd4a01285c95df9c512d9922e88afbdff7c6fc0ef028784a1f189fbc9255ea46ee346b2f892c
 SHA512 
718098f7ab18b168dd6a926d9bb64b636e06e6a1ea8e557ba4bf7782db16bb7fcccf226412284bfbc5183ff6df7624fc1a7ac73dd20bc841d5e766e84d0a
 DIST trio-asyncio-0.12.0.tar.gz 72508 BLAKE2B 
f2dad48e20dadb81f603f8e7edf5d108f5c1dec332e65599e06495a9e3b919d20a15e3cb0d4f06c46a0e844cd79a88c172043b5cae2bc632661679a9ac854c04
 SHA512 
da630bf95d0736efd419a7b84d3fcb55f4440ef5f3ac584f36b2eca9188145d4581b20d4842b1322b07f176822f7c76e32ae57ac71899ea2445ce1783bcd382c

diff --git a/dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild 
b/dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild
deleted file mode 100644
index c496354dc..0
--- a/dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild
+++ /dev/null
@@ -1,43 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{7,8} )
-
-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"
-
-RDEPEND="
-   >=dev-python/async_generator-1.6[${PYTHON_USEDEP}]
-   dev-python/outcome[${PYTHON_USEDEP}]
-   >=dev-python/trio-0.12.0[${PYTHON_USEDEP}]
-"
-
-DEPEND="test? (
-   dev-python/pytest-trio[${PYTHON_USEDEP}]
-)"
-
-distutils_enable_tests pytest
-distutils_enable_sphinx docs/source
-
-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
-
-   distutils-r1_python_prepare_all
-}



[gentoo-commits] repo/proj/guru:dev commit in: dev-python/trio-asyncio/

2021-04-18 Thread Alessandro Barbieri
commit: f2e9ef5e556b39bf482a2506dbadf5d3a99fa144
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Mon Apr 19 01:54:37 2021 +
Commit: Alessandro Barbieri  gmail  com>
CommitDate: Mon Apr 19 01:55:04 2021 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f2e9ef5e

dev-python/trio-asyncio: added missing dependency

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Alessandro Barbieri  gmail.com>

 dev-python/trio-asyncio/trio-asyncio-0.12.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/trio-asyncio/trio-asyncio-0.12.0.ebuild 
b/dev-python/trio-asyncio/trio-asyncio-0.12.0.ebuild
index 36fbf1587..ac86ace5e 100644
--- a/dev-python/trio-asyncio/trio-asyncio-0.12.0.ebuild
+++ b/dev-python/trio-asyncio/trio-asyncio-0.12.0.ebuild
@@ -33,4 +33,4 @@ DEPEND="
 PATCHES=( "${FILESDIR}/no-pytest-runner.patch" )
 
 distutils_enable_tests pytest
-distutils_enable_sphinx docs/source
+distutils_enable_sphinx docs/source dev-python/sphinxcontrib-trio



[gentoo-commits] repo/proj/guru:dev commit in: dev-python/trio-asyncio/

2021-04-13 Thread Andrew Ammerlaan
commit: a154a226b67f629b2c9912094f8ab4adaf50a134
Author: Andrew Ammerlaan  riseup  net>
AuthorDate: Tue Apr 13 12:26:44 2021 +
Commit: Andrew Ammerlaan  riseup  net>
CommitDate: Tue Apr 13 12:26:44 2021 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a154a226

dev-python/trio-asyncio: drop x86

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Andrew Ammerlaan  riseup.net>

 dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild | 4 ++--
 dev-python/trio-asyncio/trio-asyncio-0.12.0.ebuild | 2 +-
 2 files changed, 3 insertions(+), 3 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 70c541e1a..c496354dc 100644
--- a/dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild
+++ b/dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -16,7 +16,7 @@ 
SRC_URI="https://github.com/python-trio/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.
 
 LICENSE=" || ( Apache-2.0 MIT )"
 SLOT="0"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="~amd64"
 
 RDEPEND="
>=dev-python/async_generator-1.6[${PYTHON_USEDEP}]

diff --git a/dev-python/trio-asyncio/trio-asyncio-0.12.0.ebuild 
b/dev-python/trio-asyncio/trio-asyncio-0.12.0.ebuild
index 21d6778cd..36fbf1587 100644
--- a/dev-python/trio-asyncio/trio-asyncio-0.12.0.ebuild
+++ b/dev-python/trio-asyncio/trio-asyncio-0.12.0.ebuild
@@ -16,7 +16,7 @@ 
SRC_URI="https://github.com/python-trio/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.
 
 LICENSE="|| ( Apache-2.0 MIT )"
 SLOT="0"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="~amd64"
 
 RDEPEND="
dev-python/outcome[${PYTHON_USEDEP}]



[gentoo-commits] repo/proj/guru:dev commit in: dev-python/trio-asyncio/, dev-python/trio-asyncio/files/

2021-03-27 Thread Alessandro Barbieri
commit: e578524f6255bd11f57370163927b71e77be8059
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Sat Mar 27 18:01:52 2021 +
Commit: Alessandro Barbieri  gmail  com>
CommitDate: Sat Mar 27 18:01:52 2021 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e578524f

dev-python/trio-asyncio: bump

Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Alessandro Barbieri  gmail.com>

 dev-python/trio-asyncio/Manifest   |  1 +
 dev-python/trio-asyncio/files/no-pytest-runner.py  | 10 ++
 dev-python/trio-asyncio/trio-asyncio-0.12.0.ebuild | 36 ++
 3 files changed, 47 insertions(+)

diff --git a/dev-python/trio-asyncio/Manifest b/dev-python/trio-asyncio/Manifest
index 7d22a1234..d7fbc9f78 100644
--- a/dev-python/trio-asyncio/Manifest
+++ b/dev-python/trio-asyncio/Manifest
@@ -1 +1,2 @@
 DIST trio-asyncio-0.11.0.tar.gz 67424 BLAKE2B 
2d38b621eb5698521ba58c06295f6e2337821c64a35c4938ed9ffd4a01285c95df9c512d9922e88afbdff7c6fc0ef028784a1f189fbc9255ea46ee346b2f892c
 SHA512 
718098f7ab18b168dd6a926d9bb64b636e06e6a1ea8e557ba4bf7782db16bb7fcccf226412284bfbc5183ff6df7624fc1a7ac73dd20bc841d5e766e84d0a
+DIST trio-asyncio-0.12.0.tar.gz 72508 BLAKE2B 
f2dad48e20dadb81f603f8e7edf5d108f5c1dec332e65599e06495a9e3b919d20a15e3cb0d4f06c46a0e844cd79a88c172043b5cae2bc632661679a9ac854c04
 SHA512 
da630bf95d0736efd419a7b84d3fcb55f4440ef5f3ac584f36b2eca9188145d4581b20d4842b1322b07f176822f7c76e32ae57ac71899ea2445ce1783bcd382c

diff --git a/dev-python/trio-asyncio/files/no-pytest-runner.py 
b/dev-python/trio-asyncio/files/no-pytest-runner.py
new file mode 100644
index 0..6eec59da4
--- /dev/null
+++ b/dev-python/trio-asyncio/files/no-pytest-runner.py
@@ -0,0 +1,10 @@
+--- a/setup.py 2021-03-27 18:54:07.104800689 +0100
 b/setup.py 2021-03-27 18:54:23.197091635 +0100
+@@ -77,7 +77,6 @@
+ include_package_data=True,
+ python_requires=">=3.6",  # temporary, for RTD
+ keywords=["async", "io", "trio", "asyncio", "trio-asyncio"],
+-setup_requires=['pytest-runner'],
+ tests_require=['pytest >= 5.4', 'pytest-trio >= 0.6', 'outcome'],
+ classifiers=[
+ "Development Status :: 4 - Beta",

diff --git a/dev-python/trio-asyncio/trio-asyncio-0.12.0.ebuild 
b/dev-python/trio-asyncio/trio-asyncio-0.12.0.ebuild
new file mode 100644
index 0..21d6778cd
--- /dev/null
+++ b/dev-python/trio-asyncio/trio-asyncio-0.12.0.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7,8,9} )
+
+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/outcome[${PYTHON_USEDEP}]
+   dev-python/sniffio[${PYTHON_USEDEP}]
+   >=dev-python/trio-0.15.0[${PYTHON_USEDEP}]
+"
+DEPEND="
+   ${RDEPEND}
+   test? (
+   >=dev-python/pytest-5.4[${PYTHON_USEDEP}]
+   >=dev-python/pytest-trio-0.6[${PYTHON_USEDEP}]
+   )
+"
+PATCHES=( "${FILESDIR}/no-pytest-runner.patch" )
+
+distutils_enable_tests pytest
+distutils_enable_sphinx docs/source



[gentoo-commits] repo/proj/guru:dev commit in: dev-python/trio-asyncio/files/

2021-03-27 Thread Alessandro Barbieri
commit: b5f6876cda6603dbbea6450d66486aab378e284e
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Sat Mar 27 18:29:44 2021 +
Commit: Alessandro Barbieri  gmail  com>
CommitDate: Sat Mar 27 18:29:44 2021 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b5f6876c

dev-python/trio-asyncio: wrong extension

Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Alessandro Barbieri  gmail.com>

 .../trio-asyncio/files/{no-pytest-runner.py => no-pytest-runner.patch}| 0
 1 file changed, 0 insertions(+), 0 deletions(-)

diff --git a/dev-python/trio-asyncio/files/no-pytest-runner.py 
b/dev-python/trio-asyncio/files/no-pytest-runner.patch
similarity index 100%
rename from dev-python/trio-asyncio/files/no-pytest-runner.py
rename to dev-python/trio-asyncio/files/no-pytest-runner.patch



[gentoo-commits] repo/proj/guru:dev commit in: dev-python/trio-asyncio/

2020-09-24 Thread Andrew Ammerlaan
commit: cc93f17c8cb2976c35ed46a5c880229c1be3b70c
Author: Andrew Ammerlaan  riseup  net>
AuthorDate: Thu Sep 24 12:47:04 2020 +
Commit: Andrew Ammerlaan  riseup  net>
CommitDate: Thu Sep 24 12:47:04 2020 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=cc93f17c

dev-python/trio-asyncio: drop conditional dep

Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Andrew Ammerlaan  riseup.net>

 dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild | 1 -
 1 file changed, 1 deletion(-)

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 6d3c3b6e..70c541e1 100644
--- a/dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild
+++ b/dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild
@@ -22,7 +22,6 @@ 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="test? (



[gentoo-commits] repo/proj/guru:dev commit in: dev-python/trio-asyncio/

2020-06-15 Thread Andrew Ammerlaan
commit: 5a1f755196b7211706f1f09c8a10c535d443c38f
Author: Andrew Ammerlaan  riseup  net>
AuthorDate: Mon Jun 15 11:28:16 2020 +
Commit: Andrew Ammerlaan  riseup  net>
CommitDate: Mon Jun 15 11:28:16 2020 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5a1f7551

dev-python/trio-asyncio: add py3_8

Package-Manager: Portage-2.3.101, Repoman-2.3.22
Signed-off-by: Andrew Ammerlaan  riseup.net>

 dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild | 3 +--
 1 file changed, 1 insertion(+), 2 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 20d6e40..74b2e8f 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,7} )
+PYTHON_COMPAT=( python3_{6,7,8} )
 
 inherit distutils-r1
 
@@ -27,7 +27,6 @@ RDEPEND="
 
 DEPEND="test? (
dev-python/pytest-trio[${PYTHON_USEDEP}]
-   

[gentoo-commits] repo/proj/guru:dev commit in: dev-python/trio-asyncio/

2020-04-01 Thread Andrew Ammerlaan
commit: e0b47879cad9396b70e8ece256831398dfdd538f
Author: Andrew Ammerlaan  riseup  net>
AuthorDate: Wed Apr  1 16:16:40 2020 +
Commit: Andrew Ammerlaan  riseup  net>
CommitDate: Wed Apr  1 16:17:16 2020 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e0b47879

dev-python/trio-asyncio: depend on pytest-trio for tests

Package-Manager: Portage-2.3.96, Repoman-2.3.22
Signed-off-by: Andrew Ammerlaan  riseup.net>

 dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild | 1 +
 1 file changed, 1 insertion(+)

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 ced6ad6..20d6e40 100644
--- a/dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild
+++ b/dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild
@@ -26,6 +26,7 @@ RDEPEND="
 "
 
 DEPEND="test? (
+   dev-python/pytest-trio[${PYTHON_USEDEP}]


[gentoo-commits] repo/proj/guru:dev commit in: dev-python/trio-asyncio/

2020-04-01 Thread Alessandro Barbieri
commit: 1ad3d301cc52f99874ab3b504cb514faccbe256e
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Wed Apr  1 15:30:28 2020 +
Commit: Alessandro Barbieri  gmail  com>
CommitDate: Wed Apr  1 15:30:28 2020 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1ad3d301

dev-python/trio-asyncio: tests working for me

Package-Manager: Portage-2.3.96, Repoman-2.3.22
Signed-off-by: Alessandro Barbieri  gmail.com>

 dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild | 4 
 1 file changed, 4 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 2a881fb..ced6ad6 100644
--- a/dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild
+++ b/dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild
@@ -18,10 +18,6 @@ LICENSE=" || ( Apache-2.0 MIT )"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
 
-# ImportError: cannot import name 'MarkInfo'
-# MarkInfo removed in pytest-4.1
-RESTRICT="test"
-
 RDEPEND="
>=dev-python/async_generator-1.6[${PYTHON_USEDEP}]
dev-python/outcome[${PYTHON_USEDEP}]



[gentoo-commits] repo/proj/guru:dev commit in: dev-python/trio-asyncio/

2020-04-01 Thread Alessandro Barbieri
commit: 73809d4765611198b50663ec7cd8a680adc98e25
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Wed Apr  1 14:57:25 2020 +
Commit: Alessandro Barbieri  gmail  com>
CommitDate: Wed Apr  1 14:57:25 2020 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=73809d47

dev-python/trio-asyncio: updated dependency

Package-Manager: Portage-2.3.96, Repoman-2.3.22
Signed-off-by: Alessandro Barbieri  gmail.com>

 dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 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 ccf267c..2a881fb 100644
--- a/dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild
+++ b/dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild
@@ -19,7 +19,7 @@ SLOT="0"
 KEYWORDS="~amd64 ~x86"
 
 # ImportError: cannot import name 'MarkInfo'
-# might be an issue in pytest-marks
+# MarkInfo removed in pytest-4.1
 RESTRICT="test"
 
 RDEPEND="
@@ -30,7 +30,7 @@ RDEPEND="
 "
 
 DEPEND="test? (
-   dev-python/pytest-marks[${PYTHON_USEDEP}]
+   

[gentoo-commits] repo/proj/guru:dev commit in: dev-python/trio-asyncio/

2020-03-29 Thread Andrew Ammerlaan
commit: 5809afe66f9d0a59bcb35f6f894e3874b62bf78c
Author: Andrew Ammerlaan  riseup  net>
AuthorDate: Sun Mar 29 12:25:29 2020 +
Commit: Andrew Ammerlaan  riseup  net>
CommitDate: Sun Mar 29 12:25:29 2020 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5809afe6

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  riseup.net>

 dev-python/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 eac1549..ccf267c 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
 }



[gentoo-commits] repo/proj/guru:dev commit in: dev-python/trio-asyncio/

2020-03-29 Thread Alessandro Barbieri
commit: 7395f995d7a506f91b79614047067cf60642dc5c
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Sun Mar 29 09:23:26 2020 +
Commit: Alessandro Barbieri  gmail  com>
CommitDate: Sun Mar 29 09:29:03 2020 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7395f995

dev-python/trio-asyncio: new package

Package-Manager: Portage-2.3.96, Repoman-2.3.22
Signed-off-by: Alessandro Barbieri  gmail.com>

 dev-python/trio-asyncio/Manifest   |  1 +
 dev-python/trio-asyncio/metadata.xml   | 27 ++
 dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild | 41 ++
 3 files changed, 69 insertions(+)

diff --git a/dev-python/trio-asyncio/Manifest b/dev-python/trio-asyncio/Manifest
new file mode 100644
index 000..7d22a12
--- /dev/null
+++ b/dev-python/trio-asyncio/Manifest
@@ -0,0 +1 @@
+DIST trio-asyncio-0.11.0.tar.gz 67424 BLAKE2B 
2d38b621eb5698521ba58c06295f6e2337821c64a35c4938ed9ffd4a01285c95df9c512d9922e88afbdff7c6fc0ef028784a1f189fbc9255ea46ee346b2f892c
 SHA512 
718098f7ab18b168dd6a926d9bb64b636e06e6a1ea8e557ba4bf7782db16bb7fcccf226412284bfbc5183ff6df7624fc1a7ac73dd20bc841d5e766e84d0a

diff --git a/dev-python/trio-asyncio/metadata.xml 
b/dev-python/trio-asyncio/metadata.xml
new file mode 100644
index 000..cc48483
--- /dev/null
+++ b/dev-python/trio-asyncio/metadata.xml
@@ -0,0 +1,27 @@
+
+http://www.gentoo.org/dtd/metadata.dtd;>
+
+
+  
+lssndrbarbi...@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 000..eac1549
--- /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
+}