forked from pool/python-pypandoc
- 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
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Nov 20 15:46:13 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- add remove-py313-upper-bound.patch: fix build with python 3.13
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Oct 25 20:02:10 UTC 2024 - Earl Sampson <esampson@suse.com>
|
Fri Oct 25 20:02:10 UTC 2024 - Earl Sampson <esampson@suse.com>
|
||||||
|
|
||||||
|
@@ -23,8 +23,10 @@ Version: 1.14
|
|||||||
Release: 0
|
Release: 0
|
||||||
Summary: Thin wrapper for pandoc
|
Summary: Thin wrapper for pandoc
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/bebraw/pypandoc
|
URL: https://github.com/JessicaTegner/pypandoc
|
||||||
Source: https://github.com/NicklasTegner/pypandoc/archive/refs/tags/v%{version}.tar.gz#/pypandoc-%{version}.tar.gz
|
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 pandocfilters}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module poetry}
|
BuildRequires: %{python_module poetry}
|
||||||
@@ -47,7 +49,7 @@ BuildArch: noarch
|
|||||||
pypandoc provides a thin wrapper for pandoc, a universal document converter.
|
pypandoc provides a thin wrapper for pandoc, a universal document converter.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n pypandoc-%{version}
|
%autosetup -p1 -n pypandoc-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
@@ -59,7 +61,7 @@ pypandoc provides a thin wrapper for pandoc, a universal document converter.
|
|||||||
%check
|
%check
|
||||||
# 'test_basic_conversion_from_http_url' needs network
|
# 'test_basic_conversion_from_http_url' needs network
|
||||||
# 'test_conversion_with_data_files' => https://github.com/JessicaTegner/pypandoc/issues/278
|
# '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}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
21
remove-py313-upper-bound.patch
Normal file
21
remove-py313-upper-bound.patch
Normal file
@@ -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"
|
Reference in New Issue
Block a user