14
0
forked from pool/python-Kajiki

Accepting request 915250 from home:glaubitz:branches:devel:languages:python

- Update to 0.8.3
  * Fixed compatibility for Python 3.10
  * Switched the test runner to pytest
  * Added the ``kajiki`` command line interface
  * Documentation typo corrections
- Enable alternatives mechanism for /usr/bin/kajiki

OBS-URL: https://build.opensuse.org/request/show/915250
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Kajiki?expand=0&rev=21
This commit is contained in:
2021-09-02 13:37:59 +00:00
committed by Git OBS Bridge
parent bf95755fe6
commit 2c44e35629
4 changed files with 27 additions and 7 deletions

View File

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

3
kajiki-0.8.3.tar.gz Normal file
View File

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

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Tue Aug 31 12:19:49 UTC 2021 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 0.8.3
* Fixed compatibility for Python 3.10
* Switched the test runner to pytest
* Added the ``kajiki`` command line interface
* Documentation typo corrections
- Enable alternatives mechanism for /usr/bin/kajiki
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Aug 16 13:21:47 UTC 2020 - John Vandenberg <jayvdb@gmail.com> Sun Aug 16 13:21:47 UTC 2020 - John Vandenberg <jayvdb@gmail.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-Kajiki # spec file for package python-Kajiki
# #
# Copyright (c) 2020 SUSE LLC # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -18,19 +18,21 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-Kajiki Name: python-Kajiki
Version: 0.8.2 Version: 0.8.3
Release: 0 Release: 0
Summary: Compiler for Genshi syntax outputting Python bytecode Summary: Compiler for Genshi syntax outputting Python bytecode
License: MIT License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://github.com/nandoflorestan/kajiki URL: https://github.com/nandoflorestan/kajiki
Source: https://files.pythonhosted.org/packages/source/K/Kajiki/Kajiki-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/k/kajiki/kajiki-%{version}.tar.gz
BuildRequires: %{python_module Babel} BuildRequires: %{python_module Babel}
BuildRequires: %{python_module nine} BuildRequires: %{python_module nine}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun):update-alternatives
Requires: python-nine Requires: python-nine
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@@ -42,7 +44,7 @@ Kajiki compiles Genshi-like syntax to Python bytecode.
other textual content for output generation on the web.) other textual content for output generation on the web.)
%prep %prep
%setup -q -n Kajiki-%{version} %setup -q -n kajiki-%{version}
sed -i 's/from nose import SkipTest/from unittest import SkipTest/' kajiki/tests/test_xml.py sed -i 's/from nose import SkipTest/from unittest import SkipTest/' kajiki/tests/test_xml.py
%build %build
@@ -50,13 +52,21 @@ sed -i 's/from nose import SkipTest/from unittest import SkipTest/' kajiki/tests
%install %install
%python_install %python_install
%python_clone -a %{buildroot}%{_bindir}/kajiki
%python_expand rm -r %{buildroot}%{$python_sitelib}/kajiki/tests %python_expand rm -r %{buildroot}%{$python_sitelib}/kajiki/tests
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%post
%python_install_alternative kajiki
%postun
%python_uninstall_alternative kajiki
%check %check
%pytest %pytest
%files %{python_files} %files %{python_files}
%python_alternative %{_bindir}/kajiki
%license LICENSE.rst %license LICENSE.rst
%doc README.rst %doc README.rst
%{python_sitelib}/* %{python_sitelib}/*