14
0

Accepting request 1230048 from home:mcalabkova:branches:devel:languages:python

- Update to 3.4.0
  * Fixed ImportHooks: it must raise ModuleNotFoundError instead of ImportError.
  * Use cache_from_source in ImportManager to find out .pyc/.pyo byte-code files.
  * Add compatibility with Python 3.13 (multiple fixes)

OBS-URL: https://build.opensuse.org/request/show/1230048
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cheetah3?expand=0&rev=34
This commit is contained in:
2024-12-11 10:34:30 +00:00
committed by Git OBS Bridge
parent afc421566e
commit bbac3b00b0
4 changed files with 17 additions and 8 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:328119519af18431d6690250c58895594548c6ab354d21ea795de8c4323cd1ef
size 315641

3
cheetah3-3.4.0.tar.gz Normal file
View File

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

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Dec 10 16:53:01 UTC 2024 - Markéta Machová <mmachova@suse.com>
- Update to 3.4.0
* Fixed ImportHooks: it must raise ModuleNotFoundError instead of ImportError.
* Use cache_from_source in ImportManager to find out .pyc/.pyo byte-code files.
* Add compatibility with Python 3.13 (multiple fixes)
-------------------------------------------------------------------
Tue Aug 27 07:25:57 UTC 2024 - Frantisek Simorda <frantisek.simorda@suse.com>

View File

@@ -17,9 +17,8 @@
%define modname cheetah3
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-Cheetah3
Version: 3.3.3.post1
Version: 3.4.0
Release: 0
Summary: Template engine and code generation tool
License: MIT
@@ -27,6 +26,7 @@ Group: Development/Languages/Python
URL: https://cheetahtemplate.org/
Source: https://github.com/CheetahTemplate3/cheetah3/archive/refs/tags/%{version}.tar.gz#/%{modname}-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -65,10 +65,10 @@ find . -name \*.py -print0 |xargs -0 -t -l sed -i -e '1{\@^#!%{_bindir}/env pyth
sed -Ei 's/(test6)/_\1/' Cheetah/Tests/SyntaxAndOutput.py
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/cheetah
%python_clone -a %{buildroot}%{_bindir}/cheetah-analyze
%python_clone -a %{buildroot}%{_bindir}/cheetah-compile
@@ -97,6 +97,7 @@ $python Cheetah/Tests/Test.py
%python_alternative %{_bindir}/cheetah
%python_alternative %{_bindir}/cheetah-analyze
%python_alternative %{_bindir}/cheetah-compile
%{python_sitearch}/*
%{python_sitearch}/Cheetah
%{python_sitearch}/CT3-%{version}*info
%changelog