From 76dac5755ff0b298943b3ad0ee41bb0b48c7f0f1e75f716d69048b7532bcbebf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 13 Feb 2025 14:03:38 +0000 Subject: [PATCH] - Update to 1.15 * Added support for python 3.13 - Removed ubber bound (#379) * Added parameter to control if files are sorted before being passed to pandoc (#378) * Dropped CI support for older python and pypy versions (#387) * Fix convert_file for Python 3.13 (#384) * allow non-latex intermediaries for pdf generation (#381) - Drop remove-py313-upper-bound.patch, merged upstream OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pypandoc?expand=0&rev=26 --- .gitattributes | 23 +++++++ .gitignore | 1 + pypandoc-1.13.tar.gz | 3 + pypandoc-1.14.tar.gz | 3 + pypandoc-1.15.tar.gz | 3 + python-pypandoc.changes | 109 +++++++++++++++++++++++++++++++++ python-pypandoc.spec | 70 +++++++++++++++++++++ remove-py313-upper-bound.patch | 21 +++++++ 8 files changed, 233 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pypandoc-1.13.tar.gz create mode 100644 pypandoc-1.14.tar.gz create mode 100644 pypandoc-1.15.tar.gz create mode 100644 python-pypandoc.changes create mode 100644 python-pypandoc.spec create mode 100644 remove-py313-upper-bound.patch diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pypandoc-1.13.tar.gz b/pypandoc-1.13.tar.gz new file mode 100644 index 0000000..8545b2f --- /dev/null +++ b/pypandoc-1.13.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:05fc905d23ae3220a301a3226d7366b64f1e226b1706dbaa9aa4009d3c5abe03 +size 70605 diff --git a/pypandoc-1.14.tar.gz b/pypandoc-1.14.tar.gz new file mode 100644 index 0000000..e9ddb21 --- /dev/null +++ b/pypandoc-1.14.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e5b79144aa95beaf8365e2901b7da827759352f9794bfb082f395a11f873b6bf +size 70683 diff --git a/pypandoc-1.15.tar.gz b/pypandoc-1.15.tar.gz new file mode 100644 index 0000000..351f8e6 --- /dev/null +++ b/pypandoc-1.15.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7476818bccac8451c3e976617b3ebb26ef9b1521e1219fb852a8e3127b81fa03 +size 70808 diff --git a/python-pypandoc.changes b/python-pypandoc.changes new file mode 100644 index 0000000..db28c40 --- /dev/null +++ b/python-pypandoc.changes @@ -0,0 +1,109 @@ +------------------------------------------------------------------- +Thu Feb 13 10:24:55 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 1.15 + * Added support for python 3.13 - Removed ubber bound (#379) + * Added parameter to control if files are sorted before being + passed to pandoc (#378) + * Dropped CI support for older python and pypy versions (#387) + * Fix convert_file for Python 3.13 (#384) + * allow non-latex intermediaries for pdf generation (#381) +- Drop remove-py313-upper-bound.patch, merged upstream + +------------------------------------------------------------------- +Wed Nov 20 15:46:13 UTC 2024 - Dirk Müller + +- add remove-py313-upper-bound.patch: fix build with python 3.13 +- cleanup url/source links + +------------------------------------------------------------------- +Fri Oct 25 20:02:10 UTC 2024 - Earl Sampson + +- enable sle15_python_module_pythons + +------------------------------------------------------------------- +Fri Oct 18 10:49:04 UTC 2024 - Dirk Müller + +- update to 1.14: + * Fix regex escape + * add project urls to setup files + * Fix invalid escape sequence in regex + +------------------------------------------------------------------- +Wed Apr 3 06:35:39 UTC 2024 - Steve Kowalik + +- Add missing tex style amsmath.sty to BuildRequires. + +------------------------------------------------------------------- +Thu Mar 14 23:54:12 UTC 2024 - Steve Kowalik + +- Update to 1.13: + * Change when we do source file verification +- Drop tests.py file, it is shipped in the source tarball. +- Switch to pyproject macros. + +------------------------------------------------------------------- +Wed May 24 17:47:42 UTC 2023 - Scott Bradnick + +- Updating to upstream version 1.11 (as previous 1.6.4 fails) + * tests.py was also updated and needed another item excluded to + possibly account for how pandoc is built. +- Converting to noarch (per rpmlint). +- Adding pandocfilters module to BuildRequires + +------------------------------------------------------------------- +Sun Jul 17 01:20:53 UTC 2022 - John Vandenberg + +- Add build dependency texlive-xcolor + +------------------------------------------------------------------- +Mon Dec 20 10:34:32 UTC 2021 - Dominique Leuenberger + +- Exclude build for %ix86: pandoc (entire haskell stack) is not + available on i586. +- As a result, do not mark package noarch: due to the missing + pandoc dependency, it is uninstallable on i586. + +------------------------------------------------------------------- +Sat Dec 4 23:33:35 UTC 2021 - John Vandenberg + +- Update to v1.6.4 +- Remove no longer needed fix-test.patch +- Add tests.py from upstream master to workaround failures + +------------------------------------------------------------------- +Sun Dec 27 03:51:58 UTC 2020 - Jason Craig + +- Add fix-test.patch to fix test: according to Pandoc documentation, + ATX-style headings are the default. See + https://pandoc.org/MANUAL#option--markdown-headings + +------------------------------------------------------------------- +Sun Nov 22 13:21:43 UTC 2020 - John Vandenberg + +- Replace ghc-pandoc-citeproc, removed as obsolete, with ghc-citeproc + +------------------------------------------------------------------- +Thu Jul 23 07:28:02 UTC 2020 - John Vandenberg + +- Activate test suite +- Update to v1.5 + +------------------------------------------------------------------- +Wed Aug 16 08:11:22 UTC 2017 - daniel.molkentin@suse.com + +- Add fdupes + +------------------------------------------------------------------- +Tue Aug 15 16:06:39 UTC 2017 - daniel.molkentin@suse.com + +- Update to 1.4 +- Convert to single spec +- Ran spec cleaner + +------------------------------------------------------------------- +Tue Jan 24 21:37:32 UTC 2017 - termim@gmail.com + +- Initial check in version 1.3.3 + + diff --git a/python-pypandoc.spec b/python-pypandoc.spec new file mode 100644 index 0000000..fe4a3bc --- /dev/null +++ b/python-pypandoc.spec @@ -0,0 +1,70 @@ +# +# spec file for package python-pypandoc +# +# 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define base_name pypandoc +%{?sle15_python_module_pythons} +Name: python-pypandoc +Version: 1.15 +Release: 0 +Summary: Thin wrapper for pandoc +License: MIT +URL: https://github.com/JessicaTegner/pypandoc +Source: https://github.com/JessicaTegner/pypandoc/archive/refs/tags/v%{version}.tar.gz#/pypandoc-%{version}.tar.gz +BuildRequires: %{python_module pandocfilters} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module poetry} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: pandoc +BuildRequires: python-rpm-macros +BuildRequires: texlive-latex-bin +BuildRequires: texlive-xcolor +BuildRequires: tex(amsmath.sty) +BuildRequires: tex(bookmark.sty) +Requires: pandoc +Suggests: ghc-citeproc +ExcludeArch: %{ix86} +BuildArch: noarch +%python_subpackages + +%description +pypandoc provides a thin wrapper for pandoc, a universal document converter. + +%prep +%autosetup -p1 -n pypandoc-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%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 and not test_basic_conversion_from_file_pattern_pathlib_glob' + +%files %{python_files} +%license LICENSE +%doc README.md +%{python_sitelib}/pypandoc +%{python_sitelib}/pypandoc-%{version}.dist-info + +%changelog 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"