Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
7a1123e364
!32 update README w/ codecov and lgtm
From: @cao-fei8 
Reviewed-by: @Charlie_li 
Signed-off-by: @Charlie_li
2023-01-13 09:18:09 +00:00
cao-fei8
f06841d3cf update README w/ codecov and lgtm
Reference:
53fb245276

Signed-off-by: cao-fei8 <caofei@xfusion.com>
2023-01-13 14:26:02 +08:00
openeuler-ci-bot
e68b64ad53
!26 update to 2.2.1
From: @eaglegai 
Reviewed-by: @licihua 
Signed-off-by: @kircher, @licihua
2022-11-01 01:47:38 +00:00
eaglegai
bdb4843771 update to 2.2.1 2022-10-31 02:41:48 +00:00
openeuler-ci-bot
7bdb6fcf9e
!19 fix failed tests
Merge pull request !19 from quanhongfei/openEuler-22.03-LTS-Next
2022-01-08 09:01:46 +00:00
quanhongfei
1bcc98b9fa fix failed tests 2022-01-08 11:26:46 +08:00
openeuler-ci-bot
dcbe9f75b3 !17 update to 2.1.0
Merge pull request !17 from eaglegai/master
2021-12-20 07:27:47 +00:00
eaglegai
e523b1c36c update to 2.1.0 2021-12-10 11:20:49 +08:00
openeuler-ci-bot
e8f23c65a6 !16 Revert "update to 2.1.0"
From: @xiyuanwang
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2021-07-21 08:05:18 +00:00
wangxiyuan
45e28846bd Revert "update to 2.1.0"
This reverts commit dc7e50fb33c6e7d0ab84b03fdc4978bf93064962.

python-dns is required by python-eventlet which need the version < 2.
2021-07-13 08:05:10 +00:00
6 changed files with 81 additions and 7 deletions

View 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 @@
[![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

@ -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

Binary file not shown.

View File

@ -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

View File

@ -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