Skip to content

Commit 55530bd

Browse files
Upgrade: python-aiodns version to 3.2.0 (microsoft#12509)
Co-authored-by: kgodara912 <[email protected]>
1 parent ccb7536 commit 55530bd

File tree

3 files changed

+105
-42
lines changed

3 files changed

+105
-42
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"Signatures": {
3-
"python-aiodns-2.0.0.tar.gz": "f5f9f066d34dbf6120ec4a9357ba322313721a5fe7e9f0dec64d29df643e699c"
3+
"python-aiodns-3.2.0.tar.gz": "999e8fbeff802027ab890a085c35586eff7001b70356a832f43b3649ac9f7933"
44
}
55
}
Lines changed: 102 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,133 @@
1-
Vendor: Microsoft Corporation
2-
Distribution: Azure Linux
3-
# set upstream name variable
4-
%global srcname aiodns
5-
6-
1+
# All tests require network access (DNS). We can run them manually with, e.g.:
2+
# fedpkg mockbuild --with network_tests --enable-network
3+
%bcond_with network_tests
74

85
Name: python-aiodns
9-
Version: 2.0.0
10-
Release: 4%{?dist}
6+
Version: 3.2.0
7+
Release: 2%{?dist}
118
Summary: Simple DNS resolver for asyncio
129

1310
License: MIT
11+
Vendor: Microsoft Corporation
12+
Distribution: Azure Linux
1413
URL: https://github.com/saghul/aiodns
15-
Source0: https://github.com/saghul/%{srcname}/archive/%{srcname}-%{version}.tar.gz#/python-%{srcname}-%{version}.tar.gz
14+
Source0: %{url}/archive/v%{version}/aiodns-%{version}.tar.gz#/%{name}-%{version}.tar.gz
1615

1716
BuildArch: noarch
1817
BuildRequires: python3-devel
19-
BuildRequires: python3-pycares
20-
21-
%description
22-
aiodns provides a simple way for doing asynchronous DNS resolutions
23-
with a synchronous looking interface by using pycares.
18+
BuildRequires: python3-pip
19+
BuildRequires: python3-wheel
20+
#for tests
21+
BuildRequires: python3-pycares
22+
BuildRequires: python3-cffi
2423

24+
%if %{with network_tests}
25+
BuildRequires: %{py3_dist pytest}
26+
# Optional uvloop integration tests:
27+
BuildRequires: %{py3_dist uvloop}
28+
%endif
2529

26-
%package -n python3-%{srcname}
27-
Summary: Simple DNS resolver for asyncio
28-
BuildArch: noarch
29-
Requires: python3-pycares
30-
%{?python_provide:%python_provide python3-%{srcname}}
30+
%global _description %{expand:
31+
aiodns provides a simple way for doing asynchronous DNS resolutions using
32+
pycares.}
3133

32-
%description -n python3-%{srcname}
33-
aiodns provides a simple way for doing asynchronous DNS resolutions
34-
with a synchronous looking interface by using pycares.
34+
%description %{_description}
3535

36+
%package -n python3-aiodns
37+
Summary: %{summary}
3638

39+
%description -n python3-aiodns %{_description}
3740

3841
%prep
39-
%autosetup -n %{srcname}-%{srcname}-%{version}
42+
%autosetup -n aiodns-%{version}
4043

44+
%generate_buildrequires
45+
%pyproject_buildrequires
4146

4247
%build
43-
%py3_build
44-
48+
%pyproject_wheel
4549

4650
%install
47-
%py3_install
48-
51+
%pyproject_install
52+
%pyproject_save_files aiodns
4953

5054
%check
51-
# Unit tests perform DNS resolution and requires active Internet
52-
# connection: disabling
53-
##%{__python3} setup.py test
54-
55-
55+
%pyproject_check_import
56+
%if %{with network_tests}
57+
%pytest tests.py
58+
%endif
5659

57-
%files -n python3-%{srcname}
60+
%files -n python3-aiodns -f %{pyproject_files}
5861
%license LICENSE
5962
%doc README.rst ChangeLog
60-
# For noarch packages: sitelib
61-
%{python3_sitelib}/%{srcname}-%{version}-*.egg-info/
62-
%{python3_sitelib}/%{srcname}/
6363

