Compare commits

..

No commits in common. "7a1123e36401d740781268cbd9f596330db0fbb9" and "9e657d984bef74855d79f32715a42390dea91b43" have entirely different histories.

6 changed files with 7 additions and 81 deletions

View File

@ -1,25 +0,0 @@
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 @@
[![Documentation Status](https://readthedocs.org/projects/dnspython/badge/?version=latest)](https://dnspython.readthedocs.io/en/latest/?badge=latest)
[![PyPI version](https://badge.fury.io/py/dnspython.svg)](https://badge.fury.io/py/dnspython)
[![License: ISC](https://img.shields.io/badge/License-ISC-brightgreen.svg)](https://opensource.org/licenses/ISC)
+[![Coverage](https://codecov.io/github/rthalley/dnspython/coverage.svg?branch=master)](https://codecov.io/github/rthalley/dnspython)
+[![LGTM Grade](https://img.shields.io/lgtm/grade/python/github/rthalley/dnspython)](https://img.shields.io/lgtm/grade/python/github/rthalley/dnspython)
## INTRODUCTION
--
2.33.0

View File

@ -1,21 +0,0 @@
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

BIN
dnspython-2.1.0.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -24,22 +24,6 @@ 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
@ -55,8 +39,8 @@ diff -ruNa dnspython-2.1.0-org/tests/test_async.py dnspython-2.1.0/tests/test_as
+_network_available = False
# Look for systemd-resolved, as it does dangling CNAME responses incorrectly.
#
# Probe for IPv4 and IPv6
query_addresses = []
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

View File

@ -13,19 +13,17 @@ messages, names, and records.
Name: python-dns
Summary: %{sum}
Version: 2.2.1
Release: 2
Version: 2.1.0
Release: 1
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-cryptography
BuildRequires: python3-devel python3-setuptools python3-pycryptodome python3-ecdsa
BuildRequires: python3-pytest
%description
@ -34,7 +32,7 @@ BuildRequires: python3-pytest
%package -n python3-dns
Summary: %{sum}
%{?python_provide:%python_provide python3-dns}
Requires: python3-cryptography
Requires: python3-pycryptodome python3-ecdsa
%description -n python3-dns
%{_description}
@ -46,7 +44,6 @@ Requires: python3-cryptography
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
@ -64,16 +61,7 @@ pytest
%doc examples
%changelog
* 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
* Wed Jul 07 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