15
0

4 Commits

Author SHA256 Message Date
583636a204 Accepting request 1285412 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1285412
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-makefun?expand=0&rev=9
2025-06-13 16:46:57 +00:00
97bc0f0f1e - Update to 1.16.0
* Removed official support for python versions ``<3.9``.
    These versions will not run in CI anymore.
  * Fixed ``RuntimeError`` in tests when running on python 3.14.
    Added python 3.14 to CI. Fixes #112
- Use Python 3.11 on SLE-15 by default

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-makefun?expand=0&rev=16
2025-06-13 10:44:42 +00:00
dcf6e0bc87 Accepting request 1219185 from devel:languages:python
- update to 1.15.6:
  * Fixed issue with legacy python 2.7 and 3.5.
  * Python 3.13 is now supported.
  * Fixed `SyntaxError: invalid syntax` happening when the
    default value of one argument of the created function is a
  * subclass of a basic primitive.

    `_` or contains a double `__`
- Update to Version 1.13.0

OBS-URL: https://build.opensuse.org/request/show/1219185
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-makefun?expand=0&rev=8
2024-10-30 16:36:23 +00:00
3078c64bfc - update to 1.15.6:
* Fixed issue with legacy python 2.7 and 3.5.
  * Python 3.13 is now supported.
  * Fixed `SyntaxError: invalid syntax` happening when the
    default value of one argument of the created function is a
  * subclass of a basic primitive.
    `_` or contains a double `__`
- Update to Version 1.13.0

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-makefun?expand=0&rev=14
2024-10-29 21:11:40 +00:00
3 changed files with 3 additions and 34 deletions

View File

@@ -1,10 +1,3 @@
-------------------------------------------------------------------
Mon Aug 11 02:24:39 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Add BuildRequires on pytest-asyncio.
- Add patch set-pytest-asyncio-mode.patch:
* Set asyncio-mode to auto.
-------------------------------------------------------------------
Thu Jun 12 15:53:22 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-makefun
#
# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -23,9 +23,8 @@ Release: 0
License: BSD-3-Clause
Summary: Small library to dynamically create python functions
URL: https://github.com/smarie/python-makefun
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/m/makefun/makefun-%{version}.tar.gz
# PATCH-FIX-UPSTREAM Based on gh#smarie/python-makefun#119
Patch0: set-pytest-asyncio-mode.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools_scm}
@@ -33,7 +32,6 @@ BuildRequires: %{python_module wheel}
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytest-asyncio}
# /SECTION
BuildRequires: fdupes
Suggests: python-funcsigs
@@ -45,7 +43,7 @@ BuildArch: noarch
Small library to dynamically create python functions.
%prep
%autosetup -p1 -n makefun-%{version}
%setup -q -n makefun-%{version}
sed -i '/pytest-runner/d' setup.cfg
%build

View File

@@ -1,22 +0,0 @@
From 3d256ef2531828f131008796f68268d4c23fc2c1 Mon Sep 17 00:00:00 2001
From: Andy Hawkins <andy@gently.org.uk>
Date: Sun, 11 May 2025 17:43:13 +0100
Subject: [PATCH] Specify pytest asyncio mode (there is no default in later
versions)
---
setup.cfg | 1 +
1 file changed, 1 insertion(+)
Index: makefun-1.16.0/setup.cfg
===================================================================
--- makefun-1.16.0.orig/setup.cfg
+++ makefun-1.16.0/setup.cfg
@@ -59,6 +59,7 @@ addopts =
--verbose
--doctest-modules
--ignore-glob='**/_*.py'
+ --asyncio-mode=auto
filterwarnings =
always