From eda503491f3461f09960557678d65a70223ee8deddd9491ab35e2b1875587202 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Thu, 8 Feb 2024 10:26:52 +0000 Subject: [PATCH] Accepting request 1145109 from home:mcalabkova:branches:devel:languages:python needed by cassandra-driver, possibly by others this refuses to install on Python < 3.12 OBS-URL: https://build.opensuse.org/request/show/1145109 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyasyncore?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++++ .gitignore | 1 + pyasyncore-1.0.3.tar.gz | 3 +++ python-pyasyncore.changes | 4 +++ python-pyasyncore.spec | 57 +++++++++++++++++++++++++++++++++++++++ 5 files changed, 88 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pyasyncore-1.0.3.tar.gz create mode 100644 python-pyasyncore.changes create mode 100644 python-pyasyncore.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pyasyncore-1.0.3.tar.gz b/pyasyncore-1.0.3.tar.gz new file mode 100644 index 0000000..d743b92 --- /dev/null +++ b/pyasyncore-1.0.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:562e0686c936171a65ae5eaf0341859a05650010b9aae5d7d01382b5bcdab8d0 +size 9904 diff --git a/python-pyasyncore.changes b/python-pyasyncore.changes new file mode 100644 index 0000000..4e3bbb9 --- /dev/null +++ b/python-pyasyncore.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu Feb 8 09:31:11 UTC 2024 - Markéta Machová + +- Initial packaging (v1.0.3) diff --git a/python-pyasyncore.spec b/python-pyasyncore.spec new file mode 100644 index 0000000..a3f5b4b --- /dev/null +++ b/python-pyasyncore.spec @@ -0,0 +1,57 @@ +# +# spec file for package python-pyasyncore +# +# Copyright (c) 2024 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/ +# + +%define pythons python312 +Name: python-pyasyncore +Version: 1.0.3 +Release: 0 +Summary: Make asyncore available for Python 312 onwards +License: PSF-2.0 +URL: https://github.com/simonrob/pyasyncore +Source: https://files.pythonhosted.org/packages/source/p/pyasyncore/pyasyncore-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module base >= 3.12} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +Requires: python-base >= 3.12 +BuildArch: noarch +%python_subpackages + +%description +Make asyncore available for Python 3.12 onwards + +%prep +%autosetup -p1 -n pyasyncore-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +# no tests available + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/asyncore +%{python_sitelib}/pyasyncore-%{version}.dist-info + +%changelog