commit a85f00f779007f22c889fcb111691a492331351917061269c32d38a7347371e6 Author: Steve Kowalik Date: Mon Jun 23 01:33:29 2025 +0000 - Switch to pyproject macros. - List modules explicitly in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-empy?expand=0&rev=11 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/empy-4.1.tar.gz b/empy-4.1.tar.gz new file mode 100644 index 0000000..9499503 --- /dev/null +++ b/empy-4.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9d712e97c1395859be13d2b45788c9186cd97f1c04dac510399130f328643367 +size 154603 diff --git a/empy-4.2.tar.gz b/empy-4.2.tar.gz new file mode 100644 index 0000000..bd602d4 --- /dev/null +++ b/empy-4.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:86f15e1da9743e79a2e9b2cbacf1a13d0b7fb1835b6254eb253c978b72287f4f +size 166069 diff --git a/python-empy.changes b/python-empy.changes new file mode 100644 index 0000000..6e8dc8d --- /dev/null +++ b/python-empy.changes @@ -0,0 +1,45 @@ +------------------------------------------------------------------- +Mon Jun 23 01:30:55 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- List modules explicitly in %files. + +------------------------------------------------------------------- +Sun Sep 29 19:57:10 UTC 2024 - Dirk Müller + +- update to 4.2: + * Add module support; add support for disabling output and switch + markup; add support for reconfiguring stdin/stdout; support + repeated curly braces with functional expression; add + backward-compatible `Case` abstraction for match markup; add + more preprocessing and postprocessing commands via command + line options. + +------------------------------------------------------------------- +Sat Apr 6 18:53:37 UTC 2024 - Dirk Müller + +- update to 4.1: + * Add support for extension markup `@((...))`, `@[[...]]`, + `@{{...}}`, `@<...>`, etc., with custom callbacks retained for + backward compatibility; add `@[match]` control support; add + interpreter cores for overriding interpreter behavior; add more + command line option toggles; add notion of verbose/brief errors; + more uniform error message formatting; various documentation + updates. + +------------------------------------------------------------------- +Wed Dec 27 09:29:19 UTC 2023 - Dirk Müller + +- update to 4.0.1: + * bugfixes over 4.0, no dedicated changelog available + +------------------------------------------------------------------- +Thu Dec 7 20:23:33 UTC 2023 - Dirk Müller + +- update to 4.0: + * http://www.alcyone.com/software/empy/ANNOUNCE.html#changes + +------------------------------------------------------------------- +Thu Jul 11 18:58:50 UTC 2019 - Andreas Färber + +- Initial (v3.3.4) diff --git a/python-empy.spec b/python-empy.spec new file mode 100644 index 0000000..517351c --- /dev/null +++ b/python-empy.spec @@ -0,0 +1,82 @@ +# +# spec file for package python-empy +# +# 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/ +# + + +Name: python-empy +Version: 4.2 +Release: 0 +Summary: A templating system for Python +License: BSD-3-Clause +Group: Development/Languages/Python +URL: http://www.alcyone.com/software/empy +Source: https://files.pythonhosted.org/packages/source/e/empy/empy-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildArch: noarch +%python_subpackages + +%description +EmPy is a system for embedding Python expressions and statements +in template text; it takes an EmPy source file, processes it, and +produces output. This is accomplished via expansions, which are +special signals to the EmPy system and are set off by a special +prefix (by default the at sign, '@'). EmPy can expand arbitrary +Python expressions and statements in this way, as well as a +variety of special forms. Textual data not explicitly delimited +in this way is sent unaffected to the output, allowing Python to +be used in effect as a markup language. Also supported are "hook" +callbacks, recording and playback via diversions, and dynamic, +chainable filters. The system is highly configurable via command +line options and embedded commands. + +%prep +%setup -q -n empy-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/em.py +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%post +%python_install_alternative em.py + +%postun +%python_uninstall_alternative em.py + +%files %{python_files} +%license LICENSE.md +%doc README.md +%python_alternative %{_bindir}/em.py +%{python_sitelib}/em.py +%{python_sitelib}/emdoc.py +%{python_sitelib}/emhelp.py +%{python_sitelib}/emlib.py +%pycache_only %{python_sitelib}/__pycache__/em.*.pyc +%pycache_only %{python_sitelib}/__pycache__/emdoc.*.pyc +%pycache_only %{python_sitelib}/__pycache__/emhelp.*.pyc +%pycache_only %{python_sitelib}/__pycache__/emlib.*.pyc +%{python_sitelib}/empy-%{version}.dist-info + +%changelog