14
0

Accepting request 1227643 from devel:languages:python

- Build for all versions of Python that we can (Python 3.10 not supported)
- Actually run the testsuite, switching to GitHub tarball so we have them.

OBS-URL: https://build.opensuse.org/request/show/1227643
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyasyncore?expand=0&rev=3
This commit is contained in:
2024-12-02 15:59:07 +00:00
committed by Git OBS Bridge
3 changed files with 17 additions and 8 deletions

BIN
pyasyncore-1.0.4.tar.gz (Stored with Git LFS)

Binary file not shown.

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Dec 2 03:22:41 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Build for all versions of Python that we can (Python 3.10 not supported)
- Actually run the testsuite, switching to GitHub tarball so we have them.
-------------------------------------------------------------------
Sat Mar 16 09:31:47 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -16,21 +16,22 @@
#
%define pythons python312
# Requires Python 3.11 or above
%define skip_python310 1
Name: python-pyasyncore
Version: 1.0.4
Release: 0
Summary: Make asyncore available for Python 312 onwards
Summary: Make asyncore available for Python 3.12 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_module base >= 3.12}
Source: https://github.com/simonrob/pyasyncore/archive/refs/tags/v%{version}.tar.gz#/pyasyncore-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.11}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module testsuite}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-base >= 3.12
BuildArch: noarch
%python_subpackages
@@ -39,6 +40,7 @@ Make asyncore available for Python 3.12 onwards
%prep
%autosetup -p1 -n pyasyncore-%{version}
chmod -x LICENSE README.md
%build
%pyproject_wheel
@@ -47,7 +49,8 @@ Make asyncore available for Python 3.12 onwards
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
# no tests available
%check
%pyunittest -v
%files %{python_files}
%doc README.md