Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-makefun for
openSUSE:Leap:16.0 checked in at 2025-07-24 08:30:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:16.0/python-makefun (Old)
and /work/SRC/openSUSE:Leap:16.0/.python-makefun.new.8875 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-makefun"
Thu Jul 24 08:30:57 2025 rev:3 rq:1293708 version:1.16.0
Changes:
--------
--- /work/SRC/openSUSE:Leap:16.0/python-makefun/python-makefun.changes
2025-04-07 13:58:52.226256187 +0200
+++
/work/SRC/openSUSE:Leap:16.0/.python-makefun.new.8875/python-makefun.changes
2025-07-24 08:31:08.090140346 +0200
@@ -1,0 +2,10 @@
+Thu Jun 12 15:53:22 UTC 2025 - John Paul Adrian Glaubitz
<[email protected]>
+
+- 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
+
+-------------------------------------------------------------------
Old:
----
makefun-1.15.6.tar.gz
New:
----
makefun-1.16.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-makefun.spec ++++++
--- /var/tmp/diff_new_pack.FwIT9R/_old 2025-07-24 08:31:08.322149993 +0200
+++ /var/tmp/diff_new_pack.FwIT9R/_new 2025-07-24 08:31:08.326150159 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-makefun
#
-# Copyright (c) 2024 SUSE LLC
+# 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
@@ -16,8 +16,9 @@
#
+%{?sle15_python_module_pythons}
Name: python-makefun
-Version: 1.15.6
+Version: 1.16.0
Release: 0
License: BSD-3-Clause
Summary: Small library to dynamically create python functions
++++++ makefun-1.15.6.tar.gz -> makefun-1.16.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/makefun-1.15.6/.github/workflows/base.yml
new/makefun-1.16.0/.github/workflows/base.yml
--- old/makefun-1.15.6/.github/workflows/base.yml 2024-09-26
14:47:36.000000000 +0200
+++ new/makefun-1.16.0/.github/workflows/base.yml 2025-05-09
17:00:04.000000000 +0200
@@ -23,10 +23,10 @@
runs-on: ubuntu-latest
steps:
- name: Checkout
- uses: actions/[email protected]
+ uses: actions/checkout@v4
- name: Install python 3.9
- uses: actions/[email protected]
+ uses: actions/setup-python@v5
with:
python-version: 3.9
architecture: x64
@@ -57,11 +57,12 @@
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
- uses: actions/[email protected]
+ uses: actions/checkout@v4
- - name: Install python ${{ matrix.nox_session.python }} for tests
- if: ${{ ! contains(fromJson('["3.13"]'), matrix.nox_session.python ) }}
- uses: MatteoH2O1999/[email protected] # actions/[email protected]
+ # General case
+ - name: Install python ${{ matrix.nox_session.python }} for tests (not
3.5 not 3.14)
+ if: ${{ ! contains(fromJson('["3.5", "3.14"]'),
matrix.nox_session.python ) }}
+ uses: MatteoH2O1999/setup-python@v4 # actions/[email protected]
id: set-py
with:
python-version: ${{ matrix.nox_session.python }}
@@ -69,8 +70,24 @@
allow-build: info
cache-build: true
- - name: Install python ${{ matrix.nox_session.python }} for tests (3.13)
- if: contains(fromJson('["3.13"]'), matrix.nox_session.python )
+ # Particular case of issue with 3.5
+ - name: Install python ${{ matrix.nox_session.python }} for tests (3.5)
+ if: contains(fromJson('["3.5"]'), matrix.nox_session.python )
+ uses: MatteoH2O1999/setup-python@v4 # actions/[email protected]
+ id: set-py-35
+ with:
+ python-version: ${{ matrix.nox_session.python }}
+ architecture: x64
+ allow-build: info
+ cache-build: true
+ env:
+ # workaround found in
https://github.com/actions/setup-python/issues/866
+ # for issue "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify
failed (_ssl.c:728)" on Python 3.5
+ PIP_TRUSTED_HOST: "pypi.python.org pypi.org files.pythonhosted.org"
+
+
+ - name: Install python ${{ matrix.nox_session.python }} for tests (3.14)
+ if: contains(fromJson('["3.14"]'), matrix.nox_session.python )
uses: actions/setup-python@v5
id: set-py-latest
with:
@@ -82,7 +99,7 @@
cache-build: true
- name: Install python 3.12 for nox
- uses: actions/[email protected]
+ uses: actions/setup-python@v5
with:
python-version: 3.12
architecture: x64
@@ -101,7 +118,7 @@
# Share ./docs/reports so that they can be deployed with doc in next job
- name: Share reports with other jobs
if: runner.os == 'Linux'
- uses: actions/[email protected]
+ uses: actions/upload-artifact@v4
with:
name: reports_dir
path: ./docs/reports
@@ -111,10 +128,10 @@
if: github.event_name == 'pull_request'
steps:
- name: Checkout
- uses: actions/[email protected]
+ uses: actions/checkout@v4
- name: Install python 3.9 for nox
- uses: actions/[email protected]
+ uses: actions/setup-python@v5
with:
python-version: 3.9
architecture: x64
@@ -136,19 +153,20 @@
run: echo "$GITHUB_CONTEXT"
- name: Checkout with no depth
- uses: actions/[email protected]
+ uses: actions/checkout@v4
with:
fetch-depth: 0 # so that gh-deploy works
+ # persist-credentials: false # see
https://github.com/orgs/community/discussions/25702
- name: Install python 3.9 for nox
- uses: actions/[email protected]
+ uses: actions/setup-python@v5
with:
python-version: 3.9
architecture: x64
# 1) retrieve the reports generated previously
- name: Retrieve reports
- uses: actions/[email protected]
+ uses: actions/download-artifact@v4
with:
name: reports_dir
path: ./docs/reports
@@ -180,7 +198,7 @@
EOF
- name: \[not on TAG\] Publish coverage report
if: github.event_name == 'push' && startsWith(github.ref, 'refs/heads')
- uses: codecov/[email protected]
+ uses: codecov/codecov-action@v4
with:
files: ./docs/reports/coverage/coverage.xml
- name: \[not on TAG\] Build wheel and sdist
@@ -192,7 +210,11 @@
# 7) Create github release and build the wheel
- name: \[TAG only\] Build wheel and create github release
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
- run: nox -s release -- ${{ secrets.GITHUB_TOKEN }}
+ # We would have to use a PAT instead of GITHUB_TOKEN if we want the
next job to trigger.
+ # See https://github.com/orgs/community/discussions/25702
+ # For now we will rather rely on a "workflow completed" trigger to
avoid
+ # having a token expiration date to manage
+ run: nox -s release -- ${{ secrets.GITHUB_TOKEN }} # ${{
secrets.WORKFLOW_SECRET}}
# 8) Publish the wheel on PyPi
- name: \[TAG only\] Deploy on PyPi
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/makefun-1.15.6/.github/workflows/ghpages.yml
new/makefun-1.16.0/.github/workflows/ghpages.yml
--- old/makefun-1.15.6/.github/workflows/ghpages.yml 1970-01-01
01:00:00.000000000 +0100
+++ new/makefun-1.16.0/.github/workflows/ghpages.yml 2025-05-09
17:00:04.000000000 +0200
@@ -0,0 +1,53 @@
+# Simple workflow for deploying static content to GitHub Pages
+name: Deploy Static Website from gh-pages branch
+
+on:
+ # Runs on pushes targeting the default branch
+ push:
+ branches: ["gh-pages"]
+
+ # Since the pushes made by the workflow using GITHUB_TOKEN do not trigger
the above,
+ # Add an explicit trigger for workflow completion
+ workflow_run:
+ workflows: ['Build']
+ types: [completed]
+ branches:
+ - 'main'
+
+ # Allows you to run this workflow manually from the Actions tab
+ workflow_dispatch:
+
+# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
+permissions:
+ contents: read
+ pages: write
+ id-token: write
+
+# Allow only one concurrent deployment, skipping runs queued between the run
in-progress and latest queued.
+# However, do NOT cancel in-progress runs as we want to allow these production
deployments to complete.
+concurrency:
+ group: "pages"
+ cancel-in-progress: false
+
+jobs:
+ # Single deploy job since we're just deploying
+ deploy:
+ environment:
+ name: github-pages
+ url: ${{ steps.deployment.outputs.page_url }}
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+ with:
+ ref: gh-pages
+ - name: Setup Pages
+ uses: actions/configure-pages@v5
+ - name: Upload artifact
+ uses: actions/upload-pages-artifact@v3
+ with:
+ # Upload entire repository
+ path: '.'
+ - name: Deploy to GitHub Pages
+ id: deployment
+ uses: actions/deploy-pages@v4
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/makefun-1.15.6/.github/workflows/updater.yml
new/makefun-1.16.0/.github/workflows/updater.yml
--- old/makefun-1.15.6/.github/workflows/updater.yml 2024-09-26
14:47:36.000000000 +0200
+++ new/makefun-1.16.0/.github/workflows/updater.yml 2025-05-09
17:00:04.000000000 +0200
@@ -12,13 +12,13 @@
runs-on: ubuntu-latest
steps:
- - uses: actions/[email protected]
+ - uses: actions/checkout@v4
with:
# [Required] Access token with `workflow` scope.
token: ${{ secrets.WORKFLOW_SECRET }}
- name: Run GitHub Actions Version Updater
- uses: saadmk11/[email protected]
+ uses: saadmk11/[email protected]
with:
# [Required] Access token with `workflow` scope.
token: ${{ secrets.WORKFLOW_SECRET }}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/makefun-1.15.6/PKG-INFO new/makefun-1.16.0/PKG-INFO
--- old/makefun-1.15.6/PKG-INFO 2024-09-26 14:47:58.681614900 +0200
+++ new/makefun-1.16.0/PKG-INFO 2025-05-09 17:00:28.338941800 +0200
@@ -1,9 +1,9 @@
Metadata-Version: 2.1
Name: makefun
-Version: 1.15.6
+Version: 1.16.0
Summary: Small library to dynamically create python functions.
Home-page: https://github.com/smarie/python-makefun
-Download-URL: https://github.com/smarie/python-makefun/tarball/1.15.6
+Download-URL: https://github.com/smarie/python-makefun/tarball/1.16.0
Author: Sylvain MARIE <[email protected]>
Maintainer: Sylvain MARIE <[email protected]>
License: BSD 3-Clause
@@ -13,13 +13,6 @@
Classifier: License :: OSI Approved :: BSD License
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Programming Language :: Python
-Classifier: Programming Language :: Python :: 2
-Classifier: Programming Language :: Python :: 2.7
-Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.5
-Classifier: Programming Language :: Python :: 3.6
-Classifier: Programming Language :: Python :: 3.7
-Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/makefun-1.15.6/ci_tools/nox_utils.py
new/makefun-1.16.0/ci_tools/nox_utils.py
--- old/makefun-1.15.6/ci_tools/nox_utils.py 2024-09-26 14:47:36.000000000
+0200
+++ new/makefun-1.16.0/ci_tools/nox_utils.py 2025-05-09 17:00:04.000000000
+0200
@@ -12,8 +12,9 @@
nox_logger = logging.getLogger("nox")
-PY27, PY35, PY36, PY37, PY38, PY39, PY310, PY311, PY312, PY313 = ("2.7",
"3.5", "3.6", "3.7", "3.8", "3.9", "3.10",
- "3.11",
"3.12", "3.13")
+PY27, PY35, PY36, PY37, PY38, PY39, PY310, PY311, PY312, PY313, PY314 = (
+ "2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13",
"3.14"
+)
DONT_INSTALL = "dont_install"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/makefun-1.15.6/docs/changelog.md
new/makefun-1.16.0/docs/changelog.md
--- old/makefun-1.15.6/docs/changelog.md 2024-09-26 14:47:36.000000000
+0200
+++ new/makefun-1.16.0/docs/changelog.md 2025-05-09 17:00:04.000000000
+0200
@@ -1,5 +1,11 @@
# Changelog
+### 1.16.0 - Support for 3.14, dropped support for < 3.9
+
+- 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](https://github.com/smarie/python-makefun/issues/112)
+
### 1.15.6 - compatibility fix
- Fixed issue with legacy python 2.7 and 3.5. Fixes
[#110](https://github.com/smarie/python-makefun/issues/110)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/makefun-1.15.6/noxfile.py
new/makefun-1.16.0/noxfile.py
--- old/makefun-1.15.6/noxfile.py 2024-09-26 14:47:36.000000000 +0200
+++ new/makefun-1.16.0/noxfile.py 2025-05-09 17:00:04.000000000 +0200
@@ -1,5 +1,3 @@
-import argparse
-import json
import logging
import nox # noqa
@@ -9,7 +7,7 @@
# add parent folder to python path so that we can import noxfile_utils.py
# note that you need to "pip install -r noxfile-requiterements.txt" for this
file to work.
sys.path.append(str(Path(__file__).parent / "ci_tools"))
-from nox_utils import (PY27, PY37, PY36, PY38, PY39, PY310, PY311, PY312,
PY313, install_reqs, rm_folder, rm_file,
+from nox_utils import (PY39, PY310, PY311, PY312, PY313, PY314, install_reqs,
rm_folder, rm_file,
DONT_INSTALL) # noqa
@@ -54,16 +52,13 @@
ENVS = {
+ PY314: {"coverage": False, "pkg_specs": {"pip": ">19"}},
PY313: {"coverage": False, "pkg_specs": {"pip": ">19"}},
PY312: {"coverage": False, "pkg_specs": {"pip": ">19"}},
PY311: {"coverage": False, "pkg_specs": {"pip": ">19"}},
PY310: {"coverage": False, "pkg_specs": {"pip": ">19"}},
- PY39: {"coverage": False, "pkg_specs": {"pip": ">19"}},
- PY38: {"coverage": False, "pkg_specs": {"pip": ">19"}},
- PY27: {"coverage": False, "pkg_specs": {"pip": ">10"}},
- PY36: {"coverage": False, "pkg_specs": {"pip": ">19"}},
# IMPORTANT: this should be last so that the folder docs/reports is not
deleted afterwards
- PY37: {"coverage": True, "pkg_specs": {"pip": ">19"}}, # , "pytest-html":
"1.9.0"
+ PY39: {"coverage": True, "pkg_specs": {"pip": ">19"}},
}
ENV_PARAMS = tuple((k, v["coverage"], v["pkg_specs"]) for k, v in ENVS.items())
@@ -289,34 +284,34 @@
"-d", f"https://{gh_org}.github.io/{gh_repo}/changelog",
current_tag)
[email protected](python=False)
-def gha_list(session):
- """(mandatory arg: <base_session_name>) Prints all sessions available for
<base_session_name>, for GithubActions."""
-
- # see https://stackoverflow.com/q/66747359/7262247
-
- # The options
- parser = argparse.ArgumentParser()
- parser.add_argument("-s", "--session", help="The nox base session name")
- parser.add_argument(
- "-v",
- "--with_version",
- action="store_true",
- default=False,
- help="Return a list of lists where the first element is the python
version and the second the nox session.",
- )
- additional_args = parser.parse_args(session.posargs)
-
- # Now use --json CLI option
- out = session.run("nox", "-l", "--json", "-s", "tests", external=True,
silent=True)
- sessions_list = [{"python": s["python"], "session": s["session"]} for s in
json.loads(out)]
-
- # TODO filter ?
-
- # print the list so that it can be caught by GHA.
- # Note that json.dumps is optional since this is a list of string.
- # However it is to remind us that GHA expects a well-formatted json list
of strings.
- print(json.dumps(sessions_list))
+# @nox.session(python=False)
+# def gha_list(session):
+# """(mandatory arg: <base_session_name>) Prints all sessions available
for <base_session_name>, for GithubActions."""
+#
+# # see https://stackoverflow.com/q/66747359/7262247
+#
+# # The options
+# parser = argparse.ArgumentParser()
+# parser.add_argument("-s", "--session", help="The nox base session name")
+# parser.add_argument(
+# "-v",
+# "--with_version",
+# action="store_true",
+# default=False,
+# help="Return a list of lists where the first element is the python
version and the second the nox session.",
+# )
+# additional_args = parser.parse_args(session.posargs)
+#
+# # Now use --json CLI option
+# out = session.run("nox", "-l", "--json", "-s", "tests", external=True,
silent=True)
+# sessions_list = [{"python": s["python"], "session": s["session"]} for s
in json.loads(out)]
+#
+# # TODO filter ?
+#
+# # print the list so that it can be caught by GHA.
+# # Note that json.dumps is optional since this is a list of string.
+# # However it is to remind us that GHA expects a well-formatted json list
of strings.
+# print(json.dumps(sessions_list))
# if __name__ == '__main__':
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/makefun-1.15.6/setup.cfg new/makefun-1.16.0/setup.cfg
--- old/makefun-1.15.6/setup.cfg 2024-09-26 14:47:58.682614800 +0200
+++ new/makefun-1.16.0/setup.cfg 2025-05-09 17:00:28.339941700 +0200
@@ -15,13 +15,6 @@
License :: OSI Approved :: BSD License
Topic :: Software Development :: Libraries :: Python Modules
Programming Language :: Python
- Programming Language :: Python :: 2
- Programming Language :: Python :: 2.7
- Programming Language :: Python :: 3
- Programming Language :: Python :: 3.5
- Programming Language :: Python :: 3.6
- Programming Language :: Python :: 3.7
- Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
@@ -35,6 +28,7 @@
funcsigs;python_version<'3.3'
tests_require =
pytest
+ pytest-asyncio
six;python_version<'3.6'
attr;python_version<'3.6'
pluggy;python_version<'3.6'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/makefun-1.15.6/setup.py new/makefun-1.16.0/setup.py
--- old/makefun-1.15.6/setup.py 2024-09-26 14:47:36.000000000 +0200
+++ new/makefun-1.16.0/setup.py 2025-05-09 17:00:04.000000000 +0200
@@ -34,9 +34,12 @@
"write_to": "src/makefun/_version.py",
}
# Use the 'version_file_template' directive if possible to avoid type hints
and annotations (python <3.8)
-from packaging.version import Version
setuptools_scm_version =
pkg_resources.get_distribution("setuptools_scm").version
-if Version(setuptools_scm_version) >= Version('6'):
+# for some reason importing packaging.version.Version here fails on python 3.5
+# from packaging.version import Version
+# if Version(setuptools_scm_version) >= Version('6'):
+setuptools_scm_version_major = int(setuptools_scm_version.split(".")[0])
+if setuptools_scm_version_major >= 6:
# template_arg_name = "version_file_template" if
Version(setuptools_scm_version) >= Version('8.1') else "write_to_template"
# print(Version(setuptools_scm_version))
# print(template_arg_name)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/makefun-1.15.6/src/makefun/_version.py
new/makefun-1.16.0/src/makefun/_version.py
--- old/makefun-1.15.6/src/makefun/_version.py 2024-09-26 14:47:58.000000000
+0200
+++ new/makefun-1.16.0/src/makefun/_version.py 2025-05-09 17:00:28.000000000
+0200
@@ -1,4 +1,4 @@
# file generated by setuptools_scm and customized
# don't change, don't track in version control
-__version__ = version = '1.15.6'
-__version_tuple__ = version_tuple = (1, 15, 6)
+__version__ = version = '1.16.0'
+__version_tuple__ = version_tuple = (1, 16, 0)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/makefun-1.15.6/src/makefun.egg-info/PKG-INFO
new/makefun-1.16.0/src/makefun.egg-info/PKG-INFO
--- old/makefun-1.15.6/src/makefun.egg-info/PKG-INFO 2024-09-26
14:47:58.000000000 +0200
+++ new/makefun-1.16.0/src/makefun.egg-info/PKG-INFO 2025-05-09
17:00:28.000000000 +0200
@@ -1,9 +1,9 @@
Metadata-Version: 2.1
Name: makefun
-Version: 1.15.6
+Version: 1.16.0
Summary: Small library to dynamically create python functions.
Home-page: https://github.com/smarie/python-makefun
-Download-URL: https://github.com/smarie/python-makefun/tarball/1.15.6
+Download-URL: https://github.com/smarie/python-makefun/tarball/1.16.0
Author: Sylvain MARIE <[email protected]>
Maintainer: Sylvain MARIE <[email protected]>
License: BSD 3-Clause
@@ -13,13 +13,6 @@
Classifier: License :: OSI Approved :: BSD License
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Programming Language :: Python
-Classifier: Programming Language :: Python :: 2
-Classifier: Programming Language :: Python :: 2.7
-Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.5
-Classifier: Programming Language :: Python :: 3.6
-Classifier: Programming Language :: Python :: 3.7
-Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/makefun-1.15.6/src/makefun.egg-info/SOURCES.txt
new/makefun-1.16.0/src/makefun.egg-info/SOURCES.txt
--- old/makefun-1.15.6/src/makefun.egg-info/SOURCES.txt 2024-09-26
14:47:58.000000000 +0200
+++ new/makefun-1.16.0/src/makefun.egg-info/SOURCES.txt 2025-05-09
17:00:28.000000000 +0200
@@ -8,6 +8,7 @@
setup.cfg
setup.py
.github/workflows/base.yml
+.github/workflows/ghpages.yml
.github/workflows/updater.yml
ci_tools/.pylintrc
ci_tools/check_python_version.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/makefun-1.15.6/tests/test_generators_coroutines.py
new/makefun-1.16.0/tests/test_generators_coroutines.py
--- old/makefun-1.15.6/tests/test_generators_coroutines.py 2024-09-26
14:47:36.000000000 +0200
+++ new/makefun-1.16.0/tests/test_generators_coroutines.py 2025-05-09
17:00:04.000000000 +0200
@@ -76,7 +76,7 @@
@pytest.mark.skipif(sys.version_info < (3, 5), reason="native coroutines with
async/await require python3.6 or higher")
-def test_native_coroutine():
+async def test_native_coroutine():
""" Tests that we can use a native async coroutine as function_handler in
`create_function`"""
# define the handler that should be called
@@ -92,13 +92,12 @@
assert is_native_co(dynamic_fun)
# verify that the new function is a native coroutine and behaves correctly
- from asyncio import get_event_loop
- out = get_event_loop().run_until_complete(dynamic_fun(0.1))
+ out = await dynamic_fun(0.1)
assert out == 0.1
@pytest.mark.skipif(sys.version_info < (3, 5), reason="native coroutines with
async/await require python3.6 or higher")
-def test_issue_96():
+async def test_issue_96():
"""Same as `test_native_coroutine` but tests that we can use 'return' in
the coroutine name"""
# define the handler that should be called
@@ -114,6 +113,5 @@
assert is_native_co(dynamic_fun)
# verify that the new function is a native coroutine and behaves correctly
- from asyncio import get_event_loop
- out = get_event_loop().run_until_complete(dynamic_fun(0.1))
+ out = await dynamic_fun(0.1)
assert out == 0.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/makefun-1.15.6/tests/test_issues.py
new/makefun-1.16.0/tests/test_issues.py
--- old/makefun-1.15.6/tests/test_issues.py 2024-09-26 14:47:36.000000000
+0200
+++ new/makefun-1.16.0/tests/test_issues.py 2025-05-09 17:00:04.000000000
+0200
@@ -228,7 +228,7 @@
@pytest.mark.skipif(sys.version_info < (3, 6), reason="requires python 3.6 or
higher (async generator)")
-def test_issue_77_async_generator_wraps():
+async def test_issue_77_async_generator_wraps():
import asyncio
from ._test_py36 import make_async_generator, make_async_generator_wrapper
@@ -238,11 +238,12 @@
assert inspect.isasyncgenfunction(f)
assert inspect.isasyncgenfunction(wrapper)
- assert
asyncio.get_event_loop().run_until_complete(asyncio.ensure_future(wrapper(1).__anext__()))
== 1
+ out = await asyncio.ensure_future(wrapper(1).__anext__())
+ assert out == 1
@pytest.mark.skipif(sys.version_info < (3, 6), reason="requires python 3.6 or
higher (async generator)")
-def test_issue_77_async_generator_partial():
+async def test_issue_77_async_generator_partial():
import asyncio
from ._test_py36 import make_async_generator
@@ -252,7 +253,8 @@
assert inspect.isasyncgenfunction(f)
assert inspect.isasyncgenfunction(f_partial)
- assert
asyncio.get_event_loop().run_until_complete(asyncio.ensure_future(f_partial().__anext__()))
== 1
+ out = await asyncio.ensure_future(f_partial().__anext__())
+ assert out == 1
@pytest.mark.skipif(sys.version_info < (3, 7, 6), reason="The __wrapped__
behavior in get_type_hints being tested was not added until python 3.7.6.")