Accepting request 880262 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/880262 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Genshi?expand=0&rev=19
This commit is contained in:
commit
b52afe40c6
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7933c95151d7dd2124a2b4c8dd85bb6aec881ca17c0556da0b40e56434b313a0
|
||||
size 271238
|
3
Genshi-0.7.5.tar.gz
Normal file
3
Genshi-0.7.5.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c12d6c2abf7df0ec661d9ff2e197522eae846e43dc58abd5a36443d05bc41135
|
||||
size 266071
|
@ -1,3 +1,24 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 19 21:55:43 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Update to 0.7.5
|
||||
* Fix handling of slices containing function call, variable name
|
||||
and attribute lookup AST nodes in Python 3.9 in template
|
||||
scripts (template expressions already correctly handled these
|
||||
cases). Thank you to Roger Leigh for finding this issue and
|
||||
contributing the fix for it.
|
||||
* C speedup module now available for Python >= 3.3. Support was
|
||||
added for PEP 393 (flexible string representation). Thank you
|
||||
to Inada Naoki for contributing this major enhancement.
|
||||
* Remove the custom 2to3 fixers (no longer used since the
|
||||
removal of 2to3 in 0.7.4).
|
||||
- Release 0.7.4
|
||||
* Add support for deprecation of ast classes slice, Index and
|
||||
ExtSlice in Python 3.9. See https://bugs.python.org/issue34822
|
||||
for details of the changes.
|
||||
* Update the project URL in setup.py to point to GitHub.
|
||||
* Remove use of 2to3 for generating Python 3 compatible code.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 8 11:55:37 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-Genshi
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -19,7 +19,7 @@
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define oldpython python
|
||||
Name: python-Genshi
|
||||
Version: 0.7.3
|
||||
Version: 0.7.5
|
||||
Release: 0
|
||||
Summary: A toolkit for generation of output for the web
|
||||
License: BSD-3-Clause
|
||||
@ -29,11 +29,13 @@ Source: https://files.pythonhosted.org/packages/source/G/Genshi/Genshi-%
|
||||
BuildRequires: %{python_module Babel}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module six}
|
||||
BuildRequires: %{python_module xml}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-Babel
|
||||
Requires: python-six
|
||||
Requires: python-xml
|
||||
%ifpython2
|
||||
Obsoletes: %{oldpython}-genshi < %{version}
|
||||
@ -68,12 +70,24 @@ This package contains documentation and examples.
|
||||
%python_build
|
||||
|
||||
%install
|
||||
# python3 is noarch but to keep it sane
|
||||
%python_expand %{$python_install} --install-lib=%{$python_sitearch}
|
||||
%python_install
|
||||
# remove accidentally installed source files
|
||||
%python_expand find %{buildroot}%{$python_sitearch}/genshi -name '*.c' -delete
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
|
||||
# install (flavor-agnostic) examples
|
||||
mkdir -p %{buildroot}%{_docdir}/%{name}-doc/
|
||||
cp -r examples %{buildroot}%{_docdir}/%{name}-doc/
|
||||
sed -i '1{s/env python.*/python3/}' %{buildroot}%{_docdir}/%{name}-doc/examples/tutorial/geddit/controller.py
|
||||
%fdupes %{buildroot}%{_docdir}/%{name}-doc/
|
||||
|
||||
%check
|
||||
%if %{suse_version} < 1550
|
||||
# calling unittest directly fails on Leap
|
||||
%python_exec setup.py test
|
||||
%else
|
||||
%pyunittest_arch -v genshi.tests.suite
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
%license COPYING
|
||||
@ -82,6 +96,7 @@ This package contains documentation and examples.
|
||||
%{python_sitearch}/Genshi-%{version}-py%{python_version}.egg-info
|
||||
|
||||
%files -n %{name}-doc
|
||||
%doc doc examples
|
||||
%doc doc
|
||||
%doc %{_docdir}/%{name}-doc/examples
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user