Compare commits
10 Commits
9e657d984b
...
7a1123e364
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7a1123e364 | ||
|
|
f06841d3cf | ||
|
|
e68b64ad53 | ||
|
|
bdb4843771 | ||
|
|
7bdb6fcf9e | ||
|
|
1bcc98b9fa | ||
|
|
dcbe9f75b3 | ||
|
|
e523b1c36c | ||
|
|
e8f23c65a6 | ||
|
|
45e28846bd |
25
0001-update-README-w-codecov-and-lgtm.patch
Normal file
25
0001-update-README-w-codecov-and-lgtm.patch
Normal file
@ -0,0 +1,25 @@
|
||||
From 53fb24527687399bd3eeae7670ba7df2dd5c280e Mon Sep 17 00:00:00 2001
|
||||
From: Bob Halley <halley@dnspython.org>
|
||||
Date: Mon, 21 Feb 2022 14:32:25 -0800
|
||||
Subject: [PATCH] update README w/ codecov and lgtm
|
||||
|
||||
---
|
||||
README.md | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/README.md b/README.md
|
||||
index 81503f3..2344807 100644
|
||||
--- a/README.md
|
||||
+++ b/README.md
|
||||
@@ -4,6 +4,8 @@
|
||||
[](https://dnspython.readthedocs.io/en/latest/?badge=latest)
|
||||
[](https://badge.fury.io/py/dnspython)
|
||||
[](https://opensource.org/licenses/ISC)
|
||||
+[](https://codecov.io/github/rthalley/dnspython)
|
||||
+[](https://img.shields.io/lgtm/grade/python/github/rthalley/dnspython)
|
||||
|
||||
## INTRODUCTION
|
||||
|
||||
--
|
||||
2.33.0
|
||||
|
||||
21
backport-fix-missing-version-in-setup.cfg.patch
Normal file
21
backport-fix-missing-version-in-setup.cfg.patch
Normal file
@ -0,0 +1,21 @@
|
||||
From a4e88cfb2dcb98c589bbc1eb7452c773faf46398 Mon Sep 17 00:00:00 2001
|
||||
From: eaglegai <eaglegai@163.com>
|
||||
Date: Thu, 27 Oct 2022 23:07:17 +0800
|
||||
Subject: [PATCH] fix missing version in setup.cfg
|
||||
|
||||
Signed-off-by: eaglegai <eaglegai@163.com>
|
||||
---
|
||||
setup.cfg | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/setup.cfg b/setup.cfg
|
||||
index a32ff8ce..cc7e3b0d 100644
|
||||
--- a/setup.cfg
|
||||
+++ b/setup.cfg
|
||||
@@ -1,5 +1,6 @@
|
||||
[metadata]
|
||||
name = dnspython
|
||||
+version = 2.2.1
|
||||
author = Bob Halley
|
||||
author_email = halley@dnspython.org
|
||||
license = ISC
|
||||
Binary file not shown.
BIN
dnspython-2.2.1.tar.gz
Normal file
BIN
dnspython-2.2.1.tar.gz
Normal file
Binary file not shown.
@ -24,6 +24,22 @@ index 1738c1a..1e0c727 100644
|
||||
|
||||
# Some tests use a "nano nameserver" for testing. It requires trio
|
||||
# and threading, so try to import it and if it doesn't work, skip
|
||||
diff -ruNa dnspython-2.1.0-org/tests/test_resolver_override.py dnspython-2.1.0/tests/test_resolver_override.py
|
||||
--- dnspython-2.1.0-org/tests/test_resolver_override.py 2021-07-07 10:04:01.861405149 +0800
|
||||
+++ dnspython-2.1.0/tests/test_resolver_override.py 2021-07-07 10:04:59.981489084 +0800
|
||||
@@ -11,11 +11,7 @@ import dns.resolver
|
||||
|
||||
# Some tests require the internet to be available to run, so let's
|
||||
# skip those if it's not there.
|
||||
-_network_available = True
|
||||
-try:
|
||||
- socket.gethostbyname('dnspython.org')
|
||||
-except socket.gaierror:
|
||||
- _network_available = False
|
||||
+_network_available = False
|
||||
|
||||
|
||||
@unittest.skipIf(not _network_available, "Internet not reachable")
|
||||
diff -ruNa dnspython-2.1.0-org/tests/test_async.py dnspython-2.1.0/tests/test_async.py
|
||||
--- dnspython-2.1.0-org/tests/test_async.py 2021-07-07 10:04:01.861405149 +0800
|
||||
+++ dnspython-2.1.0/tests/test_async.py 2021-07-07 10:04:59.981489084 +0800
|
||||
@ -39,8 +55,8 @@ diff -ruNa dnspython-2.1.0-org/tests/test_async.py dnspython-2.1.0/tests/test_as
|
||||
|
||||
+_network_available = False
|
||||
|
||||
# Probe for IPv4 and IPv6
|
||||
query_addresses = []
|
||||
# Look for systemd-resolved, as it does dangling CNAME responses incorrectly.
|
||||
#
|
||||
diff -ruNa dnspython-2.1.0-org/tests/test_query.py dnspython-2.1.0/tests/test_query.py
|
||||
--- dnspython-2.1.0-org/tests/test_query.py 2021-07-07 10:04:01.861405149 +0800
|
||||
+++ dnspython-2.1.0/tests/test_query.py 2021-07-07 10:05:44.431553273 +0800
|
||||
|
||||
@ -13,17 +13,19 @@ messages, names, and records.
|
||||
|
||||
Name: python-dns
|
||||
Summary: %{sum}
|
||||
Version: 2.1.0
|
||||
Release: 1
|
||||
Version: 2.2.1
|
||||
Release: 2
|
||||
License: ISC and MIT
|
||||
URL: http://www.dnspython.org/
|
||||
Source0: https://github.com/rthalley/dnspython/archive/v%{version}/dnspython-%{version}.tar.gz
|
||||
|
||||
Patch0: fix-failed-tests.patch
|
||||
Patch1: backport-fix-missing-version-in-setup.cfg.patch
|
||||
Patch2: 0001-update-README-w-codecov-and-lgtm.patch
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: python3-devel python3-setuptools python3-pycryptodome python3-ecdsa
|
||||
BuildRequires: python3-devel python3-setuptools python3-cryptography
|
||||
BuildRequires: python3-pytest
|
||||
|
||||
%description
|
||||
@ -32,7 +34,7 @@ BuildRequires: python3-pytest
|
||||
%package -n python3-dns
|
||||
Summary: %{sum}
|
||||
%{?python_provide:%python_provide python3-dns}
|
||||
Requires: python3-pycryptodome python3-ecdsa
|
||||
Requires: python3-cryptography
|
||||
|
||||
%description -n python3-dns
|
||||
%{_description}
|
||||
@ -44,6 +46,7 @@ Requires: python3-pycryptodome python3-ecdsa
|
||||
find examples -type f | xargs chmod a-x
|
||||
|
||||
%build
|
||||
sed -i 's/setup_requires = setuptools>=44; wheel; setuptools_scm\[toml\]>=3.4.3/setup_requires = setuptools>=44;/' setup.cfg
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
@ -61,7 +64,16 @@ pytest
|
||||
%doc examples
|
||||
|
||||
%changelog
|
||||
* Wed Jul 07 2021 gaihuiying<gaihuiying1@huawei.com> - 2.1.0-1
|
||||
* Fri Jan 13 2023 caofei <caofei@xfusion.com> - 2.2.1-2
|
||||
- update README w/ codecov and lgtm
|
||||
|
||||
* Thu Oct 27 2022 gaihuiying <eaglegai@163.com> - 2.2.1-1
|
||||
- update to 2.2.1
|
||||
|
||||
* Sat Jan 08 2022 quanhongfei<quanhongfei@huawei.com> - 2.1.0-2
|
||||
- fix tests failed
|
||||
|
||||
* Fri Dec 10 2021 gaihuiying<gaihuiying1@huawei.com> - 2.1.0-1
|
||||
- update to 2.1.0
|
||||
|
||||
* Tue Nov 17 2020 jinzhimin<jinzhimin2@huawei.com> - 1.16.0-3
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user