forked from pool/python-pycares
- Update to 4.10.0 (actually fixes CVE-2025-48945, bsc#1244691)
* Remove unused import by @saghul in #240 * Fixup chunked TXT record test by @saghul in #242 * Remove overzealous checks by @saghul in #241 * Fix OpenBSD build by @saghul in #243 * Make result.type Final by @Dreamsorcerer in #246 * Idna resource reduction using a length check by @Vizonex in #247 * Add read & write process_fd functions by @Vizonex in #245 * build(deps): bump pypa/cibuildwheel from 2.23.3 to 3.0.0 by @dependabot[bot] in #244 * Remove context manager support by @saghul in #252 * Fixup test CI by @saghul in #254 * Refactor channel destruction logic by @saghul in #253 - use system c-ares instead of bundled version OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycares?expand=0&rev=32
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.osc
|
9
cleanup_tests.patch
Normal file
9
cleanup_tests.patch
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
tests/__init__.py | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/tests/__init__.py
|
||||||
|
@@ -0,0 +1 @@
|
||||||
|
+# This file intentionally left blank.
|
||||||
|
\ No newline at end of file
|
3
pycares-4.10.0.tar.gz
Normal file
3
pycares-4.10.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:9df70dce6e05afa5d477f48959170e569485e20dad1a089c4cf3b2d7ffbd8bf9
|
||||||
|
size 654318
|
BIN
pycares-4.4.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
pycares-4.4.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
3
pycares-4.5.0.tar.gz
Normal file
3
pycares-4.5.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:025b6c2ffea4e9fb8f9a097381c2fecb24aff23fbd6906e70da22ec9ba60e19d
|
||||||
|
size 821554
|
BIN
pycares-4.6.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
pycares-4.6.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
pycares-4.6.1.tar.gz
(Stored with Git LFS)
Normal file
BIN
pycares-4.6.1.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
pycares-4.9.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
pycares-4.9.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
181
python-pycares.changes
Normal file
181
python-pycares.changes
Normal file
@@ -0,0 +1,181 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Aug 8 12:39:36 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
|
||||||
|
|
||||||
|
- Update to 4.10.0 (actually fixes CVE-2025-48945, bsc#1244691)
|
||||||
|
* Remove unused import by @saghul in #240
|
||||||
|
* Fixup chunked TXT record test by @saghul in #242
|
||||||
|
* Remove overzealous checks by @saghul in #241
|
||||||
|
* Fix OpenBSD build by @saghul in #243
|
||||||
|
* Make result.type Final by @Dreamsorcerer in #246
|
||||||
|
* Idna resource reduction using a length check by @Vizonex in #247
|
||||||
|
* Add read & write process_fd functions by @Vizonex in #245
|
||||||
|
* build(deps): bump pypa/cibuildwheel from 2.23.3 to 3.0.0
|
||||||
|
by @dependabot[bot] in #244
|
||||||
|
* Remove context manager support by @saghul in #252
|
||||||
|
* Fixup test CI by @saghul in #254
|
||||||
|
* Refactor channel destruction logic by @saghul in #253
|
||||||
|
- use system c-ares instead of bundled version
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jun 18 12:58:39 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
|
||||||
|
|
||||||
|
- Update to 4.9.0 (fixes CVE-2025-48945, bsc#1244691)
|
||||||
|
* Create dependabot configuration by @bdraco in #226
|
||||||
|
* build(deps): bump pypa/cibuildwheel from 2.22.0 to 2.23.3
|
||||||
|
by @dependabot in #227
|
||||||
|
* Pin Python version to 3.13.3 to avoid Windows build error by @saghul in #235
|
||||||
|
* Fix shutdown race by @bdraco in #236
|
||||||
|
* Add support for windows arm64 by @finnagin in #233
|
||||||
|
- Update to 4.8.0
|
||||||
|
* Cancel previous CI jobs on pull request update by @bdraco in #222
|
||||||
|
* Update bundled c-ares to v1.34.5 by @bdraco in #221
|
||||||
|
* Add ARES_FLAG_NO_DFLT_SVR and ARES_FLAG_EDNS to API by @bdraco in #224
|
||||||
|
- Update to 4.7.0
|
||||||
|
* Update c-ares to 1.29.0 to add reinit support to Channel by @bdraco in #219
|
||||||
|
* Add event thread support by @bdraco in #220
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Apr 28 16:43:05 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 4.6.1:
|
||||||
|
* Fix missing attribute type information for errno
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Apr 11 07:18:09 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
- Clean up the SPEC file.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Apr 10 12:28:57 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
- Update to 4.6.0
|
||||||
|
* Swap out is_all_ascii for built-in str.isascii by @bdraco in (#209)
|
||||||
|
* Fixup tests by @saghul in (#214)
|
||||||
|
* Add initial type annotations by @Dreamsorcerer in (#212)
|
||||||
|
* Fix module has no attribute type errors by @Dreamsorcerer in (#211)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 10 09:20:14 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
- Update to 4.5.0
|
||||||
|
* Test data updates to fix test failures
|
||||||
|
* Update test_idna_encoding_query_a with
|
||||||
|
new errno to align to new c-ares version
|
||||||
|
* Do not define HAVE_GETSERVBYPORT_R for
|
||||||
|
platforms Android, Cygwin, Darwin
|
||||||
|
* Drop distutils
|
||||||
|
* build(deps): bump actions/download-artifact
|
||||||
|
from 3 to 4.1.7 in /.github/workflows
|
||||||
|
* Add 3.13 support, remove 3.8
|
||||||
|
* chore(ci): fix upload & add more platforms to cibuildwheel
|
||||||
|
* Test building release wheels on PRs
|
||||||
|
* Fix building sdist
|
||||||
|
* Fixup CI
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Dec 11 08:24:45 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 4.4.0:
|
||||||
|
* Add support for 3.12, drop EOL 3.7
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Apr 21 12:30:27 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- add sle15_python_module_pythons (jsc#PED-68)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Apr 13 22:43:34 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Make calling of %{sle15modernpython} optional.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Dec 13 16:24:44 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
||||||
|
|
||||||
|
- Update to version 4.3.0
|
||||||
|
* Bump cibuildwheel to build for Python 3.11 + CI total time speedups by @Jackenmen in #174
|
||||||
|
Fix tests that depended on external sites by @Jackenmen in #180
|
||||||
|
Complete the Python 3.11 support by @Jackenmen in #179
|
||||||
|
Drop CPython 3.6 by @saghul in #181
|
||||||
|
Improve test compatibility with pytest by @saghul in #182
|
||||||
|
Update c-ares submodule to 1.18.1 by @saghul in #183
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 8 22:21:16 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Add cleanup_tests.patch to make the test suite slightly more sane.
|
||||||
|
- No, the test suite is just broken, and the upstream doesn't care.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Oct 4 23:59:04 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
||||||
|
|
||||||
|
- Update to version 4.2.2
|
||||||
|
no changelog
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 11 13:59:59 UTC 2022 - Arun Persaud <arun@gmx.de>
|
||||||
|
|
||||||
|
- specfile:
|
||||||
|
* update copyright year
|
||||||
|
|
||||||
|
- update to version 4.2.1:
|
||||||
|
* core: add flexible member to ares_addrinfo to fix c-ares 1.18
|
||||||
|
|
||||||
|
- changes from version 4.2.0:
|
||||||
|
* tests: ignoring 2 tests due to dead servers
|
||||||
|
* tests: updated google TXT records for an outdated test
|
||||||
|
* deps: update bundled c-ares
|
||||||
|
|
||||||
|
- changes from version 4.1.2:
|
||||||
|
* build: add PYPIREADME.rst to manifest
|
||||||
|
|
||||||
|
- changes from version 4.1.1:
|
||||||
|
* misc: add PyPI README without images
|
||||||
|
* misc: update c-ares URL
|
||||||
|
|
||||||
|
- changes from version 4.1.0:
|
||||||
|
* ci: use stable 3.10, rather than dev
|
||||||
|
* core: add support for Python 3.10
|
||||||
|
* doc: fix typo in README
|
||||||
|
* doc: updatee changelog
|
||||||
|
* doc: uppdate README
|
||||||
|
* core: add support for CAA queries
|
||||||
|
* core: add support for getaddrinfo()
|
||||||
|
* doc: update README
|
||||||
|
* core: add ability to use the system installed c-ares
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 31 11:54:19 UTC 2021 - Adrian Schröter <adrian@suse.de>
|
||||||
|
|
||||||
|
- update to 4.0.0
|
||||||
|
* core: add support for CAA queries
|
||||||
|
* core: add support for getaddrinfo()
|
||||||
|
* core: add ability to use the system installed c-ares
|
||||||
|
* test: remove TTL tests
|
||||||
|
* core: update c-ares and use a submodule
|
||||||
|
* core: drop bundled c-ares version
|
||||||
|
* misc: drop tasks.py
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 19 12:52:26 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||||
|
|
||||||
|
- Update to 3.1.1
|
||||||
|
* misc: add Python 3.8 classifier
|
||||||
|
* ci: run tests in Python 3.8 too
|
||||||
|
* test: remove no longer valid test
|
||||||
|
* test: remove empty test
|
||||||
|
* errno: return str from errno.strerror
|
||||||
|
* core: fix crash when processing .onion queries
|
||||||
|
* core: fix support for ARES_OPT_LOOKUPS option
|
||||||
|
* misc: simplify non-ascii txt test example
|
||||||
|
* core: fix long TXT record with non-ascii bytes
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 21 13:59:43 UTC 2019 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||||
|
|
||||||
|
- update to 3.0.0
|
||||||
|
* first stable version in 3.0 series
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Mar 1 07:55:18 UTC 2019 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||||
|
|
||||||
|
- initial commit
|
71
python-pycares.spec
Normal file
71
python-pycares.spec
Normal file
@@ -0,0 +1,71 @@
|
|||||||
|
#
|
||||||
|
# spec file for package python-pycares
|
||||||
|
#
|
||||||
|
# Copyright (c) 2025 SUSE LLC and contributors
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?sle15_python_module_pythons}
|
||||||
|
Name: python-pycares
|
||||||
|
Version: 4.10.0
|
||||||
|
Release: 0
|
||||||
|
Summary: Python interface for c-ares
|
||||||
|
License: MIT
|
||||||
|
Group: Development/Languages/Python
|
||||||
|
URL: https://github.com/saghul/pycares
|
||||||
|
Source: https://files.pythonhosted.org/packages/source/p/pycares/pycares-%{version}.tar.gz
|
||||||
|
# PATCH-FIX-UPSTREAM cleanup_tests.patch bsc#[0-9]+ mcepl@suse.com
|
||||||
|
# Make the test suite slightly more normal
|
||||||
|
Patch0: cleanup_tests.patch
|
||||||
|
BuildRequires: %{python_module cffi}
|
||||||
|
BuildRequires: %{python_module devel}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
|
BuildRequires: c-ares-devel
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: gcc
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: python-cffi
|
||||||
|
Recommends: python-idna
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
|
%description
|
||||||
|
pycares is a Python module which provides an interface to
|
||||||
|
c-ares. c-ares is a C library that performs DNS requests and name
|
||||||
|
resolutions asynchronously
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1 -n pycares-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
export PYCARES_USE_SYSTEM_LIB=1
|
||||||
|
%pyproject_wheel
|
||||||
|
|
||||||
|
%install
|
||||||
|
%pyproject_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||||
|
|
||||||
|
%check
|
||||||
|
# Test suite is broken anywhere else outside of the upstream CI,
|
||||||
|
# and upstream doesn't care.
|
||||||
|
# %%pyunittest_arch -v tests.tests
|
||||||
|
|
||||||
|
%files %{python_files}
|
||||||
|
%license LICENSE
|
||||||
|
%doc ChangeLog README.rst
|
||||||
|
%{python_sitearch}/pycares
|
||||||
|
%{python_sitearch}/pycares-%{version}*-info
|
||||||
|
|
||||||
|
%changelog
|
Reference in New Issue
Block a user