64+
%changelog
65+
* Wed Feb 12 2025 Akhila Guruju <[email protected]> - 3.2.0-2
66+
- Initial Azure Linux import from Fedora 41 (license: MIT).
67+
- License verified
68+
- Added `BuildRequires: python3-pip python3-wheel python3-cffi` to fix build.
6469

70+
* Sat Aug 17 2024 Benjamin A. Beasley <[email protected]> - 3.2.0-1
71+
- Update to 3.2.0 (close RHBZ#2242855)
6572

66-
%changelog
67-
* Fri Oct 15 2021 Pawel Winogrodzki <[email protected]> - 2.0.0-4
68-
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
73+
* Sat Aug 17 2024 Benjamin A. Beasley <[email protected]> - 3.0.0-13
74+
- Port to current Python guidelines (pyproject-rpm-macros)
75+
76+
* Fri Jul 19 2024 Fedora Release Engineering <[email protected]> - 3.0.0-12
77+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
78+
79+
* Fri Jun 07 2024 Python Maint <[email protected]> - 3.0.0-11
80+
- Rebuilt for Python 3.13
81+
82+
* Fri Jan 26 2024 Fedora Release Engineering <[email protected]> - 3.0.0-10
83+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
84+
85+
* Sun Jan 21 2024 Fedora Release Engineering <[email protected]> - 3.0.0-9
86+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
87+
88+
* Fri Jul 21 2023 Fedora Release Engineering <[email protected]> - 3.0.0-8
89+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
90+
91+
* Wed Jun 14 2023 Python Maint <[email protected]> - 3.0.0-7
92+
- Rebuilt for Python 3.12
93+
94+
* Fri Jan 20 2023 Fedora Release Engineering <[email protected]> - 3.0.0-6
95+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
96+
97+
* Fri Jul 22 2022 Fedora Release Engineering <[email protected]> - 3.0.0-5
98+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
99+
100+
* Mon Jun 13 2022 Python Maint <[email protected]> - 3.0.0-4
101+
- Rebuilt for Python 3.11
102+
103+
* Fri Jan 21 2022 Fedora Release Engineering <[email protected]> - 3.0.0-3
104+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
105+
106+
* Fri Jul 23 2021 Fedora Release Engineering <[email protected]> - 3.0.0-2
107+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
108+
109+
* Wed Jun 9 2021 Matthieu Saulnier <[email protected]> - 3.0.0-1
110+
- Update to 3.0.0
111+
- Remove Patch0 (Backport from upstream commit: 28111210)
112+
113+
* Fri Jun 04 2021 Python Maint <[email protected]> - 2.0.0-9
114+
- Rebuilt for Python 3.10
115+
116+
* Sun Feb 14 2021 Matthieu Saulnier <[email protected]> - 2.0.0-8
117+
- Replace glob with %%{python3_version} in %%files section
118+
119+
* Wed Jan 27 2021 Fedora Release Engineering <[email protected]> - 2.0.0-7
120+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
121+
122+
* Wed Jan 13 2021 Matthieu Saulnier <[email protected]> - 2.0.0-6
123+
- Add Patch0 to fix epel8 installation package
124+
Backport from upstream commit: 28111210
125+
126+
* Tue Jul 28 2020 Fedora Release Engineering <[email protected]> - 2.0.0-5
127+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
128+
129+
* Tue May 26 2020 Miro Hrončok <[email protected]> - 2.0.0-4
130+
- Rebuilt for Python 3.9
69131

70132
* Thu Jan 30 2020 Fedora Release Engineering <[email protected]> - 2.0.0-3
71133
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
@@ -101,3 +163,4 @@ with a synchronous looking interface by using pycares.
101163

102164
* Wed Apr 4 2018 Matthieu Saulnier <[email protected]> - 1.1.1-1
103165
- Initial package
166+

cgmanifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22023,8 +22023,8 @@
2202322023
"type": "other",
2202422024
"other": {
2202522025
"name": "python-aiodns",
22026-
"version": "2.0.0",
22027-
"downloadUrl": "https://github.com/saghul/aiodns/archive/aiodns-2.0.0.tar.gz"
22026+
"version": "3.2.0",
22027+
"downloadUrl": "https://github.com/saghul/aiodns/archive/v3.2.0/aiodns-3.2.0.tar.gz"
2202822028
}
2202922029
}
2203022030
},

0 commit comments

Comments
 (0)