From 283757a4e3578d4bcc0317d99796c635e9f1dfce2e4807b42d93bebae01ad053 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 24 Jun 2021 11:57:37 +0000 Subject: [PATCH] Accepting request 900393 from home:glaubitz:branches:devel:languages:python - Update to 3.0.0 * Release wheels and source to PyPI with GH actions * Try to make tests more resilient * Don't build universal wheels * Migrate CI to GH Actions * Fix TXT CHAOS test * Add support for CAA queries * Support Python >= 3.6 * Bump pycares dependency * Drop tasks.py * Allow specifying dnsclass for queries * Set URL to https * Add license args in setup.py * Converted Type Annotations to Py3 syntax Closes * Only run mypy on cpython versions * Also fix all type errors with latest mypy - pycares seems to have no typing / stubs so lets ignore it via `mypy.ini` * setup: typing exists since Python 3.5 * Fix type annotation of gethostbyname() * Updated README - Drop patches for issues fixed upstream * python-aiodns-2.0.0-fix-typing-dependency.patch OBS-URL: https://build.opensuse.org/request/show/900393 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiodns?expand=0&rev=16 --- aiodns-2.0.0.tar.gz | 3 --- aiodns-3.0.0.tar.gz | 3 +++ ...n-aiodns-2.0.0-fix-typing-dependency.patch | 21 --------------- python-aiodns.changes | 26 +++++++++++++++++++ python-aiodns.spec | 11 +++----- 5 files changed, 33 insertions(+), 31 deletions(-) delete mode 100644 aiodns-2.0.0.tar.gz create mode 100644 aiodns-3.0.0.tar.gz delete mode 100644 python-aiodns-2.0.0-fix-typing-dependency.patch diff --git a/aiodns-2.0.0.tar.gz b/aiodns-2.0.0.tar.gz deleted file mode 100644 index 89b1584..0000000 --- a/aiodns-2.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f5f9f066d34dbf6120ec4a9357ba322313721a5fe7e9f0dec64d29df643e699c -size 5765 diff --git a/aiodns-3.0.0.tar.gz b/aiodns-3.0.0.tar.gz new file mode 100644 index 0000000..351567a --- /dev/null +++ b/aiodns-3.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:946bdfabe743fceeeb093c8a010f5d1645f708a241be849e17edfb0e49e08cd6 +size 6743 diff --git a/python-aiodns-2.0.0-fix-typing-dependency.patch b/python-aiodns-2.0.0-fix-typing-dependency.patch deleted file mode 100644 index f9dfcb1..0000000 --- a/python-aiodns-2.0.0-fix-typing-dependency.patch +++ /dev/null @@ -1,21 +0,0 @@ -From 281112107c742a3e24e8bce2cb09c3c4d9d01b6d Mon Sep 17 00:00:00 2001 -From: Gerion Entrup -Date: Sun, 8 Sep 2019 12:34:10 +0200 -Subject: [PATCH] setup: typing exists since Python 3.5 - -Fix #71. ---- - setup.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - ---- a/setup.py 2019-03-02 13:01:34.000000000 +0100 -+++ b/setup.py 2020-07-09 09:44:16.606974490 +0200 -@@ -18,7 +18,7 @@ - url = "http://github.com/saghul/aiodns", - description = "Simple DNS resolver for asyncio", - long_description = codecs.open("README.rst", encoding="utf-8").read(), -- install_requires = ['pycares>=3.0.0', 'typing; python_version<"3.7"'], -+ install_requires = ['pycares>=3.0.0', 'typing; python_version<"3.5"'], - packages = ['aiodns'], - platforms = ["POSIX", "Microsoft Windows"], - classifiers = [ diff --git a/python-aiodns.changes b/python-aiodns.changes index cd724bb..ca37f8b 100644 --- a/python-aiodns.changes +++ b/python-aiodns.changes @@ -1,3 +1,29 @@ +------------------------------------------------------------------- +Wed Jun 16 13:48:13 UTC 2021 - John Paul Adrian Glaubitz + +- Update to 3.0.0 + * Release wheels and source to PyPI with GH actions + * Try to make tests more resilient + * Don't build universal wheels + * Migrate CI to GH Actions + * Fix TXT CHAOS test + * Add support for CAA queries + * Support Python >= 3.6 + * Bump pycares dependency + * Drop tasks.py + * Allow specifying dnsclass for queries + * Set URL to https + * Add license args in setup.py + * Converted Type Annotations to Py3 syntax Closes + * Only run mypy on cpython versions + * Also fix all type errors with latest mypy - pycares seems to have + no typing / stubs so lets ignore it via `mypy.ini` + * setup: typing exists since Python 3.5 + * Fix type annotation of gethostbyname() + * Updated README +- Drop patches for issues fixed upstream + * python-aiodns-2.0.0-fix-typing-dependency.patch + ------------------------------------------------------------------- Thu Jul 9 07:47:23 UTC 2020 - Matthias Fehring diff --git a/python-aiodns.spec b/python-aiodns.spec index 933cbec..7c7b525 100644 --- a/python-aiodns.spec +++ b/python-aiodns.spec @@ -1,7 +1,7 @@ # # spec file for package python-aiodns # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -22,17 +22,15 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-aiodns -Version: 2.0.0 +Version: 3.0.0 Release: 0 Summary: Simple DNS resolver for asyncio License: MIT Group: Development/Libraries/Python URL: https://github.com/saghul/aiodns/releases Source0: https://github.com/saghul/aiodns/archive/aiodns-%{version}.tar.gz -# PATCH-FIX-UPSTREAM python-aiodns-2.0.0-fix-typing-dependency.patch gh#saghul/aiodns/issues/71 -- buschmann23@opensuse.org -Patch0: python-aiodns-2.0.0-fix-typing-dependency.patch BuildRequires: %{python_module setuptools} -Requires: python-pycares >= 3.0.0 +Requires: python-pycares >= 4.0.0 BuildRequires: fdupes BuildRequires: python-rpm-macros %if %{with tests} @@ -47,8 +45,7 @@ BuildArch: noarch Simple DNS resolver for asyncio module. %prep -%setup -q -n aiodns-aiodns-%{version} -%patch0 -p1 +%setup -q -n aiodns-%{version} %build %python_build