Sync from SUSE:SLFO:Main python-pandocfilters revision a07b14538589282b2617329b70b050d3

This commit is contained in:
Adrian Schröter 2024-05-03 21:46:02 +02:00
commit 60f231f43b
4 changed files with 142 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

BIN
pandocfilters-1.5.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,57 @@
-------------------------------------------------------------------
Sun Jul 17 08:08:03 UTC 2022 - Dirk Müller <dmueller@suse.com>
- update to 1.5.0:
* Added an environment variable `PANDOCFILTER_CLEANUP` that when
`get_filename4code` is used, temporary directory will be cleaned up
automatically.
* `examples/` is no longer included in the distribution (i.e. source
distribution or binary wheels found on PyPI.) This should be a backward
incompatible change as `examples/` is never exposed as a Python module, nor
entry points.
* Added a couple of examples.
-------------------------------------------------------------------
Mon Oct 25 19:55:22 UTC 2021 - Matej Cepl <mcepl@suse.com>
- Making rpmlint more happy.
-------------------------------------------------------------------
Mon Oct 25 14:02:31 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org>
- Mark exampls/*.py non-executable.
-------------------------------------------------------------------
Thu Mar 4 21:06:04 UTC 2021 - Dirk Müller <dmueller@suse.com>
- update to 1.4.3:
* LilyPond: take in account width and staffsize from metadata
* Autodetect gregorio executables
* Fix metavars example
* Documentation fixes
-------------------------------------------------------------------
Tue Dec 4 12:51:06 UTC 2018 - Matej Cepl <mcepl@suse.com>
- Remove superfluous devel dependency for noarch package
-------------------------------------------------------------------
Fri May 11 19:57:34 UTC 2018 - toddrme2178@gmail.com
- pandoc is not strictly necessart to use this.
-------------------------------------------------------------------
Sat Nov 4 02:08:16 UTC 2017 - arun@gmx.de
- update to version 1.4.2:
* Fixed minor RST error in README.
* Fixed typo.
* Change element constructor function elt() to return a list instead
of a tuple when numargs > 1, enabling elements to be traversed by
walk().
* Fix indentation of a doc-string
-------------------------------------------------------------------
Fri Mar 31 03:40:09 UTC 2017 - toddrme2178@gmail.com
- Initial version

59
python-pandocfilters.spec Normal file
View File

@ -0,0 +1,59 @@
#
# spec file for package python-pandocfilters
#
# Copyright (c) 2022 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pandocfilters
Version: 1.5.0
Release: 0
Summary: Python module for writing pandoc filters
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/jgm/pandocfilters
Source: https://pypi.io/packages/source/p/pandocfilters/pandocfilters-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Recommends: pandoc >= 1.16
BuildArch: noarch
%python_subpackages
%description
Pandoc filters are pipes that read a JSON serialization of the
Pandoc AST from stdin, transform it in some way, and write it
to stdout. They can be used with pandoc (>= 1.12) either using
pipes.
pandoc -t json -s | ./caps.py | pandoc -f json
or using the --filter (or -F) command-line option.
%prep
%setup -q -n pandocfilters-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/*
%changelog