dev-python/aiodns: new package, add 3.0.0-r1
Closes: #2412 Signed-off-by: Andreas Billmeier <b@edevau.net>
This commit is contained in:
parent
7eb435e62d
commit
851e94d5c1
|
@ -612,11 +612,11 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E
|
|||
|
||||
## Licenses
|
||||
This repository itself is released under GPL-3 (like most Gentoo repositories), all work on the depending components under the licenses they came from. Perhaps you came here because I filed an issue at your component about a bad or missing license. It is easy to [assign a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). During cleanups and license investigations I have been asked often which license to choose. I am not a lawyer, but I can offer the following table, counted over this repository, perhaps this helps your decision. If a package has more than one license listed, all of them are counted.
|
||||
There are 1660 Ebuilds in total, 1649 of them have in total 1670 (43 different) licenses assigned.
|
||||
There are 1661 Ebuilds in total, 1650 of them have in total 1671 (43 different) licenses assigned.
|
||||
|
||||
|License| Ebuilds using it|
|
||||
|-------|-----|
|
||||
|MIT|967|
|
||||
|MIT|968|
|
||||
|Apache-2.0|343|
|
||||
|BSD|97|
|
||||
|GPL-3|95|
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
AUX aiodns-3.0.0-py3.10-tests.patch 757 BLAKE2B 1b5040841b3ced3b83b330e0033f54ee6ee97a8d025f22d87674f5fca9858e48febbf25c6b3441ba5b27ef9cb15f841e65f25ed999b9f536559ec50e1f010bbc SHA512 85219c885ee70871fb43f53e2ec52c164b08b63e120ee5ca5bc4531ea71155b6d81f5a813f056eabf7f4da2b425b12df6b5649cc7a9ba98d0ca9473043ee1829
|
||||
DIST aiodns-3.0.0.tar.gz 6743 BLAKE2B 2a3c61156069fa598df58191b35383da3e054396cdeb1bc8916cc0414bb6efc89d45789883a5b4f33e3a08a6ee544356b02d6c697c096deae3398f0ff4d3c316 SHA512 8c1016f3b0cb461e70e9a55034f9ad3b3db705a845bf20bb6503c7a5d592b4c5d2e8ddc60b375c5fafdc559dc4566736f4c93f26710be2dcbd181284ef039825
|
||||
EBUILD aiodns-3.0.0-r1.ebuild 888 BLAKE2B aba0a5751d611bbfd199e4c909f7597171efe4a73dd64ee825300c1f00a90c1451744a27bb0e91592507c1d09bb8a0c730725ec7c31abfc44c19871b86322062 SHA512 c3d6d12332f1ad19828d2467d1cfbb4b60daedb290bc0baf12fe554c8cdf0ca1cc8f2c031bd946334a9451f5f3e9c78b1849221dd75bc3f976a229432dd39554
|
||||
MISC metadata.xml 508 BLAKE2B 68313c6e5503f5b799769d76d8638b2c163853cfc22656f1790811cbc03b593e95a0e2c3c960240e847956f64ab4bd3dfd9c6c30a78164f2fd3feac8e5bf6aa5 SHA512 d83219c1cd855210afde323b18640c27969f239a23287ff13ea0702212d4bace188b5f857b7b5e8ce872fd8dd97fb0e9ed54922ed01a26d611c06b15a6452751
|
|
@ -0,0 +1,39 @@
|
|||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
DESCRIPTION="Simple DNS resolver for asyncio"
|
||||
HOMEPAGE="https://github.com/saghul/aiodns/"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm64 ~riscv ~x86"
|
||||
|
||||
# Tests fail with network-sandbox, since they try to resolve google.com
|
||||
PROPERTIES="test_network"
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND=">=dev-python/pycares-3[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
PATCHES=(
|
||||
# https://github.com/saghul/aiodns/commit/146286601fe80eb4ede8126769e79b5d5e63f64e
|
||||
"${FILESDIR}/${P}-py3.10-tests.patch"
|
||||
)
|
||||
|
||||
python_test() {
|
||||
local EPYTEST_DESELECT=(
|
||||
# Internet changed, https://github.com/saghul/aiodns/issues/107
|
||||
tests.py::DNSTest::test_query_bad_chars
|
||||
)
|
||||
|
||||
epytest tests.py
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
From 146286601fe80eb4ede8126769e79b5d5e63f64e Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
|
||||
Date: Sat, 15 May 2021 10:03:01 +0200
|
||||
Subject: [PATCH] Remove loop= param from asyncio.sleep() to fix tests on
|
||||
Python 3.10
|
||||
|
||||
Fixes #95
|
||||
---
|
||||
tests.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tests.py b/tests.py
|
||||
index 7b2279f..fc0e2b9 100755
|
||||
--- a/tests.py
|
||||
+++ b/tests.py
|
||||
@@ -116,7 +116,7 @@ def test_future_cancel(self):
|
||||
f = self.resolver.query('google.com', 'A')
|
||||
f.cancel()
|
||||
async def coro():
|
||||
- await asyncio.sleep(0.1, loop=self.loop)
|
||||
+ await asyncio.sleep(0.1)
|
||||
await f
|
||||
try:
|
||||
self.loop.run_until_complete(coro())
|
|
@ -0,0 +1,16 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>b@edevau.net</email>
|
||||
<name>Andreas Billmeier</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="pypi">aiodns</remote-id>
|
||||
<remote-id type="github">saghul/aiodns</remote-id>
|
||||
<maintainer status="unknown">
|
||||
<email>s@saghul.net</email>
|
||||
<name>Saúl Ibarra Corretgé</name>
|
||||
</maintainer>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
Loading…
Reference in New Issue