Sync from SUSE:SLFO:Main python-pycares revision 6652fb0548e32f7cd2c656fa1256b72c

This commit is contained in:
Adrian Schröter 2024-05-03 22:02:34 +02:00
commit d4bb22de85
5 changed files with 207 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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

9
cleanup_tests.patch Normal file
View 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

BIN
pycares-4.3.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

101
python-pycares.changes Normal file
View File

@ -0,0 +1,101 @@
-------------------------------------------------------------------
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
View File

@ -0,0 +1,71 @@
#
# spec file for package python-pycares
#
# Copyright (c) 2023 SUSE LLC
#
# 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
%{?sle15_python_module_pythons}
Name: python-pycares
Version: 4.3.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 setuptools}
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}
rm -Rf
%build
%python_build
%install
%python_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}/*
%changelog