15
0
forked from pool/python-empy

- 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
This commit is contained in:
2025-06-23 01:33:29 +00:00
committed by Git OBS Bridge
commit a85f00f779
6 changed files with 157 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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
empy-4.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9d712e97c1395859be13d2b45788c9186cd97f1c04dac510399130f328643367
size 154603

3
empy-4.2.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:86f15e1da9743e79a2e9b2cbacf1a13d0b7fb1835b6254eb253c978b72287f4f
size 166069

45
python-empy.changes Normal file
View File

@@ -0,0 +1,45 @@
-------------------------------------------------------------------
Mon Jun 23 01:30:55 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
- List modules explicitly in %files.
-------------------------------------------------------------------
Sun Sep 29 19:57:10 UTC 2024 - Dirk Müller <dmueller@suse.com>
- 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 <dmueller@suse.com>
- 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 <dmueller@suse.com>
- update to 4.0.1:
* bugfixes over 4.0, no dedicated changelog available
-------------------------------------------------------------------
Thu Dec 7 20:23:33 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 4.0:
* http://www.alcyone.com/software/empy/ANNOUNCE.html#changes
-------------------------------------------------------------------
Thu Jul 11 18:58:50 UTC 2019 - Andreas Färber <afaerber@suse.de>
- Initial (v3.3.4)

82
python-empy.spec Normal file
View File

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