Accepting request 819669 from home:buschmann23:branches:devel:languages:python

- add python-aiodns-2.0.0-fix-typing-dependency.patch to fix wrong
  dependency to python-typing on python 3.5+ (gh#saghul/aiodns/issues/71)

OBS-URL: https://build.opensuse.org/request/show/819669
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiodns?expand=0&rev=13
This commit is contained in:
Tomáš Chvátal
2020-07-09 06:42:47 +00:00
committed by Git OBS Bridge
parent 1ee00a2011
commit 61f322bf18
3 changed files with 33 additions and 2 deletions

View File

@@ -0,0 +1,23 @@
From 281112107c742a3e24e8bce2cb09c3c4d9d01b6d Mon Sep 17 00:00:00 2001
From: Gerion Entrup <gerion.entrup@flump.de>
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(-)
diff --git a/setup.py b/setup.py
index 415a2af..bcf54ce 100644
--- a/setup.py
+++ b/setup.py
@@ -19,7 +19,7 @@ def get_version():
description = "Simple DNS resolver for asyncio",
long_description = codecs.open("README.rst", encoding="utf-8").read(),
long_description_content_type = "text/x-rst",
- 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 = [

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jul 9 05:55:21 UTC 2020 - Matthias Fehring <buschmann23@opensuse.org>
- add python-aiodns-2.0.0-fix-typing-dependency.patch to fix wrong
dependency to python-typing on python 3.5+ (gh#saghul/aiodns/issues/71)
-------------------------------------------------------------------
Thu Mar 21 14:07:32 UTC 2019 - Ondřej Súkup <mimi.vx@gmail.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-aiodns
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -27,8 +27,10 @@ Release: 0
Summary: Simple DNS resolver for asyncio
License: MIT
Group: Development/Libraries/Python
Url: https://github.com/saghul/aiodns/releases
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
BuildRequires: fdupes