From 4e13dd0c270b3e5de3c99451863e7f716ecc3464c8d44a7394d0642db481e02b Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 20 Nov 2024 15:46:22 +0000 Subject: [PATCH] - add remove-py313-upper-bound.patch: fix build with python 3.13 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pypandoc?expand=0&rev=23 --- python-pypandoc.changes | 5 +++++ python-pypandoc.spec | 10 ++++++---- remove-py313-upper-bound.patch | 21 +++++++++++++++++++++ 3 files changed, 32 insertions(+), 4 deletions(-) create mode 100644 remove-py313-upper-bound.patch diff --git a/python-pypandoc.changes b/python-pypandoc.changes index 3d13e29..331723b 100644 --- a/python-pypandoc.changes +++ b/python-pypandoc.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Nov 20 15:46:13 UTC 2024 - Dirk Müller + +- add remove-py313-upper-bound.patch: fix build with python 3.13 + ------------------------------------------------------------------- Fri Oct 25 20:02:10 UTC 2024 - Earl Sampson diff --git a/python-pypandoc.spec b/python-pypandoc.spec index d73799a..feb1b4c 100644 --- a/python-pypandoc.spec +++ b/python-pypandoc.spec @@ -23,8 +23,10 @@ Version: 1.14 Release: 0 Summary: Thin wrapper for pandoc License: MIT -URL: https://github.com/bebraw/pypandoc -Source: https://github.com/NicklasTegner/pypandoc/archive/refs/tags/v%{version}.tar.gz#/pypandoc-%{version}.tar.gz +URL: https://github.com/JessicaTegner/pypandoc +Source: https://github.com/JessicaTegner/pypandoc/archive/refs/tags/v%{version}.tar.gz#/pypandoc-%{version}.tar.gz +# PATCH-FIX-UPSTREAM: https://github.com/JessicaTegner/pypandoc/commit/50f3b0867e82874edfd8828087acb6a52ef2eaef +Patch1: remove-py313-upper-bound.patch BuildRequires: %{python_module pandocfilters} BuildRequires: %{python_module pip} BuildRequires: %{python_module poetry} @@ -47,7 +49,7 @@ BuildArch: noarch pypandoc provides a thin wrapper for pandoc, a universal document converter. %prep -%setup -q -n pypandoc-%{version} +%autosetup -p1 -n pypandoc-%{version} %build %pyproject_wheel @@ -59,7 +61,7 @@ pypandoc provides a thin wrapper for pandoc, a universal document converter. %check # 'test_basic_conversion_from_http_url' needs network # 'test_conversion_with_data_files' => https://github.com/JessicaTegner/pypandoc/issues/278 -%pytest tests.py -k 'not test_basic_conversion_from_http_url and not test_conversion_with_data_files' +%pytest tests.py -k 'not test_basic_conversion_from_http_url and not test_conversion_with_data_files and not test_basic_conversion_from_file_pattern_pathlib_glob' %files %{python_files} %license LICENSE diff --git a/remove-py313-upper-bound.patch b/remove-py313-upper-bound.patch new file mode 100644 index 0000000..23419a4 --- /dev/null +++ b/remove-py313-upper-bound.patch @@ -0,0 +1,21 @@ +Index: pypandoc-1.14/pyproject.toml +=================================================================== +--- pypandoc-1.14.orig/pyproject.toml ++++ pypandoc-1.14/pyproject.toml +@@ -24,6 +24,7 @@ classifiers = [ + 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', ++ 'Programming Language :: Python :: 3.13', + 'Programming Language :: Python :: Implementation :: CPython', + 'Programming Language :: Python :: Implementation :: PyPy' + ] +@@ -33,7 +34,7 @@ packages = [ + ] + + [tool.poetry.dependencies] +-python = ">=3.7,<3.13" ++python = ">=3.7" + + [tool.poetry.dev-dependencies] + pandocfilters = "^1.5"