14
0
Files
python-pystache/python-pystache.spec
Dirk Mueller f7fef97e63 - udpate to 0.6.0:
* Bump spec versions to latest => v1.1.3
  * Modernize python and CI tools, update docs/doctests
  * Update unicode conversion test for py3-only
  * Add pep8speaks cfg, cleanup warnings
  * Remove superfluous setup test/unused imports
  * Use correct wheel name in release workflow, limit wheels
  * Add install check/test of downloaded wheel
  * Update/add ci workflows and tox cfg, bump to next dev0 version
  * fix document processing, update pandoc args and history
  * add release.yml to CI, test env settings
  * fix bogus commit message, update versions and tox cf
  * add post-test steps for building pkgs with/without doc updates
  * Bugfix: test_specloader.py: fix test_find__with_directory on other OSs
  * Bugfix: pystache/loader.py: remove stray windows line-endings
  * fix crufty (and insecure) http urls
  * Bugfix: modernize python versions (keep py27)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pystache?expand=0&rev=8
2021-12-11 22:38:53 +00:00

78 lines
2.4 KiB
RPMSpec

#
# spec file for package python-pystache
#
# 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
# 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pystache
Version: 0.6.0
Release: 0
Summary: Mustache for Python
License: MIT
Group: Development/Languages/Python
URL: https://github.com/defunkt/pystache
Source: https://files.pythonhosted.org/packages/source/p/pystache/pystache-%{version}.tar.gz
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%description
Pystache is a Python implementation of Mustache. Mustache is a
framework-agnostic, logic-free templating system inspired by
ctemplate and etc. Like ctemplate, Mustache "emphasises separating
logic from presentation: it is impossible to embed application
logic in this template language."
The mustache(5) man page provides a good introduction to Mustache's
syntax. For a more complete (and more current) description of
Mustache's behaviour, see the official Mustache spec:
https://github.com/mustache/spec.
%python_subpackages
%prep
%setup -q -n pystache-%{version}
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/pystache
%python_clone -a %{buildroot}%{_bindir}/pystache-test
%{python_expand %fdupes %{buildroot}%$python_sitelib/}
%check
%pytest build/lib/pystache
%post
%{python_install_alternative pystache pystache-test}
%postun
%{python_uninstall_alternative pystache pystache-test}
%files %{python_files}
%license LICENSE
%doc HISTORY.md README.md TODO.md
%python_alternative %{_bindir}/pystache
%python_alternative %{_bindir}/pystache-test
%{python_sitelib}/pystache/
%{python_sitelib}/pystache-*
%changelog